Home
last modified time | relevance | path

Searched refs:natinfo (Results 1 – 2 of 2) sorted by relevance

/third_party/iptables/extensions/
Dlibebt_snat.c42 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()
[all …]
Dlibebt_dnat.c39 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)target->data; in brdnat_init() local
41 natinfo->target = EBT_ACCEPT; in brdnat_init()
49 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)(*target)->data; in brdnat_parse() local
57 memcpy(natinfo->mac, addr, ETH_ALEN); in brdnat_parse()
61 if (ebt_fill_target(optarg, (unsigned int *)&natinfo->target)) in brdnat_parse()
79 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)target->data; in brdnat_print() local
82 xtables_print_mac(natinfo->mac); in brdnat_print()
83 printf(" --dnat-target %s", ebt_target_name(natinfo->target)); in brdnat_print()
101 const struct ebt_nat_info *natinfo = (const void*)params->target->data; in brdnat_xlate() local
104 ether_ntoa((struct ether_addr *)natinfo->mac), in brdnat_xlate()
[all …]