Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.h
| Show First 20 Lines • Show All 653 Lines • ▼ Show 20 Lines | |||||
| #define IFDR_MSG_SIZE 64 | #define IFDR_MSG_SIZE 64 | ||||
| #define IFDR_REASON_MSG 1 | #define IFDR_REASON_MSG 1 | ||||
| #define IFDR_REASON_VENDOR 2 | #define IFDR_REASON_VENDOR 2 | ||||
| struct ifdownreason { | struct ifdownreason { | ||||
| char ifdr_name[IFNAMSIZ]; | char ifdr_name[IFNAMSIZ]; | ||||
| uint32_t ifdr_reason; | uint32_t ifdr_reason; | ||||
| uint32_t ifdr_vendor; | uint32_t ifdr_vendor; | ||||
| char ifdr_msg[IFDR_MSG_SIZE]; | char ifdr_msg[IFDR_MSG_SIZE]; | ||||
marius: Some spares probably would be a good idea and yield better alignment. | |||||
Not Done Inline ActionsThen what should I do here? How much space space would be good? Something like another 8 or 16 bytes for spares? erj: Then what should I do here? How much space space would be good? Something like another 8 or 16… | |||||
Not Done Inline ActionsYes, using 128 bytes in total looks good to me. marius: Yes, using 128 bytes in total looks good to me. | |||||
| }; | }; | ||||
| struct ifvfstatus_entry { | |||||
| uint8_t mac_addr[6]; | |||||
| int16_t vlan; | |||||
| uint8_t active; | |||||
| uint8_t spare0; | |||||
| uint16_t spare1; | |||||
| uint32_t spare2; | |||||
| }; | |||||
| struct ifvfstatus { | |||||
| char ifvfs_name[IFNAMSIZ]; | |||||
| int ifvfs_count; | |||||
| struct ifvfstatus_entry *ifvfs_list; | |||||
| }; | |||||
| #endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
| /* | /* | ||||
| * Opaque interface structure. | * Opaque interface structure. | ||||
| */ | */ | ||||
| typedef struct ifnet *if_t; | typedef struct ifnet *if_t; | ||||
| Show All 35 Lines | |||||
Some spares probably would be a good idea and yield better alignment.