Home
last modified time | relevance | path

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

/external/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 …]
/external/mdnsresponder/mDNSCore/
DuDNS.c2111 if (h->natinfo.clientContext) mDNS_StopNATOperation_internal(m, &h->natinfo); in AdvertiseHostname()
2112 h->natinfo.Protocol = 0; in AdvertiseHostname()
2113 h->natinfo.IntPort = zeroIPPort; in AdvertiseHostname()
2114 h->natinfo.RequestedPort = zeroIPPort; in AdvertiseHostname()
2115 h->natinfo.NATLease = 0; in AdvertiseHostname()
2116 h->natinfo.clientCallback = hostnameGetPublicAddressCallback; in AdvertiseHostname()
2117 h->natinfo.clientContext = h; in AdvertiseHostname()
2118 mDNS_StartNATOperation_internal(m, &h->natinfo); in AdvertiseHostname()
2158 if (hi->natinfo.clientContext) mDNS_StopNATOperation_internal(m, &hi->natinfo); in HostnameCallback()
2159 hi->natinfo.clientContext = mDNSNULL; in HostnameCallback()
DmDNSEmbeddedAPI.h1371 NATTraversalInfo natinfo; member