/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/ |
H A D | netfilter.c | 11 int ip_route_me_harder(struct sk_buff **pskb, unsigned addr_type) argument 13 const struct iphdr *iph = ip_hdr(*pskb); 32 fl.oif = (*pskb)->sk ? (*pskb)->sk->sk_bound_dev_if : 0; 33 fl.mark = (*pskb)->mark; 38 dst_release((*pskb)->dst); 39 (*pskb)->dst = &rt->u.dst; 47 odst = (*pskb)->dst; 48 if (ip_route_input(*pskb, iph->daddr, iph->saddr, 57 if ((*pskb) 86 ip_xfrm_me_harder(struct sk_buff **pskb) argument 153 nf_ip_reroute(struct sk_buff **pskb, const struct nf_info *info) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/netfilter/ |
H A D | nf_nat_helper.c | 115 static int enlarge_skb(struct sk_buff **pskb, unsigned int extra) argument 119 if ((*pskb)->len + extra > 65535) 122 nskb = skb_copy_expand(*pskb, skb_headroom(*pskb), extra, GFP_ATOMIC); 127 if ((*pskb)->sk) 128 skb_set_owner_w(nskb, (*pskb)->sk); 129 kfree_skb(*pskb); 130 *pskb = nskb; 135 nf_nat_mangle_tcp_packet(struct sk_buff **pskb, argument 143 struct rtable *rt = (struct rtable *)(*pskb) 201 nf_nat_mangle_udp_packet(struct sk_buff **pskb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len) argument 316 nf_nat_sack_adjust(struct sk_buff **pskb, struct tcphdr *tcph, struct nf_conn *ct, enum ip_conntrack_info ctinfo) argument 362 nf_nat_seq_adjust(struct sk_buff **pskb, struct nf_conn *ct, enum ip_conntrack_info ctinfo) argument [all...] |
H A D | arpt_mangle.c | 11 target(struct sk_buff **pskb, argument 21 if (skb_shared(*pskb) || skb_cloned(*pskb)) { 24 nskb = skb_copy(*pskb, GFP_ATOMIC); 27 if ((*pskb)->sk) 28 skb_set_owner_w(nskb, (*pskb)->sk); 29 kfree_skb(*pskb); 30 *pskb = nskb; 33 arp = arp_hdr(*pskb); 34 arpptr = skb_network_header(*pskb) [all...] |
H A D | nf_nat_sip.c | 65 static int map_sip_addr(struct sk_buff **pskb, enum ip_conntrack_info ctinfo, argument 89 if (!nf_nat_mangle_udp_packet(pskb, ct, ctinfo, 92 *dptr = (*pskb)->data + ip_hdrlen(*pskb) + sizeof(struct udphdr); 97 static unsigned int ip_nat_sip(struct sk_buff **pskb, argument 106 dataoff = ip_hdrlen(*pskb) + sizeof(struct udphdr); 107 datalen = (*pskb)->len - dataoff; 126 if (!map_sip_addr(pskb, ctinfo, ct, dptr, datalen, pos, &map)) 130 if (!map_sip_addr(pskb, ctinfo, ct, dptr, datalen, POS_FROM, &map) || 131 !map_sip_addr(pskb, ctinf 138 mangle_sip_packet(struct sk_buff **pskb, enum ip_conntrack_info ctinfo, struct nf_conn *ct, const char **dptr, size_t dlen, char *buffer, int bufflen, enum sip_header_pos pos) argument 159 mangle_content_len(struct sk_buff **pskb, enum ip_conntrack_info ctinfo, struct nf_conn *ct, const char *dptr) argument 191 mangle_sdp(struct sk_buff **pskb, enum ip_conntrack_info ctinfo, struct nf_conn *ct, __be32 newip, u_int16_t port, const char *dptr) argument 246 ip_nat_sdp(struct sk_buff **pskb, enum ip_conntrack_info ctinfo, struct nf_conntrack_expect *exp, const char *dptr) argument [all...] |
H A D | ipt_ECN.c | 29 set_ect_ip(struct sk_buff **pskb, const struct ipt_ECN_info *einfo) argument 31 struct iphdr *iph = ip_hdr(*pskb); 35 if (!skb_make_writable(pskb, sizeof(struct iphdr))) 37 iph = ip_hdr(*pskb); 48 set_ect_tcp(struct sk_buff **pskb, const struct ipt_ECN_info *einfo) argument 54 tcph = skb_header_pointer(*pskb, ip_hdrlen(*pskb), 65 if (!skb_make_writable(pskb, ip_hdrlen(*pskb) + sizeof(*tcph))) 67 tcph = (void *)ip_hdr(*pskb) 81 target(struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, unsigned int hooknum, const struct xt_target *target, const void *targinfo) argument [all...] |
H A D | nf_nat_standalone.c | 72 struct sk_buff **pskb, 85 NF_CT_ASSERT(!(ip_hdr(*pskb)->frag_off & htons(IP_MF | IP_OFFSET))); 87 ct = nf_ct_get(*pskb, &ctinfo); 96 if (ip_hdr(*pskb)->protocol == IPPROTO_ICMP) { 99 hp = skb_header_pointer(*pskb, ip_hdrlen(*pskb), 119 if (ip_hdr(*pskb)->protocol == IPPROTO_ICMP) { 121 hooknum, pskb)) 141 ret = nf_nat_rule_find(pskb, hooknum, in, out, 162 return nf_nat_packet(ct, ctinfo, hooknum, pskb); 71 nf_nat_fn(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 166 nf_nat_in(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 185 nf_nat_out(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 220 nf_nat_local_fn(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 256 nf_nat_adjust(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument [all...] |
H A D | iptable_raw.c | 50 struct sk_buff **pskb, 55 return ipt_do_table(pskb, hook, in, out, &packet_raw); 60 struct sk_buff **pskb, 66 if ((*pskb)->len < sizeof(struct iphdr) || 67 ip_hdrlen(*pskb) < sizeof(struct iphdr)) { 73 return ipt_do_table(pskb, hook, in, out, &packet_raw); 49 ipt_hook(unsigned int hook, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 59 ipt_local_hook(unsigned int hook, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument
|
H A D | iptable_mangle.c | 78 struct sk_buff **pskb, 83 return ipt_do_table(pskb, hook, in, out, &packet_mangler); 88 struct sk_buff **pskb, 100 if ((*pskb)->len < sizeof(struct iphdr) 101 || ip_hdrlen(*pskb) < sizeof(struct iphdr)) { 109 mark = (*pskb)->mark; 110 iph = ip_hdr(*pskb); 115 ret = ipt_do_table(pskb, hook, in, out, &packet_mangler); 118 iph = ip_hdr(*pskb); 122 (*pskb) 77 ipt_route_hook(unsigned int hook, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 87 ipt_local_hook(unsigned int hook, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/netfilter/ |
H A D | ebt_snat.c | 18 static int ebt_target_snat(struct sk_buff **pskb, unsigned int hooknr, argument 24 if (skb_shared(*pskb) || skb_cloned(*pskb)) { 27 nskb = skb_copy(*pskb, GFP_ATOMIC); 30 if ((*pskb)->sk) 31 skb_set_owner_w(nskb, (*pskb)->sk); 32 kfree_skb(*pskb); 33 *pskb = nskb; 35 memcpy(eth_hdr(*pskb)->h_source, info->mac, ETH_ALEN); 37 eth_hdr(*pskb) [all...] |
H A D | ebt_dnat.c | 16 static int ebt_target_dnat(struct sk_buff **pskb, unsigned int hooknr, argument 22 if (skb_shared(*pskb) || skb_cloned(*pskb)) { 25 nskb = skb_copy(*pskb, GFP_ATOMIC); 28 if ((*pskb)->sk) 29 skb_set_owner_w(nskb, (*pskb)->sk); 30 kfree_skb(*pskb); 31 *pskb = nskb; 33 memcpy(eth_hdr(*pskb)->h_dest, info->mac, ETH_ALEN);
|
H A D | ebt_redirect.c | 17 static int ebt_target_redirect(struct sk_buff **pskb, unsigned int hooknr, argument 23 if (skb_shared(*pskb) || skb_cloned(*pskb)) { 26 nskb = skb_copy(*pskb, GFP_ATOMIC); 29 if ((*pskb)->sk) 30 skb_set_owner_w(nskb, (*pskb)->sk); 31 kfree_skb(*pskb); 32 *pskb = nskb; 35 memcpy(eth_hdr(*pskb)->h_dest, 38 memcpy(eth_hdr(*pskb) [all...] |
H A D | ebt_mark.c | 20 static int ebt_target_mark(struct sk_buff **pskb, unsigned int hooknr, argument 28 (*pskb)->mark = info->mark; 30 (*pskb)->mark |= info->mark; 32 (*pskb)->mark &= info->mark; 34 (*pskb)->mark ^= info->mark;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/netfilter/ |
H A D | nf_conntrack_amanda.h | 5 extern unsigned int (*nf_nat_amanda_hook)(struct sk_buff **pskb,
|
H A D | nf_conntrack_irc.h | 8 extern unsigned int (*nf_nat_irc_hook)(struct sk_buff **pskb,
|
H A D | nf_conntrack_h323.h | 39 extern int (*set_h245_addr_hook) (struct sk_buff **pskb, 44 extern int (*set_h225_addr_hook) (struct sk_buff **pskb, 49 extern int (*set_sig_addr_hook) (struct sk_buff **pskb, 54 extern int (*set_ras_addr_hook) (struct sk_buff **pskb, 59 extern int (*nat_rtp_rtcp_hook) (struct sk_buff **pskb, 67 extern int (*nat_t120_hook) (struct sk_buff **pskb, struct nf_conn *ct, 72 extern int (*nat_h245_hook) (struct sk_buff **pskb, struct nf_conn *ct, 77 extern int (*nat_callforwarding_hook) (struct sk_buff **pskb, 84 extern int (*nat_q931_hook) (struct sk_buff **pskb, struct nf_conn *ct,
|
H A D | nf_conntrack_tftp.h | 16 extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff **pskb,
|
H A D | nf_conntrack_sip.h | 24 extern unsigned int (*nf_nat_sip_hook)(struct sk_buff **pskb, 28 extern unsigned int (*nf_nat_sdp_hook)(struct sk_buff **pskb,
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/ |
H A D | xt_NOTRACK.c | 14 target(struct sk_buff **pskb, argument 22 if ((*pskb)->nfct != NULL) 29 (*pskb)->nfct = &nf_conntrack_untracked.ct_general; 30 (*pskb)->nfctinfo = IP_CT_NEW; 31 nf_conntrack_get((*pskb)->nfct);
|
H A D | xt_TCPMSS.c | 42 tcpmss_mangle_packet(struct sk_buff **pskb, argument 53 if (!skb_make_writable(pskb, (*pskb)->len)) 56 tcplen = (*pskb)->len - tcphoff; 57 tcph = (struct tcphdr *)(skb_network_header(*pskb) + tcphoff); 67 (*pskb)->len); 72 if (dst_mtu((*pskb)->dst) <= minlen) { 76 dst_mtu((*pskb)->dst)); 79 newmss = dst_mtu((*pskb)->dst) - minlen; 98 nf_proto_csum_replace2(&tcph->check, *pskb, 141 xt_tcpmss_target4(struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, unsigned int hooknum, const struct xt_target *target, const void *targinfo) argument 167 xt_tcpmss_target6(struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, unsigned int hooknum, const struct xt_target *target, const void *targinfo) argument [all...] |
H A D | xt_DSCP.c | 28 static unsigned int target(struct sk_buff **pskb, argument 36 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(*pskb)) >> XT_DSCP_SHIFT; 39 if (!skb_make_writable(pskb, sizeof(struct iphdr))) 42 ipv4_change_dsfield(ip_hdr(*pskb), (__u8)(~XT_DSCP_MASK), 49 static unsigned int target6(struct sk_buff **pskb, argument 57 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(*pskb)) >> XT_DSCP_SHIFT; 60 if (!skb_make_writable(pskb, sizeof(struct ipv6hdr))) 63 ipv6_change_dsfield(ipv6_hdr(*pskb), (__u8)(~XT_DSCP_MASK),
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/netfilter/ |
H A D | nf_nat_core.h | 12 struct sk_buff **pskb); 17 struct sk_buff **pskb);
|
H A D | nf_conntrack_core.h | 25 struct sk_buff **pskb); 61 extern int __nf_conntrack_confirm(struct sk_buff **pskb); 64 static inline int nf_conntrack_confirm(struct sk_buff **pskb) argument 66 struct nf_conn *ct = (struct nf_conn *)(*pskb)->nfct; 71 ret = __nf_conntrack_confirm(pskb);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/netfilter/ |
H A D | ip6table_mangle.c | 73 struct sk_buff **pskb, 78 return ip6t_do_table(pskb, hook, in, out, &packet_mangler); 83 struct sk_buff **pskb, 96 memcpy(&saddr, &ipv6_hdr(*pskb)->saddr, sizeof(saddr)); 97 memcpy(&daddr, &ipv6_hdr(*pskb)->daddr, sizeof(daddr)); 98 mark = (*pskb)->mark; 99 hop_limit = ipv6_hdr(*pskb)->hop_limit; 102 flowlabel = *((u_int32_t *)ipv6_hdr(*pskb)); 104 ret = ip6t_do_table(pskb, hook, in, out, &packet_mangler); 107 && (memcmp(&ipv6_hdr(*pskb) 72 ip6t_route_hook(unsigned int hook, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 82 ip6t_local_hook(unsigned int hook, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument [all...] |
H A D | nf_conntrack_l3proto_ipv6.c | 123 ipv6_prepare(struct sk_buff **pskb, unsigned int hooknum, unsigned int *dataoff, argument 126 unsigned int extoff = (u8 *)(ipv6_hdr(*pskb) + 1) - (*pskb)->data; 127 unsigned char pnum = ipv6_hdr(*pskb)->nexthdr; 128 int protoff = nf_ct_ipv6_skip_exthdr(*pskb, extoff, &pnum, 129 (*pskb)->len - extoff); 131 * (protoff == (*pskb)->len) mean that the packet doesn't have no data 134 if ((protoff < 0) || (protoff > (*pskb)->len)) { 152 struct sk_buff **pskb, 162 unsigned int extoff = (u8 *)(ipv6_hdr(*pskb) 151 ipv6_confirm(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 194 ipv6_defrag(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 222 ipv6_conntrack_in(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument 260 ipv6_conntrack_local(unsigned int hooknum, struct sk_buff **pskb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/ipvs/ |
H A D | ip_vs_proto_udp.c | 132 udp_snat_handler(struct sk_buff **pskb, argument 136 const unsigned int udphoff = ip_hdrlen(*pskb); 139 if (!ip_vs_make_skb_writable(pskb, udphoff+sizeof(*udph))) 144 if (pp->csum_check && !pp->csum_check(*pskb, pp)) 150 if (!ip_vs_app_pkt_out(cp, pskb)) 154 udph = (void *)ip_hdr(*pskb) + udphoff; 164 if ((*pskb)->ip_summed == CHECKSUM_COMPLETE) 165 (*pskb)->ip_summed = CHECKSUM_NONE; 169 (*pskb)->csum = skb_checksum(*pskb, udphof 186 udp_dnat_handler(struct sk_buff **pskb, struct ip_vs_protocol *pp, struct ip_vs_conn *cp) argument [all...] |