• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/ebtables/extensions/

Lines Matching defs:arpinfo

80 	struct ebt_arp_info *arpinfo = (struct ebt_arp_info *)match->data;
82 arpinfo->invflags = 0;
83 arpinfo->bitmask = 0;
98 struct ebt_arp_info *arpinfo = (struct ebt_arp_info *)(*match)->data;
110 arpinfo->invflags |= EBT_ARP_OPCODE;
120 arpinfo->opcode = htons(i);
121 arpinfo->bitmask |= EBT_ARP_OPCODE;
127 arpinfo->invflags |= EBT_ARP_HTYPE;
135 arpinfo->htype = htons(i);
136 arpinfo->bitmask |= EBT_ARP_HTYPE;
145 arpinfo->invflags |= EBT_ARP_PTYPE;
159 arpinfo->ptype = htons(proto);
160 arpinfo->bitmask |= EBT_ARP_PTYPE;
168 addr = &arpinfo->saddr;
169 mask = &arpinfo->smsk;
170 arpinfo->bitmask |= EBT_ARP_SRC_IP;
173 addr = &arpinfo->daddr;
174 mask = &arpinfo->dmsk;
175 arpinfo->bitmask |= EBT_ARP_DST_IP;
179 arpinfo->invflags |= EBT_ARP_SRC_IP;
181 arpinfo->invflags |= EBT_ARP_DST_IP;
190 maddr = arpinfo->smaddr;
191 mmask = arpinfo->smmsk;
192 arpinfo->bitmask |= EBT_ARP_SRC_MAC;
195 maddr = arpinfo->dmaddr;
196 mmask = arpinfo->dmmsk;
197 arpinfo->bitmask |= EBT_ARP_DST_MAC;
201 arpinfo->invflags |= EBT_ARP_SRC_MAC;
203 arpinfo->invflags |= EBT_ARP_DST_MAC;
210 arpinfo->bitmask |= EBT_ARP_GRAT;
212 arpinfo->invflags |= EBT_ARP_GRAT;
233 struct ebt_arp_info *arpinfo = (struct ebt_arp_info *)match->data;
236 if (arpinfo->bitmask & EBT_ARP_OPCODE) {
237 int opcode = ntohs(arpinfo->opcode);
239 if (arpinfo->invflags & EBT_ARP_OPCODE)
246 if (arpinfo->bitmask & EBT_ARP_HTYPE) {
248 if (arpinfo->invflags & EBT_ARP_HTYPE)
250 printf("%d ", ntohs(arpinfo->htype));
252 if (arpinfo->bitmask & EBT_ARP_PTYPE) {
256 if (arpinfo->invflags & EBT_ARP_PTYPE)
258 ent = getethertypebynumber(ntohs(arpinfo->ptype));
260 printf("0x%x ", ntohs(arpinfo->ptype));
264 if (arpinfo->bitmask & EBT_ARP_SRC_IP) {
266 if (arpinfo->invflags & EBT_ARP_SRC_IP)
269 printf("%d%s", ((unsigned char *)&arpinfo->saddr)[i],
271 printf("%s ", ebt_mask_to_dotted(arpinfo->smsk));
273 if (arpinfo->bitmask & EBT_ARP_DST_IP) {
275 if (arpinfo->invflags & EBT_ARP_DST_IP)
278 printf("%d%s", ((unsigned char *)&arpinfo->daddr)[i],
280 printf("%s ", ebt_mask_to_dotted(arpinfo->dmsk));
282 if (arpinfo->bitmask & EBT_ARP_SRC_MAC) {
284 if (arpinfo->invflags & EBT_ARP_SRC_MAC)
286 ebt_print_mac_and_mask(arpinfo->smaddr, arpinfo->smmsk);
289 if (arpinfo->bitmask & EBT_ARP_DST_MAC) {
291 if (arpinfo->invflags & EBT_ARP_DST_MAC)
293 ebt_print_mac_and_mask(arpinfo->dmaddr, arpinfo->dmmsk);
296 if (arpinfo->bitmask & EBT_ARP_GRAT) {
297 if (arpinfo->invflags & EBT_ARP_GRAT)