/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/netfilter_ipv4/ |
H A D | ipt_cone.h | 25 void ipt_cone_cleanup_conntrack(struct nf_conn_nat *nat);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/rc/ |
H A D | firewall.c | 52 add_forward(netconf_nat_t *nat, int dir, int target) argument 58 filter.match.ipproto = nat->match.ipproto; 59 filter.match.src.ports[1] = nat->match.src.ports[1]; 60 filter.match.dst.ipaddr.s_addr = nat->ipaddr.s_addr; 62 filter.match.dst.ports[0] = nat->ports[0]; 63 filter.match.dst.ports[1] = nat->ports[1]; 64 strncpy(filter.match.in.name, nat->match.in.name, IFNAMSIZ); 71 netconf_add_nat(nat); 410 netconf_nat_t nat; 444 memset(&nat, [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/bcmupnp/upnp/linux/ |
H A D | upnpnat.c | 38 netconf_nat_t nat = *entry; local 42 filter.match.ipproto = nat.match.ipproto; 43 filter.match.src.ports[1] = nat.match.src.ports[1]; 44 filter.match.dst.ipaddr.s_addr = nat.ipaddr.s_addr; 46 filter.match.dst.ports[0] = nat.ports[0]; 47 filter.match.dst.ports[1] = nat.ports[1]; 48 strncpy(filter.match.in.name, nat.match.in.name, IFNAMSIZ); 55 netconf_add_nat(&nat); 67 netconf_nat_t nat = *entry; local 71 filter.match.ipproto = nat 108 netconf_nat_t nat, *entry = &nat; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/netfilter/ |
H A D | ipt_cone.c | 65 struct nf_conn_nat *nat; local 69 list_for_each_entry(nat, &bycone[h], info.bycone) { 70 ct = (struct nf_conn *)((char *)nat - offsetof(struct nf_conn, data)); 83 struct nf_conn_nat *nat = nfct_nat(ct); local 90 if ((nat->info.nat_type & NFC_IP_CONE_NAT)) { 96 list_add(&nat->info.bycone, &bycone[conehash]); 103 ipt_cone_cleanup_conntrack(struct nf_conn_nat *nat) argument 105 if (nat->info.bycone.next) { 107 list_del(&nat->info.bycone); 121 struct nf_conn_nat *nat; local [all...] |
H A D | ipt_MASQUERADE.c | 65 struct nf_conn_nat *nat; local 75 nat = nfct_nat(ct); 81 nat->info.nat_type |= ((*pskb)->nfcache & NFC_IP_CONE_NAT) ? NFC_IP_CONE_NAT:0; 98 nat->masq_index = out->ifindex; 114 struct nf_conn_nat *nat = nfct_nat(i); local 117 if (!nat) 121 ret = (nat->masq_index == (int)(long)ifindex); 176 .table = "nat",
|
H A D | nf_nat_core.c | 106 struct nf_conn_nat *nat; local 110 nat = nfct_nat(conn); 112 list_del(&nat->info.bysource); 116 ipt_cone_cleanup_conntrack(nat); 184 struct nf_conn_nat *nat; local 188 list_for_each_entry(nat, &bysource[h], info.bysource) { 189 ct = (struct nf_conn *)((char *)nat - offsetof(struct nf_conn, data)); 316 struct nf_conn_nat *nat = nfct_nat(ct); local 317 struct nf_nat_info *info = &nat->info; 654 struct nf_conn_nat *nat local [all...] |
H A D | nf_nat_helper.c | 43 struct nf_conn_nat *nat = nfct_nat(ct); local 50 this_way = &nat->info.seq[dir]; 51 other_way = &nat->info.seq[!dir]; 322 struct nf_conn_nat *nat = nfct_nat(ct); local 353 &nat->info.seq[!dir]); 369 struct nf_conn_nat *nat = nfct_nat(ct); local 374 this_way = &nat->info.seq[dir]; 375 other_way = &nat->info.seq[!dir];
|
H A D | nf_nat_standalone.c | 79 struct nf_conn_nat *nat; local 112 nat = nfct_nat(ct); 113 if (!nat)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/bcmupnp/ |
H A D | Makefile | 49 $(MAKE) -C $(UPNP) -f Makefile.nat CFG_BCMIGD=$(CFG_BCMIGD) install 53 $(MAKE) -C $(UPNP) -f Makefile.nat clean 57 $(MAKE) -C $(UPNP) -f Makefile.nat DEBUG=$(DEBUG) CFG_BCMIGD=$(CFG_BCMIGD)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/shared/ |
H A D | nvparse.h | 52 extern bool valid_forward_port(const netconf_nat_t *nat); 53 extern bool get_forward_port(int which, netconf_nat_t *nat); 54 extern bool set_forward_port(int which, const netconf_nat_t *nat);
|
H A D | nvparse.c | 283 valid_forward_port(const netconf_nat_t *nat) argument 286 if (ntohs(nat->match.dst.ports[0]) > ntohs(nat->match.dst.ports[1])) 290 if (nat->match.ipproto != IPPROTO_TCP && nat->match.ipproto != IPPROTO_UDP) 294 if (nat->ipaddr.s_addr == htonl(0)) 298 if (ntohs(nat->ports[0]) > ntohs(nat->ports[1])) 302 if ((ntohs(nat->match.dst.ports[1]) - ntohs(nat 310 get_forward_port(int which, netconf_nat_t *nat) argument 400 set_forward_port(int which, const netconf_nat_t *nat) argument 468 netconf_nat_t nat, unused; local [all...] |
H A D | broadcom.c | 4532 netconf_nat_t nat; local 4542 valid = get_forward_port(i, &nat); 4551 valid && nat.match.ipproto == IPPROTO_TCP ? "selected" : ""); 4553 valid && nat.match.ipproto == IPPROTO_UDP ? "selected" : ""); 4560 snprintf(port, sizeof(port), "%d", ntohs(nat.match.dst.ports[0])); 4567 snprintf(port, sizeof(port), "%d", ntohs(nat.match.dst.ports[1])); 4576 i, valid ? inet_ntoa(nat.ipaddr) : ""); 4581 snprintf(port, sizeof(port), "%d", ntohs(nat.ports[0])); 4588 snprintf(port, sizeof(port), "%d", ntohs(nat.ports[1])); 4597 i, valid && !(nat 8869 netconf_nat_t nat; local 9196 netconf_nat_t nat; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/netconf/ |
H A D | main.c | 43 netconf_nat_t *nat; local 159 nat = (netconf_nat_t *) fw; 160 printf(" to %s", inet_ntoa(nat->ipaddr)); 161 if (valid_ports(nat->ports[0], nat->ports[1])) { 162 printf(":%d", ntohs(nat->ports[0])); 163 if (nat->ports[1] != nat->ports[0]) 164 printf("-%d", ntohs(nat->ports[1]));
|
H A D | netconf_linux.c | 50 static const char *ipt_table_names[] = { "filter", "nat", NULL }; 55 "nat", "nat", "nat", "nat" 75 /* ipt nat chain name appropriate for target (indexed by netconf_nat_t.target) */ 143 if (strcmp(*table, "filter") && strcmp(*table, "nat")) 163 netconf_nat_t *nat = NULL; local 187 nat = calloc(1, sizeof(netconf_nat_t)); 188 fw = (netconf_fw_t *) nat; 387 const netconf_nat_t *nat = NULL; local 787 netconf_nat_t *nat = NULL; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-ia64/ |
H A D | unwind.h | 85 signed long off : 61; /* NaT word is at loc+nat.off */ 86 } nat; member in struct:unw_frame_info::unw_ireg 198 unw_set_gr (struct unw_frame_info *i, int n, unsigned long v, char nat) argument 200 return unw_access_gr(i, n, &v, &nat, 1); 227 #define unw_get_gr(i,n,v,nat) unw_access_gr(i,n,v,nat,0)
|
H A D | ptrace.h | 298 /* get nat bits for scratch registers such that bit N==1 iff scratch register rN is a NaT */ 300 /* put nat bits for scratch registers such that scratch register rN is a NaT iff bit N==1 */ 301 extern unsigned long ia64_put_scratch_nat_bits (struct pt_regs *pt, unsigned long nat); 310 unsigned long nat; member in struct:pt_all_user_regs
|
H A D | processor.h | 600 ia64_set_unat (__u64 *unat, void *spill_addr, unsigned long nat) argument 605 *unat = (*unat & ~mask) | (nat << bit);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ia64/kernel/ |
H A D | unaligned.c | 303 set_rse_reg (struct pt_regs *regs, unsigned long r1, unsigned long val, int nat) argument 337 if (nat) 361 DPRINT("rnat @%p = 0x%lx nat=%d old nat=%ld\n", 362 (void *) rnat_addr, rnats, nat, (rnats >> ia64_rse_slot_num(addr)) & 1); 365 if (nat) 376 get_rse_reg (struct pt_regs *regs, unsigned long r1, unsigned long *val, int *nat) argument 405 if (nat) { 410 *nat = (*rnat_addr & nat_mask) != 0; 429 if (nat) { 449 setreg(unsigned long regnum, unsigned long val, int nat, struct pt_regs *regs) argument 623 getreg(unsigned long regnum, unsigned long *val, int *nat, struct pt_regs *regs) argument [all...] |
H A D | ptrace.c | 110 ia64_put_scratch_nat_bits (struct pt_regs *pt, unsigned long nat) argument 112 # define PUT_BITS(first, last, nat) \ 122 ia64_rotl(nat & mask, dist); \ 131 scratch_unat = PUT_BITS( 1, 1, nat); 132 scratch_unat |= PUT_BITS( 2, 3, nat); 133 scratch_unat |= PUT_BITS(12, 13, nat); 134 scratch_unat |= PUT_BITS(14, 14, nat); 135 scratch_unat |= PUT_BITS(15, 15, nat); 136 scratch_unat |= PUT_BITS( 8, 11, nat); 137 scratch_unat |= PUT_BITS(16, 31, nat); 755 char nat = 0; local 825 char nat = 0; local 1116 char nat = 0; local [all...] |
H A D | signal.c | 54 unsigned long ip, flags, nat, um, cfm, rsc; local 62 err |= __get_user(nat, &sc->sc_nat); 86 scr->scratch_unat = ia64_put_scratch_nat_bits(&scr->pt, nat); 246 unsigned long flags = 0, ifs, cfm, nat; local 263 nat = ia64_get_scratch_nat_bits(&scr->pt, scr->scratch_unat); 266 err |= __put_user(nat, &sc->sc_nat);
|
H A D | process.c | 503 char nat; local 535 unw_get_gr(info, i, &dst[i], &nat); 536 if (nat)
|
H A D | mca.c | 824 u64 fslot, tslot, nat; local 829 nat = (fnat >> fslot) & 1; 830 *tnat |= (nat << tslot); 888 u64 old_unat, old_rnat, new_rnat, nat; local 1098 nat = (new_rnat >> ia64_rse_slot_num(new_bspstore)) & 1UL; 1100 old_rnat |= (nat << ia64_rse_slot_num(old_bspstore));
|
H A D | unwind.c | 284 unw_access_gr (struct unw_frame_info *info, int regnum, unsigned long *val, char *nat, int write) argument 293 *nat = 0; 307 nat_addr = addr + ireg->nat.off; 308 switch (ireg->nat.type) { 312 if (*nat) { 323 *nat = 1; 391 if (*nat) 399 *nat = 0; 402 *nat = 1; 1394 UNW_DPRINT(0, "unwind.%s: don't know how to emit nat inf [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/ |
H A D | nf_conntrack_core.c | 333 ipc_entry.nat.ip = manip->src.u3.ip; 334 ipc_entry.nat.port = manip->src.u.tcp.port; 337 ipc_entry.nat.ip = manip->dst.u3.ip; 338 ipc_entry.nat.port = manip->dst.u.tcp.port; 390 NIPQUAD(ipc_entry.nat.ip), ntohs(ipc_entry.nat.port)); 508 * features(helper, nat, ...)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/include/ctf/ |
H A D | hndctf.h | 224 struct ctf_nat nat; /* Manip data for SNAT, DNAT */ member in struct:ctf_ipc
|