--- embedaddon/mpd/src/iface.h 2012/02/21 23:32:47 1.1 +++ embedaddon/mpd/src/iface.h 2021/03/17 00:39:23 1.1.1.5 @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -52,6 +53,7 @@ enum { IFACE_CONF_ONDEMAND, IFACE_CONF_PROXY, + IFACE_CONF_KEEP_TIMEOUT, IFACE_CONF_TCPMSSFIX, IFACE_CONF_TEE, IFACE_CONF_NAT, @@ -81,7 +83,7 @@ u_char peer_ipv6_addr_force; char ifname[IFNAMSIZ]; /* Name of my interface */ #ifdef SIOCSIFDESCR - char *ifdescr; /* Interface description*/ + char *ifdescr; /* Interface description template */ #endif #ifdef SIOCAIFGROUP char ifgroup[IFNAMSIZ]; /* Group of my interface */ @@ -100,12 +102,13 @@ char ngname[IFNAMSIZ]; /* Name of my Netgraph node */ uint ifindex; /* System interface index */ #ifdef SIOCSIFDESCR - char *ifdescr; /* Interface description*/ + char *ifdescr; /* Interface description */ #endif struct ifaceconf conf; u_char traffic[IFACE_IDLE_SPLIT]; /* Mark any traffic */ u_short mtu; /* Interface MTU */ u_short max_mtu; /* Configured maximum MTU */ + u_short mtu_override; /* Configured MTU override */ struct optinfo options; /* Configuration options */ u_int idle_timeout; /* Idle timeout */ u_int session_timeout; /* Session timeout */ @@ -194,12 +197,12 @@ extern void IfaceIpv6IfaceDown(Bund b); extern void IfaceUp(Bund b, int ready); extern void IfaceDown(Bund b); - extern int IfaceStat(Context ctx, int ac, char *av[], void *arg); + extern int IfaceStat(Context ctx, int ac, const char *const av[], const void *arg); 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); - #endif +#endif extern void IfaceSetMTU(Bund b, int mtu); extern void IfaceChangeFlags(Bund b, int clear, int set); extern int IfaceChangeAddr(Bund b, int add, struct u_range *self, struct u_addr *peer);