Lines Matching defs:interface
89 pfInit(char *interface, int mode, u_short protocol, int typ)
101 perror(interface);
119 * set options, bind to underlying interface
123 strncpy(ifr.ifr_name, interface, sizeof(ifr.ifr_name));
125 /* record socket interface name and length */
126 strncpy(socklist[s].sa.sa_data, interface, sizeof(socklist[s].sa.sa_data));
127 socklist[s].iflen = strlen(interface);
146 * get the interface ethernet address
151 pfEthAddr(int s, char *interface, u_char *addr)
153 strncpy(ifr.ifr_name, interface, sizeof (ifr.ifr_name) -1);
165 * add a multicast address to the interface
170 pfAddMulti(int s, char *interface, u_char *addr)
174 strncpy(ifr.ifr_name, interface, sizeof (ifr.ifr_name) - 1);
199 * delete a multicast address from the interface
204 pfDelMulti(int s, char *interface, u_char *addr)
208 strncpy(ifr.ifr_name, interface, sizeof (ifr.ifr_name) - 1);
233 * return 1 if ethernet interface capable of multiple opens
268 /* check if from right interface */
302 pfTrans(char *interface)