Used by hpeConfigOptions to specify options.
typedef struct {
DWORD option_flags;
int num_addresses;
unsigned char (*mac_addr)[6];
} HPE_CONFIG_OPTIONS;
option_flagsOPT_PROMISC |
Puts the device to promiscuous mode. |
OPT_ALLMULTI |
Make the device receive any multicast packets. Depending on the device, this flag may put the device into promiscuous mode. |
OPT_NO_VLAN_STRIP |
Do not strip VLAN tags from received frames if the hardware supports the feature. Clearing this flag enables stripping. |
num_addressesmac_addrmac_addr is ignored if either OPT_PROMISC or OPT_ALLMULTI is specified.The following code snippet shows how HPE_CONFIG_OPTIONS can be used with hpeConfigOptions:
| Using HPE_CONFIG_OPTIONS |
Copy Code
|
|---|---|
unsigned char multaddr[][6] = { {0x01, 0x02, 0x03, 0x04, 0x05, 0x06}, // multicast address {0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c} // another multicast address }; HPE_CONFIG_OPTIONS conf = { 0, // option_flags, -- no option flags sizeof(multaddr) / 6, // number of multicast addresses multaddr // pointer to array of multicast addresses }; status = hpeConfigOptions(h, &conf, sizeof(conf)); |
|
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 4.0 | intime/rt/include/hpeif2.h | hpeif2.h | hpeif2.lib |