Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_var.h
| Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | |||||
| /* | /* | ||||
| * 72 was chosen below because it is the size of a TCP/IP | * 72 was chosen below because it is the size of a TCP/IP | ||||
| * header (40) + the minimum mss (32). | * header (40) + the minimum mss (32). | ||||
| */ | */ | ||||
| #define IF_MINMTU 72 | #define IF_MINMTU 72 | ||||
| #define IF_MAXMTU 65535 | #define IF_MAXMTU 65535 | ||||
| #define TOEDEV(ifp) ((ifp)->if_llsoftc) | #define TOEDEV(ifp) if_getllsoftc(ifp) | ||||
| #define SETTOEDEV(ifp, sc) if_setllsoftc((ifp), (sc)) | |||||
| /* | /* | ||||
| * The ifaddr structure contains information about one address | * The ifaddr structure contains information about one address | ||||
| * of an interface. They are maintained by the different address families, | * of an interface. They are maintained by the different address families, | ||||
| * are allocated and attached when an address is set, and are linked | * are allocated and attached when an address is set, and are linked | ||||
| * together so all addresses for an interface can be located. | * together so all addresses for an interface can be located. | ||||
| * | * | ||||
| * NOTE: a 'struct ifaddr' is always at the beginning of a larger | * NOTE: a 'struct ifaddr' is always at the beginning of a larger | ||||
| ▲ Show 20 Lines • Show All 167 Lines • ▼ Show 20 Lines | |||||
| int if_clearhwassist(if_t ifp); | int if_clearhwassist(if_t ifp); | ||||
| int if_sethwassistbits(if_t ifp, int toset, int toclear); | int if_sethwassistbits(if_t ifp, int toset, int toclear); | ||||
| int if_sethwassist(if_t ifp, int hwassist_bit); | int if_sethwassist(if_t ifp, int hwassist_bit); | ||||
| int if_gethwassist(const if_t ifp); | int if_gethwassist(const if_t ifp); | ||||
| int if_togglehwassist(if_t ifp, int toggle_bits); | int if_togglehwassist(if_t ifp, int toggle_bits); | ||||
| int if_setsoftc(if_t ifp, void *softc); | int if_setsoftc(if_t ifp, void *softc); | ||||
| void *if_getsoftc(if_t ifp); | void *if_getsoftc(if_t ifp); | ||||
| int if_setflags(if_t ifp, int flags); | int if_setflags(if_t ifp, int flags); | ||||
| int if_setllsoftc(if_t ifp, void *softc); | |||||
| void *if_getllsoftc(if_t ifp); | |||||
| int if_gethwaddr(const if_t ifp, struct ifreq *); | int if_gethwaddr(const if_t ifp, struct ifreq *); | ||||
| int if_setmtu(if_t ifp, int mtu); | int if_setmtu(if_t ifp, int mtu); | ||||
| int if_getmtu(const if_t ifp); | int if_getmtu(const if_t ifp); | ||||
| int if_getmtu_family(const if_t ifp, int family); | int if_getmtu_family(const if_t ifp, int family); | ||||
| int if_setflagbits(if_t ifp, int set, int clear); | int if_setflagbits(if_t ifp, int set, int clear); | ||||
| int if_getflags(const if_t ifp); | int if_getflags(const if_t ifp); | ||||
| int if_sendq_empty(if_t ifp); | int if_sendq_empty(if_t ifp); | ||||
| int if_setsendqready(if_t ifp); | int if_setsendqready(if_t ifp); | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||