Searched refs:natinfo (Results 1 – 2 of 2) sorted by relevance
42 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)target->data; in brsnat_init() local44 natinfo->target = EBT_ACCEPT; in brsnat_init()53 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)(*target)->data; in brsnat_parse() local61 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() local93 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 …]
39 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)target->data; in brdnat_init() local41 natinfo->target = EBT_ACCEPT; in brdnat_init()49 struct ebt_nat_info *natinfo = (struct ebt_nat_info *)(*target)->data; in brdnat_parse() local57 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() local82 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() local104 ether_ntoa((struct ether_addr *)natinfo->mac), in brdnat_xlate()[all …]