Searched refs:ifindex (Results 1 - 25 of 85) sorted by relevance

1234

/asus-wl-520gu-7.0.1.45/src/router/udhcpd/
H A Dsocket.h5 int read_interface(char *interface, int *ifindex, u_int32_t *addr, unsigned char *arp);
7 int raw_socket(int ifindex);
H A Ddhcpc.h27 int ifindex; /* Index number of the interface to use */ member in struct:client_config_t
H A Dsocket.c48 int read_interface(char *interface, int *ifindex, u_int32_t *addr, unsigned char *arp) argument
73 *ifindex = ifr.ifr_ifindex;
137 int raw_socket(int ifindex) argument
167 DEBUG(LOG_INFO, "Opening raw socket on ifindex %d\n", ifindex);
175 sock.sll_ifindex = ifindex;
H A Dpacket.h36 u_int32_t dest_ip, int dest_port, unsigned char *dest_arp, int ifindex);
H A Ddhcpd.h106 int ifindex; /* Index number of the interface to use */ member in struct:server_config_t
H A Dclientpacket.c123 SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
144 SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
164 SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter/
H A Dipt_MASQUERADE.c80 key.oif = out->ifindex;
94 ct->nat.masq_index = out->ifindex;
107 device_cmp(const struct ip_conntrack *i, void *ifindex) argument
109 return (i->nat.masq_index == (int)(long)ifindex);
122 IP_NF_ASSERT(dev->ifindex != 0);
124 ip_ct_selective_cleanup(device_cmp, (void *)(long)dev->ifindex);
140 IP_NF_ASSERT(dev->ifindex != 0);
142 ip_ct_selective_cleanup(device_cmp, (void *)(long)dev->ifindex);
H A Dip_queue.c444 dev_cmp(struct ipq_queue_entry *entry, unsigned long ifindex) argument
447 if (entry->info->indev->ifindex == ifindex)
451 if (entry->info->outdev->ifindex == ifindex)
458 ipq_dev_drop(int ifindex) argument
462 while ((entry = ipq_find_dequeue_entry(dev_cmp, ifindex)) != NULL)
552 ipq_dev_drop(dev->ifindex);
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter.noQoS/
H A Dipt_MASQUERADE.c83 key.oif = out->ifindex;
98 ct->nat.masq_index = out->ifindex;
112 device_cmp(const struct ip_conntrack *i, void *ifindex) argument
117 ret = (i->nat.masq_index == (int)(long)ifindex);
133 IP_NF_ASSERT(dev->ifindex != 0);
135 ip_ct_selective_cleanup(device_cmp, (void *)(long)dev->ifindex);
151 IP_NF_ASSERT(dev->ifindex != 0);
153 ip_ct_selective_cleanup(device_cmp, (void *)(long)dev->ifindex);
H A Dip_queue.c444 dev_cmp(struct ipq_queue_entry *entry, unsigned long ifindex) argument
447 if (entry->info->indev->ifindex == ifindex)
451 if (entry->info->outdev->ifindex == ifindex)
458 ipq_dev_drop(int ifindex) argument
462 while ((entry = ipq_find_dequeue_entry(dev_cmp, ifindex)) != NULL)
552 ipq_dev_drop(dev->ifindex);
/asus-wl-520gu-7.0.1.45/src/router/bridge/libbridge/
H A Dlibbridge.h67 int ifindex; member in struct:bridge
103 int ifindex; member in struct:port
118 int br_add_interface(struct bridge *br, int ifindex);
119 int br_del_interface(struct bridge *br, int ifindex);
H A Dlibbridge_devif.c47 int br_add_interface(struct bridge *br, int ifindex) argument
49 if (br_device_ioctl(br, BRCTL_ADD_IF, ifindex, 0, 0) < 0)
55 int br_del_interface(struct bridge *br, int ifindex) argument
57 if (br_device_ioctl(br, BRCTL_DEL_IF, ifindex, 0, 0) < 0)
H A Dlibbridge_misc.c81 if (p->ifindex == index)
H A Dif_index.c204 if_indextoname (unsigned int ifindex, char *ifname) argument
230 ifr.ifr_ifindex = ifindex;
253 if (p->if_index == ifindex)
H A Dlibbridge_init.c80 if (if_indextoname(br->ifindex, br->ifname) == NULL)
137 p->ifindex = ifindices[i];
172 br->ifindex = ifindices[i];
/asus-wl-520gu-7.0.1.45/src/router/bridge/brctl/
H A Dbrctl_cmd.c76 int ifindex; local
78 ifindex = if_nametoindex(ifname);
79 if (!ifindex) {
84 if ((err = br_add_interface(br, ifindex)) == 0)
103 int ifindex; local
105 ifindex = if_nametoindex(ifname);
106 if (!ifindex) {
111 if ((err = br_del_interface(br, ifindex)) == 0)
H A Dbrctl_disp.c45 printf("%s (%i)\n", if_indextoname(p->ifindex, ifname), p->index);
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/
H A Dmcast.c76 int ipv6_sock_mc_join(struct sock *sk, int ifindex, struct in6_addr *addr) argument
94 if (ifindex == 0) {
103 dev = dev_get_by_index(ifindex);
110 mc_lst->ifindex = dev->ifindex;
137 int ipv6_sock_mc_drop(struct sock *sk, int ifindex, struct in6_addr *addr) argument
144 if (mc_lst->ifindex == ifindex &&
151 if ((dev = dev_get_by_index(ifindex)) != NULL) {
176 dev = dev_get_by_index(mc_lst->ifindex);
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/packet/
H A Daf_packet.c164 int ifindex; member in struct:packet_mclist
182 int ifindex; /* bound device */ member in struct:packet_opt
474 sll->sll_ifindex = dev->ifindex;
620 sll->sll_ifindex = dev->ifindex;
670 int ifindex, err, reserve = 0; local
677 ifindex = sk->protinfo.af_packet->ifindex;
684 ifindex = saddr->sll_ifindex;
690 dev = dev_get_by_index(ifindex);
840 sk->protinfo.af_packet->ifindex
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/8021q/
H A Dvlan.c183 struct vlan_group *grp = __vlan_find_group(real_dev->ifindex);
201 int real_dev_ifindex = real_dev->ifindex;
431 /* new_dev->ifindex = 0; it will be set when added to
497 real_dev->ifindex);
504 grp = __vlan_find_group(real_dev->ifindex);
517 grp->real_dev_ifindex = real_dev->ifindex;
571 grp = __vlan_find_group(dev->ifindex);
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/netfilter/
H A Dip6_queue.c487 dev_cmp(struct ipq_queue_entry *entry, unsigned long ifindex) argument
490 if (entry->info->indev->ifindex == ifindex)
494 if (entry->info->outdev->ifindex == ifindex)
501 ipq_dev_drop(int ifindex) argument
505 while ((entry = ipq_find_dequeue_entry(dev_cmp, ifindex)) != NULL)
595 ipq_dev_drop(dev->ifindex);
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/net/
H A Daddrconf.h67 int ifindex,
70 int ifindex,
H A Dif_inet6.h52 int ifindex; member in struct:ipv6_mc_socklist
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/net/
H A Daddrconf.h67 int ifindex,
70 int ifindex,
/asus-wl-520gu-7.0.1.45/src/router/httpd/
H A Ddp.h137 int ifindex; /* Index number of the interface to use */ member in struct:client_config_t
152 ifindex: 0,
266 int raw_socket(int ifindex);
268 u_int32_t dest_ip, int dest_port, unsigned char *dest_arp, int ifindex);
287 int read_interface(char *interface, int *ifindex, u_int32_t *addr, unsigned char *arp);

Completed in 117 milliseconds

1234