version 1.1, 2012/02/21 23:32:47
|
version 1.1.1.4, 2019/10/22 13:49:55
|
Line 52
|
Line 52
|
enum { |
enum { |
IFACE_CONF_ONDEMAND, |
IFACE_CONF_ONDEMAND, |
IFACE_CONF_PROXY, |
IFACE_CONF_PROXY, |
|
IFACE_CONF_KEEP_TIMEOUT, |
IFACE_CONF_TCPMSSFIX, |
IFACE_CONF_TCPMSSFIX, |
IFACE_CONF_TEE, |
IFACE_CONF_TEE, |
IFACE_CONF_NAT, |
IFACE_CONF_NAT, |
Line 81
|
Line 82
|
u_char peer_ipv6_addr_force; |
u_char peer_ipv6_addr_force; |
char ifname[IFNAMSIZ]; /* Name of my interface */ |
char ifname[IFNAMSIZ]; /* Name of my interface */ |
#ifdef SIOCSIFDESCR |
#ifdef SIOCSIFDESCR |
char *ifdescr; /* Interface description*/ | char *ifdescr; /* Interface description template */ |
#endif |
#endif |
#ifdef SIOCAIFGROUP |
#ifdef SIOCAIFGROUP |
char ifgroup[IFNAMSIZ]; /* Group of my interface */ |
char ifgroup[IFNAMSIZ]; /* Group of my interface */ |
Line 100
|
Line 101
|
char ngname[IFNAMSIZ]; /* Name of my Netgraph node */ |
char ngname[IFNAMSIZ]; /* Name of my Netgraph node */ |
uint ifindex; /* System interface index */ |
uint ifindex; /* System interface index */ |
#ifdef SIOCSIFDESCR |
#ifdef SIOCSIFDESCR |
char *ifdescr; /* Interface description*/ | char *ifdescr; /* Interface description */ |
#endif |
#endif |
struct ifaceconf conf; |
struct ifaceconf conf; |
u_char traffic[IFACE_IDLE_SPLIT]; /* Mark any traffic */ |
u_char traffic[IFACE_IDLE_SPLIT]; /* Mark any traffic */ |
u_short mtu; /* Interface MTU */ |
u_short mtu; /* Interface MTU */ |
u_short max_mtu; /* Configured maximum MTU */ |
u_short max_mtu; /* Configured maximum MTU */ |
|
u_short mtu_override; /* Configured MTU override */ |
struct optinfo options; /* Configuration options */ |
struct optinfo options; /* Configuration options */ |
u_int idle_timeout; /* Idle timeout */ |
u_int idle_timeout; /* Idle timeout */ |
u_int session_timeout; /* Session timeout */ |
u_int session_timeout; /* Session timeout */ |
Line 197
|
Line 199
|
extern int IfaceStat(Context ctx, int ac, char *av[], void *arg); |
extern int IfaceStat(Context ctx, int ac, char *av[], void *arg); |
|
|
extern void IfaceListenInput(Bund b, int proto, Mbuf pkt); |
extern void IfaceListenInput(Bund b, int proto, Mbuf pkt); |
#ifndef USE_NG_TCPMSS | #ifndef USE_NG_TCPMSS |
extern void IfaceCorrectMSS(Mbuf pkt, uint16_t maxmss); |
extern void IfaceCorrectMSS(Mbuf pkt, uint16_t maxmss); |
#endif | #endif |
extern void IfaceSetMTU(Bund b, int mtu); |
extern void IfaceSetMTU(Bund b, int mtu); |
extern void IfaceChangeFlags(Bund b, int clear, int set); |
extern void IfaceChangeFlags(Bund b, int clear, int set); |
extern int IfaceChangeAddr(Bund b, int add, struct u_range *self, struct u_addr *peer); |
extern int IfaceChangeAddr(Bund b, int add, struct u_range *self, struct u_addr *peer); |