Lines Matching refs:natinfo
42 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)target->data; in brsnat_init() local
44 natinfo->target = EBT_ACCEPT; in brsnat_init()
53 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)(*target)->data; in brsnat_parse() local
61 memcpy(natinfo->mac, addr, ETH_ALEN); in brsnat_parse()
68 natinfo->target = (natinfo->target & ~EBT_VERDICT_BITS) | (tmp & EBT_VERDICT_BITS); in brsnat_parse()
73 natinfo->target ^= NAT_ARP_BIT; in brsnat_parse()
90 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)target->data; in brsnat_print() local
93 xtables_print_mac(natinfo->mac); in brsnat_print()
94 if (!(natinfo->target&NAT_ARP_BIT)) in brsnat_print()
96 printf(" --snat-target %s", ebt_target_name((natinfo->target|~EBT_VERDICT_BITS))); in brsnat_print()
114 const struct ebt_nat_info *natinfo = (const void*)params->target->data; in brsnat_xlate() local
117 ether_ntoa((struct ether_addr *)natinfo->mac)); in brsnat_xlate()
120 if (!(natinfo->target&NAT_ARP_BIT)) in brsnat_xlate()
123 xt_xlate_add(xl, "%s ", brsnat_verdict(natinfo->target | ~EBT_VERDICT_BITS)); in brsnat_xlate()