Index Index for
Section 9
Index Alphabetical
listing for A
Bottom of page Bottom of
page

attachpfilter(9r)

NAME

attachpfilter - Network: Initializes and attaches the packet filter

SYNOPSIS

int attachpfilter( struct ether_driver *ether_head_p );

ARGUMENTS

ether_head_p Specifies a pointer to the ether_driver structure associated with this network device driver.

DESCRIPTION

The attachpfilter interface initializes the part of the endevp structure concerned with the packet filter and informs the packet filter driver about this network driver. The endevp structure is associated with the EIOCDEVP (get device parameters) ioctl. Specifically, attachpfilter checks the if_type member of the ifnet structure pointer to determine how to initialize the endevp members concerned with the packet filter. You typically set the if_type member in the network driver's attach interface. For example, if if_type was set to IFT_ETHER, attachpfilter would initialize the appropriate members to Ethernet information. If if_type was set to IFT_FDDI, attachpfilter would initialize the appropriate members to FDDI information.

RETURN VALUES

Upon successful completion, the attachpfilter interface returns the value 0 (zero). If you do not specify a valid constant in the if_type member, attachpfilter displays a message on the console terminal indicating an unknown network interface type.

SEE ALSO

Data Structures: ether_driver(9s)

Index Index for
Section 9
Index Alphabetical
listing for A
Top of page Top of
page