#include <net/if_var.h>

net/if_var.h

includes: sys/appleapiopts.h, stdint.h, sys/types.h, sys/time.h, sys/_types/_timeval32.h
22 macros · 4 structs

macroAPPLE_IF_FAM_LOOPBACK

#define APPLE_IF_FAM_LOOPBACK 1

macroAPPLE_IF_FAM_ETHERNET

#define APPLE_IF_FAM_ETHERNET 2

macroAPPLE_IF_FAM_SLIP

#define APPLE_IF_FAM_SLIP 3

macroAPPLE_IF_FAM_TUN

#define APPLE_IF_FAM_TUN 4

macroAPPLE_IF_FAM_VLAN

#define APPLE_IF_FAM_VLAN 5

macroAPPLE_IF_FAM_PPP

#define APPLE_IF_FAM_PPP 6

macroAPPLE_IF_FAM_PVC

#define APPLE_IF_FAM_PVC 7

macroAPPLE_IF_FAM_DISC

#define APPLE_IF_FAM_DISC 8

macroAPPLE_IF_FAM_MDECAP

#define APPLE_IF_FAM_MDECAP 9

macroAPPLE_IF_FAM_GIF

#define APPLE_IF_FAM_GIF 10

macroAPPLE_IF_FAM_FAITH

#define APPLE_IF_FAM_FAITH 11
deprecated

macroAPPLE_IF_FAM_STF

#define APPLE_IF_FAM_STF 12

macroAPPLE_IF_FAM_FIREWIRE

#define APPLE_IF_FAM_FIREWIRE 13

macroAPPLE_IF_FAM_BOND

#define APPLE_IF_FAM_BOND 14

macroAPPLE_IF_FAM_CELLULAR

#define APPLE_IF_FAM_CELLULAR 15

macroAPPLE_IF_FAM_UNUSED_16

#define APPLE_IF_FAM_UNUSED_16 16
Un-used

macroAPPLE_IF_FAM_UTUN

#define APPLE_IF_FAM_UTUN 17

macroAPPLE_IF_FAM_IPSEC

#define APPLE_IF_FAM_IPSEC 18

macroIF_MINMTU

72 was chosen below because it is the size of a TCP/IP header (40) + the minimum mss (32).
#define IF_MINMTU 72

macroIF_MAXMTU

#define IF_MAXMTU 65535

macroIFNAMSIZ

#define IFNAMSIZ 16

structnet_event_data

size 24, align 4
u_int32_tif_family
u_int32_tif_unit
char[16]if_name

macroIF_DATA_TIMEVAL

#define IF_DATA_TIMEVAL timeval32

structif_data

Structure describing information about an interface which may be of interest to management entities.
size 96, align 4
u_charifi_typegeneric interface information ethernet, tokenring, etc
u_charifi_typelenLength of frame type id
u_charifi_physicale.g., AUI, Thinnet, 10base-T, etc
u_charifi_addrlenmedia address length
u_charifi_hdrlenmedia header length
u_charifi_recvquotapolling quota for receive intrs
u_charifi_xmitquotapolling quota for xmit intrs
u_charifi_unused1for future use
u_int32_tifi_mtumaximum transmission unit
u_int32_tifi_metricrouting metric (external only)
u_int32_tifi_baudratelinespeed
u_int32_tifi_ipacketsvolatile statistics packets received on interface
u_int32_tifi_ierrorsinput errors on interface
u_int32_tifi_opacketspackets sent on interface
u_int32_tifi_oerrorsoutput errors on interface
u_int32_tifi_collisionscollisions on csma interfaces
u_int32_tifi_ibytestotal number of octets received
u_int32_tifi_obytestotal number of octets sent
u_int32_tifi_imcastspackets received via multicast
u_int32_tifi_omcastspackets sent via multicast
u_int32_tifi_iqdropsdropped on input, this interface
u_int32_tifi_noprotodestined for unsupported protocol
u_int32_tifi_recvtimingusec spent receiving when timing
u_int32_tifi_xmittimingusec spent xmitting when timing
struct timeval32ifi_lastchangetime of last administrative change
u_int32_tifi_unused2used to be the default_proto
u_int32_tifi_hwassistHW offload capabilities
u_int32_tifi_reserved1for future use
u_int32_tifi_reserved2for future use

structif_data64

Structure describing information about an interface which may be of interest to management entities.
size 128, align 4
u_charifi_typegeneric interface information ethernet, tokenring, etc
u_charifi_typelenLength of frame type id
u_charifi_physicale.g., AUI, Thinnet, 10base-T, etc
u_charifi_addrlenmedia address length
u_charifi_hdrlenmedia header length
u_charifi_recvquotapolling quota for receive intrs
u_charifi_xmitquotapolling quota for xmit intrs
u_charifi_unused1for future use
u_int32_tifi_mtumaximum transmission unit
u_int32_tifi_metricrouting metric (external only)
u_int64_tifi_baudratelinespeed
u_int64_tifi_ipacketsvolatile statistics packets received on interface
u_int64_tifi_ierrorsinput errors on interface
u_int64_tifi_opacketspackets sent on interface
u_int64_tifi_oerrorsoutput errors on interface
u_int64_tifi_collisionscollisions on csma interfaces
u_int64_tifi_ibytestotal number of octets received
u_int64_tifi_obytestotal number of octets sent
u_int64_tifi_imcastspackets received via multicast
u_int64_tifi_omcastspackets sent via multicast
u_int64_tifi_iqdropsdropped on input, this interface
u_int64_tifi_noprotodestined for unsupported protocol
u_int32_tifi_recvtimingusec spent receiving when timing
u_int32_tifi_xmittimingusec spent xmitting when timing
struct timeval32ifi_lastchangetime of last administrative change

structifqueue

Structure defining a queue for a network interface.
size 32, align 8
void *ifq_head
void *ifq_tail
intifq_len
intifq_maxlen
intifq_drops