INtime SDK Help
HPE_CONFIG_OPTIONS structure

Used by hpeConfigOptions to specify options.

typedef struct {
    DWORD option_flags; 
    int   num_addresses;
    unsigned char (*mac_addr)[6]; 
} HPE_CONFIG_OPTIONS;

Fields

option_flags
enum _option_flag. This field may be bitwise OR of the following values, or 0 (zero):
OPT_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.
num_addresses
Specifies the number of multicast addresses in mac_addr field.
mac_addr
Pointer to an array of MAC addresses. mac_addr is ignored if either OPT_PROMISC or OPT_ALLMULTI is specified.

Example

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));

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/hpeif2.h hpeif2.h hpeif2.lib
See Also