/linux-2.6.39/net/netfilter/ |
D | nf_conntrack_sip.c | 55 unsigned int (*nf_nat_sip_hook)(struct sk_buff *skb, unsigned int dataoff, 64 unsigned int dataoff, 72 unsigned int (*nf_nat_sdp_addr_hook)(struct sk_buff *skb, unsigned int dataoff, 82 unsigned int (*nf_nat_sdp_port_hook)(struct sk_buff *skb, unsigned int dataoff, 91 unsigned int dataoff, 99 unsigned int (*nf_nat_sdp_media_hook)(struct sk_buff *skb, unsigned int dataoff, 400 unsigned int dataoff, unsigned int datalen, in ct_sip_get_header() argument 408 for (dptr += dataoff; dptr < limit; dptr++) { in ct_sip_get_header() 468 unsigned int dataoff, unsigned int datalen, in ct_sip_next_header() argument 476 dptr += dataoff; in ct_sip_next_header() [all …]
|
D | nf_conntrack_h323_main.c | 53 unsigned char **data, int dataoff, 58 unsigned char **data, int dataoff, 75 unsigned char **data, int dataoff, 83 unsigned char **data, int dataoff, 89 unsigned char **data, int dataoff, 95 unsigned char **data, int dataoff, 115 unsigned char **data, int *datalen, int *dataoff) in get_tpkt_data() argument 158 *dataoff = 0; in get_tpkt_data() 172 tpktoff = *dataoff + *datalen; in get_tpkt_data() 204 *dataoff = tpktoff + 4; in get_tpkt_data() [all …]
|
D | nf_conntrack_proto_udp.c | 32 unsigned int dataoff, in udp_pkt_to_tuple() argument 39 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udp_pkt_to_tuple() 69 unsigned int dataoff, in udp_packet() argument 89 unsigned int dataoff) in udp_new() argument 95 unsigned int dataoff, enum ip_conntrack_info *ctinfo, in udp_error() argument 99 unsigned int udplen = skb->len - dataoff; in udp_error() 104 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udp_error() 129 nf_checksum(skb, hooknum, dataoff, IPPROTO_UDP, pf)) { in udp_error()
|
D | nf_conntrack_proto_udplite.c | 31 unsigned int dataoff, in udplite_pkt_to_tuple() argument 37 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udplite_pkt_to_tuple() 66 unsigned int dataoff, in udplite_packet() argument 87 unsigned int dataoff) in udplite_new() argument 94 unsigned int dataoff, in udplite_error() argument 99 unsigned int udplen = skb->len - dataoff; in udplite_error() 105 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udplite_error() 133 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_UDP, in udplite_error()
|
D | nf_conntrack_proto_tcp.c | 274 static bool tcp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in tcp_pkt_to_tuple() argument 281 hp = skb_header_pointer(skb, dataoff, 8, &_hdr); in tcp_pkt_to_tuple() 360 unsigned int dataoff, in segment_seq_plus_len() argument 365 return (seq + len - dataoff - tcph->doff*4 in segment_seq_plus_len() 379 unsigned int dataoff, in tcp_options() argument 390 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options() 434 static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff, in tcp_sack() argument 445 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_sack() 515 unsigned int dataoff, in tcp_in_window() argument 533 end = segment_seq_plus_len(seq, skb->len, dataoff, tcph); in tcp_in_window() [all …]
|
D | nf_conntrack_proto_sctp.c | 130 static bool sctp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in sctp_pkt_to_tuple() argument 137 hp = skb_header_pointer(skb, dataoff, 8, &_hdr); in sctp_pkt_to_tuple() 175 #define for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) \ argument 176 for ((offset) = (dataoff) + sizeof(sctp_sctphdr_t), (count) = 0; \ 184 unsigned int dataoff, in do_basic_checks() argument 193 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in do_basic_checks() 285 unsigned int dataoff, in sctp_packet() argument 299 sh = skb_header_pointer(skb, dataoff, sizeof(_sctph), &_sctph); in sctp_packet() 303 if (do_basic_checks(ct, skb, dataoff, map) != 0) in sctp_packet() 319 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in sctp_packet() [all …]
|
D | nf_conntrack_amanda.c | 92 unsigned int dataoff, start, stop, off, i; in amanda_help() local 108 dataoff = protoff + sizeof(struct udphdr); in amanda_help() 109 if (dataoff >= skb->len) { in amanda_help() 116 start = skb_find_text(skb, dataoff, skb->len, in amanda_help() 120 start += dataoff + search[SEARCH_CONNECT].len; in amanda_help() 159 ret = nf_nat_amanda(skb, ctinfo, off - dataoff, in amanda_help()
|
D | nf_conntrack_proto_generic.c | 18 unsigned int dataoff, in generic_pkt_to_tuple() argument 46 unsigned int dataoff, in packet() argument 57 unsigned int dataoff) in new() argument
|
D | nf_conntrack_irc.c | 107 unsigned int dataoff; in help() local 138 dataoff = protoff + th->doff*4; in help() 139 if (dataoff >= skb->len) in help() 143 ib_ptr = skb_header_pointer(skb, dataoff, skb->len - dataoff, in help() 148 data_limit = ib_ptr + skb->len - dataoff; in help()
|
D | nf_conntrack_sane.c | 66 unsigned int dataoff, datalen; in help() local 90 dataoff = protoff + th->doff * 4; in help() 91 if (dataoff >= skb->len) in help() 94 datalen = skb->len - dataoff; in help() 97 sb_ptr = skb_header_pointer(skb, dataoff, datalen, sane_buffer); in help()
|
D | nf_conntrack_proto_dccp.c | 403 static bool dccp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in dccp_pkt_to_tuple() argument 408 dh = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in dccp_pkt_to_tuple() 426 unsigned int dataoff) in dccp_new() argument 434 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_new() 476 unsigned int dataoff, enum ip_conntrack_info ctinfo, in dccp_packet() argument 486 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_packet() 569 struct sk_buff *skb, unsigned int dataoff, in dccp_error() argument 574 unsigned int dccp_len = skb->len - dataoff; in dccp_error() 578 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_error() 600 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_DCCP, in dccp_error()
|
D | nf_conntrack_proto_gre.c | 177 static bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in gre_pkt_to_tuple() argument 188 grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr); in gre_pkt_to_tuple() 197 pgrehdr = skb_header_pointer(skb, dataoff, 8, &_pgrehdr); in gre_pkt_to_tuple() 233 unsigned int dataoff, in gre_packet() argument 255 unsigned int dataoff) in gre_new() argument
|
D | nf_conntrack_ftp.c | 353 unsigned int dataoff, datalen; in help() local 380 dataoff = protoff + th->doff * 4; in help() 382 if (dataoff >= skb->len) { in help() 383 pr_debug("ftp: dataoff(%u) >= skblen(%u)\n", dataoff, in help() 387 datalen = skb->len - dataoff; in help() 390 fb_ptr = skb_header_pointer(skb, dataoff, datalen, ftp_buffer); in help()
|
D | nf_conntrack_core.c | 110 unsigned int dataoff, in nf_ct_get_tuple() argument 126 return l4proto->pkt_to_tuple(skb, dataoff, tuple); in nf_ct_get_tuple() 736 unsigned int dataoff, u32 hash) in init_conntrack() argument 757 if (!l4proto->new(ct, skb, dataoff)) { in init_conntrack() 817 unsigned int dataoff, in resolve_normal_ct() argument 832 dataoff, l3num, protonum, &tuple, l3proto, in resolve_normal_ct() 843 skb, dataoff, hash); in resolve_normal_ct() 884 unsigned int dataoff; in nf_conntrack_in() local 902 &dataoff, &protonum); in nf_conntrack_in() 917 ret = l4proto->error(net, tmpl, skb, dataoff, &ctinfo, in nf_conntrack_in() [all …]
|
/linux-2.6.39/include/linux/netfilter/ |
D | nf_conntrack_sip.h | 38 int (*request)(struct sk_buff *skb, unsigned int dataoff, 41 int (*response)(struct sk_buff *skb, unsigned int dataoff, 106 unsigned int dataoff, 111 unsigned int dataoff, 118 unsigned int dataoff, 126 unsigned int dataoff, 133 unsigned int dataoff, 139 unsigned int dataoff, 153 unsigned int dataoff, unsigned int datalen, 157 unsigned int *dataoff, unsigned int datalen, [all …]
|
D | nf_conntrack_h323.h | 40 unsigned char **data, int dataoff, 45 unsigned char **data, int dataoff, 62 unsigned char **data, int dataoff, 69 unsigned char **data, int dataoff, 74 unsigned char **data, int dataoff, 80 unsigned char **data, int dataoff,
|
/linux-2.6.39/net/ipv4/netfilter/ |
D | nf_nat_sip.c | 33 static unsigned int mangle_packet(struct sk_buff *skb, unsigned int dataoff, in mangle_packet() argument 46 matchoff += dataoff - baseoff; in mangle_packet() 54 matchoff += dataoff - baseoff; in mangle_packet() 63 *dptr = skb->data + dataoff; in mangle_packet() 68 static int map_addr(struct sk_buff *skb, unsigned int dataoff, in map_addr() argument 97 return mangle_packet(skb, dataoff, dptr, datalen, matchoff, matchlen, in map_addr() 101 static int map_sip_addr(struct sk_buff *skb, unsigned int dataoff, in map_sip_addr() argument 114 return map_addr(skb, dataoff, dptr, datalen, matchoff, matchlen, in map_sip_addr() 118 static unsigned int ip_nat_sip(struct sk_buff *skb, unsigned int dataoff, in ip_nat_sip() argument 135 !map_addr(skb, dataoff, dptr, datalen, matchoff, matchlen, in ip_nat_sip() [all …]
|
D | nf_nat_h323.c | 25 unsigned char **data, int dataoff, in set_addr() argument 39 addroff += dataoff; in set_addr() 56 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr() 77 unsigned char **data, int dataoff, in set_h225_addr() argument 81 return set_addr(skb, data, dataoff, taddr->ipAddress.ip, in set_h225_addr() 87 unsigned char **data, int dataoff, in set_h245_addr() argument 91 return set_addr(skb, data, dataoff, in set_h245_addr() 179 unsigned char **data, int dataoff, in nat_rtp_rtcp() argument 253 if (set_h245_addr(skb, data, dataoff, taddr, in nat_rtp_rtcp() 284 unsigned char **data, int dataoff, in nat_t120() argument [all …]
|
D | nf_conntrack_proto_icmp.c | 26 static bool icmp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in icmp_pkt_to_tuple() argument 32 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmp_pkt_to_tuple() 81 unsigned int dataoff, in icmp_packet() argument 96 unsigned int dataoff) in icmp_new() argument 169 struct sk_buff *skb, unsigned int dataoff, in icmp_error() argument 186 nf_ip_checksum(skb, hooknum, dataoff, 0)) { in icmp_error()
|
/linux-2.6.39/net/ipv6/ |
D | netfilter.c | 109 unsigned int dataoff, u_int8_t protocol) in nf_ip6_checksum() argument 119 skb->len - dataoff, protocol, in nf_ip6_checksum() 122 dataoff, 0)))) { in nf_ip6_checksum() 130 skb->len - dataoff, in nf_ip6_checksum() 134 dataoff, 0)))); in nf_ip6_checksum() 142 unsigned int dataoff, unsigned int len, in nf_ip6_checksum_partial() argument 151 if (len == skb->len - dataoff) in nf_ip6_checksum_partial() 152 return nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_ip6_checksum_partial() 155 hsum = skb_checksum(skb, 0, dataoff, 0); in nf_ip6_checksum_partial() 158 skb->len - dataoff, in nf_ip6_checksum_partial() [all …]
|
/linux-2.6.39/net/netfilter/ipvs/ |
D | ip_vs_pe_sip.c | 28 static int get_callid(const char *dptr, unsigned int dataoff, in get_callid() argument 34 int ret = ct_sip_get_header(NULL, dptr, dataoff, datalen, in get_callid() 41 dataoff += *matchoff; in get_callid() 72 unsigned int dataoff, datalen, matchoff, matchlen; in ip_vs_sip_fill_param() local 83 dataoff = iph.len + sizeof(struct udphdr); in ip_vs_sip_fill_param() 84 if (dataoff >= skb->len) in ip_vs_sip_fill_param() 89 dptr = skb->data + dataoff; in ip_vs_sip_fill_param() 90 datalen = skb->len - dataoff; in ip_vs_sip_fill_param() 92 if (get_callid(dptr, dataoff, datalen, &matchoff, &matchlen)) in ip_vs_sip_fill_param()
|
/linux-2.6.39/net/ipv4/ |
D | netfilter.c | 173 unsigned int dataoff, u_int8_t protocol) in nf_ip_checksum() argument 184 skb->len - dataoff, protocol, in nf_ip_checksum() 195 skb->len - dataoff, in nf_ip_checksum() 204 unsigned int dataoff, unsigned int len, in nf_ip_checksum_partial() argument 212 if (len == skb->len - dataoff) in nf_ip_checksum_partial() 213 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial() 217 skb->len - dataoff, 0); in nf_ip_checksum_partial() 219 return __skb_checksum_complete_head(skb, dataoff + len); in nf_ip_checksum_partial()
|
/linux-2.6.39/net/ipv6/netfilter/ |
D | nf_conntrack_proto_icmpv6.c | 33 unsigned int dataoff, in icmpv6_pkt_to_tuple() argument 39 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmpv6_pkt_to_tuple() 94 unsigned int dataoff, in icmpv6_packet() argument 109 unsigned int dataoff) in icmpv6_new() argument 185 struct sk_buff *skb, unsigned int dataoff, in icmpv6_error() argument 192 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in icmpv6_error() 201 nf_ip6_checksum(skb, hooknum, dataoff, IPPROTO_ICMPV6)) { in icmpv6_error() 221 return icmpv6_error_message(net, tmpl, skb, dataoff, ctinfo, hooknum); in icmpv6_error()
|
/linux-2.6.39/include/net/netfilter/ |
D | nf_conntrack_l4proto.h | 27 bool (*pkt_to_tuple)(const struct sk_buff *skb, unsigned int dataoff, 39 unsigned int dataoff, 47 unsigned int dataoff); 53 unsigned int dataoff, enum ip_conntrack_info *ctinfo,
|
/linux-2.6.39/include/linux/ |
D | netfilter.h | 267 unsigned int dataoff, u_int8_t protocol); 270 unsigned int dataoff, 289 nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, in nf_checksum() argument 298 csum = afinfo->checksum(skb, hook, dataoff, protocol); in nf_checksum() 305 unsigned int dataoff, unsigned int len, in nf_checksum_partial() argument 314 csum = afinfo->checksum_partial(skb, hook, dataoff, len, in nf_checksum_partial()
|