sync with OpenBSD -current
This commit is contained in:
parent
36c45cb00b
commit
0bc0a510b3
74 changed files with 19354 additions and 553 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: in.h,v 1.145 2023/11/10 20:05:22 bluhm Exp $ */
|
||||
/* $OpenBSD: in.h,v 1.146 2024/02/05 12:52:11 aoyama Exp $ */
|
||||
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -770,6 +770,7 @@ struct sockaddr;
|
|||
struct sockaddr_in;
|
||||
struct ifaddr;
|
||||
struct in_ifaddr;
|
||||
struct route;
|
||||
|
||||
void ipv4_input(struct ifnet *, struct mbuf *);
|
||||
struct mbuf *
|
||||
|
@ -788,6 +789,8 @@ void in_len2mask(struct in_addr *, int);
|
|||
int in_nam2sin(const struct mbuf *, struct sockaddr_in **);
|
||||
int in_sa2sin(struct sockaddr *, struct sockaddr_in **);
|
||||
|
||||
void route_cache(struct route *, struct in_addr, u_int);
|
||||
|
||||
char *inet_ntoa(struct in_addr);
|
||||
int inet_nat64(int, const void *, void *, const void *, u_int8_t);
|
||||
int inet_nat46(int, const void *, void *, const void *, u_int8_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ip_var.h,v 1.111 2024/02/03 22:50:09 mvs Exp $ */
|
||||
/* $OpenBSD: ip_var.h,v 1.112 2024/02/05 23:16:39 bluhm Exp $ */
|
||||
/* $NetBSD: ip_var.h,v 1.16 1996/02/13 23:43:20 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -87,6 +87,8 @@ struct ipstat {
|
|||
u_long ips_inswcsum; /* software checksummed on input */
|
||||
u_long ips_outswcsum; /* software checksummed on output */
|
||||
u_long ips_notmember; /* multicasts for unregistered groups */
|
||||
u_long ips_rtcachehit; /* valid route found in cache */
|
||||
u_long ips_rtcachemiss; /* route cache with new destination */
|
||||
u_long ips_wrongif; /* packet received on wrong interface */
|
||||
u_long ips_idropped; /* lost input due to nobufs, etc. */
|
||||
};
|
||||
|
@ -133,6 +135,8 @@ enum ipstat_counters {
|
|||
ips_inswcsum, /* software checksummed on input */
|
||||
ips_outswcsum, /* software checksummed on output */
|
||||
ips_notmember, /* multicasts for unregistered groups */
|
||||
ips_rtcachehit, /* valid route to destination found in cache */
|
||||
ips_rtcachemiss, /* route cache filled with new destination */
|
||||
ips_wrongif, /* packet received on wrong interface */
|
||||
ips_idropped, /* lost input packets due to nobufs, etc. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue