Home
last modified time | relevance | path

Searched refs:dataoff (Results 1 – 19 of 19) sorted by relevance

/net/netfilter/
Dutils.c11 unsigned int dataoff, u8 protocol) in nf_ip_checksum() argument
23 skb->len - dataoff, protocol, in nf_ip_checksum()
34 skb->len - dataoff, in nf_ip_checksum()
44 unsigned int dataoff, unsigned int len, in nf_ip_checksum_partial() argument
52 if (len == skb->len - dataoff) in nf_ip_checksum_partial()
53 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
57 skb->len - dataoff, 0); in nf_ip_checksum_partial()
59 return __skb_checksum_complete_head(skb, dataoff + len); in nf_ip_checksum_partial()
65 unsigned int dataoff, u8 protocol) in nf_ip6_checksum() argument
75 skb->len - dataoff, protocol, in nf_ip6_checksum()
[all …]
Dnf_conntrack_sip.c368 unsigned int dataoff, unsigned int datalen, in ct_sip_get_header() argument
376 for (dptr += dataoff; dptr < limit; dptr++) { in ct_sip_get_header()
436 unsigned int dataoff, unsigned int datalen, in ct_sip_next_header() argument
444 dptr += dataoff; in ct_sip_next_header()
466 unsigned int dataoff, unsigned int datalen, in ct_sip_walk_headers() argument
474 ret = ct_sip_next_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers()
480 dataoff = *matchoff; in ct_sip_walk_headers()
486 ret = ct_sip_get_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers()
492 dataoff = *matchoff; in ct_sip_walk_headers()
506 unsigned int *dataoff, unsigned int datalen, in ct_sip_parse_header_uri() argument
[all …]
Dnf_conntrack_h323_main.c54 unsigned char **data, int dataoff,
59 unsigned char **data, int dataoff,
77 unsigned char **data, int dataoff,
86 unsigned char **data, int dataoff,
93 unsigned char **data, int dataoff,
100 unsigned char **data, int dataoff,
120 unsigned char **data, int *datalen, int *dataoff) in get_tpkt_data() argument
164 *dataoff = 0; in get_tpkt_data()
178 tpktoff = *dataoff + *datalen; in get_tpkt_data()
210 *dataoff = tpktoff + 4; in get_tpkt_data()
[all …]
Dnf_nat_sip.c35 unsigned int dataoff, in mangle_packet() argument
48 matchoff += dataoff - baseoff; in mangle_packet()
56 matchoff += dataoff - baseoff; in mangle_packet()
65 *dptr = skb->data + dataoff; in mangle_packet()
93 unsigned int dataoff, in map_addr() argument
123 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr()
128 unsigned int dataoff, in map_sip_addr() argument
141 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr()
146 unsigned int dataoff, in nf_nat_sip() argument
164 !map_addr(skb, protoff, dataoff, dptr, datalen, in nf_nat_sip()
[all …]
Dnf_conntrack_proto_udp.c45 unsigned int dataoff, in udp_error() argument
48 unsigned int udplen = skb->len - dataoff; in udp_error()
53 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udp_error()
75 nf_checksum(skb, state->hook, dataoff, IPPROTO_UDP, state->pf)) { in udp_error()
86 unsigned int dataoff, in nf_conntrack_udp_packet() argument
92 if (udp_error(skb, dataoff, state)) in nf_conntrack_udp_packet()
139 unsigned int dataoff, in udplite_error() argument
142 unsigned int udplen = skb->len - dataoff; in udplite_error()
148 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udplite_error()
171 nf_checksum_partial(skb, state->hook, dataoff, cscov, IPPROTO_UDP, in udplite_error()
[all …]
Dnf_conntrack_proto_icmpv6.c32 unsigned int dataoff, in icmpv6_pkt_to_tuple() argument
39 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmpv6_pkt_to_tuple()
134 unsigned int dataoff, in nf_conntrack_icmpv6_redirect() argument
146 rd_msg = skb_header_pointer(skb, dataoff, sizeof(*rd_msg), &tmp.rd_msg); in nf_conntrack_icmpv6_redirect()
160 dataoff += sizeof(*rd_msg); in nf_conntrack_icmpv6_redirect()
163 nd_opt = skb_header_pointer(skb, dataoff, sizeof(*nd_opt), &tmp.nd_opt); in nf_conntrack_icmpv6_redirect()
177 dataoff += 8; in nf_conntrack_icmpv6_redirect()
178 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv6_redirect()
184 unsigned int dataoff, in nf_conntrack_icmpv6_error() argument
192 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in nf_conntrack_icmpv6_error()
[all …]
Dnf_conntrack_proto_sctp.c145 #define for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) \ argument
146 for ((offset) = (dataoff) + sizeof(struct sctphdr), (count) = 0; \
154 unsigned int dataoff, in do_basic_checks() argument
163 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in do_basic_checks()
262 const struct sctphdr *sh, unsigned int dataoff) in sctp_new() argument
271 for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) { in sctp_new()
317 unsigned int dataoff, in sctp_error() argument
323 if (skb->len < dataoff + sizeof(struct sctphdr)) { in sctp_error()
330 if (skb_ensure_writable(skb, dataoff + sizeof(*sh))) { in sctp_error()
334 sh = (const struct sctphdr *)(skb->data + dataoff); in sctp_error()
[all …]
Dnf_conntrack_proto_icmp.c27 bool icmp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in icmp_pkt_to_tuple() argument
33 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmp_pkt_to_tuple()
107 unsigned int dataoff, in nf_conntrack_inet_error() argument
124 if (!nf_ct_get_tuplepr(skb, dataoff, in nf_conntrack_inet_error()
205 struct sk_buff *skb, unsigned int dataoff, in nf_conntrack_icmpv4_error() argument
213 icmph = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in nf_conntrack_icmpv4_error()
222 nf_ip_checksum(skb, state->hook, dataoff, IPPROTO_ICMP)) { in nf_conntrack_icmpv4_error()
245 dataoff += sizeof(*icmph); in nf_conntrack_icmpv4_error()
246 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv4_error()
Dnf_conntrack_proto_tcp.c309 unsigned int dataoff, in segment_seq_plus_len() argument
314 return (seq + len - dataoff - tcph->doff*4 in segment_seq_plus_len()
328 unsigned int dataoff, in tcp_options() argument
339 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options()
385 static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff, in tcp_sack() argument
396 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_sack()
453 unsigned int dataoff, in tcp_in_window() argument
475 end = segment_seq_plus_len(seq, skb->len, dataoff, tcph); in tcp_in_window()
478 tcp_sack(skb, dataoff, tcph, &sack); in tcp_in_window()
510 tcp_options(skb, dataoff, tcph, sender); in tcp_in_window()
[all …]
Dnf_conntrack_amanda.c96 unsigned int dataoff, start, stop, off, i; in amanda_help() local
112 dataoff = protoff + sizeof(struct udphdr); in amanda_help()
113 if (dataoff >= skb->len) { in amanda_help()
118 start = skb_find_text(skb, dataoff, skb->len, in amanda_help()
122 start += dataoff + search[SEARCH_CONNECT].len; in amanda_help()
161 off - dataoff, len, exp); in amanda_help()
Dnf_conntrack_core.c260 unsigned int dataoff, in nf_ct_get_tuple_ports() argument
268 inet_hdr = skb_header_pointer(skb, dataoff, sizeof(_inet_hdr), &_inet_hdr); in nf_ct_get_tuple_ports()
280 unsigned int dataoff, in nf_ct_get_tuple() argument
327 return icmpv6_pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple()
330 return icmp_pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple()
333 return gre_pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple()
337 return nf_ct_get_tuple_ports(skb, dataoff, tuple); in nf_ct_get_tuple()
340 return nf_ct_get_tuple_ports(skb, dataoff, tuple); in nf_ct_get_tuple()
344 return nf_ct_get_tuple_ports(skb, dataoff, tuple); in nf_ct_get_tuple()
348 return nf_ct_get_tuple_ports(skb, dataoff, tuple); in nf_ct_get_tuple()
[all …]
Dnf_conntrack_irc.c109 unsigned int dataoff; in help() local
139 dataoff = protoff + th->doff*4; in help()
140 if (dataoff >= skb->len) in help()
144 ib_ptr = skb_header_pointer(skb, dataoff, skb->len - dataoff, in help()
152 data_limit = ib_ptr + skb->len - dataoff; in help()
Dnf_conntrack_sane.c67 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()
Dnf_conntrack_proto_dccp.c432 struct sk_buff *skb, unsigned int dataoff, in dccp_error() argument
442 unsigned int dccp_len = skb->len - dataoff; in dccp_error()
466 nf_checksum_partial(skb, state->hook, dataoff, cscov, in dccp_error()
513 unsigned int dataoff, in nf_conntrack_dccp_packet() argument
524 dh = skb_header_pointer(skb, dataoff, sizeof(*dh), &_dh.dh); in nf_conntrack_dccp_packet()
528 if (dccp_error(dh, skb, dataoff, state)) in nf_conntrack_dccp_packet()
532 dh = dccp_header_pointer(skb, dataoff, dh, &_dh); in nf_conntrack_dccp_packet()
Dnf_conntrack_ftp.c378 unsigned int dataoff, datalen; in help() local
405 dataoff = protoff + th->doff * 4; in help()
407 if (dataoff >= skb->len) { in help()
408 pr_debug("ftp: dataoff(%u) >= skblen(%u)\n", dataoff, in help()
412 datalen = skb->len - dataoff; in help()
415 fb_ptr = skb_header_pointer(skb, dataoff, datalen, ftp_buffer); in help()
Dnf_conntrack_proto_gre.c151 bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in gre_pkt_to_tuple() argument
161 grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr); in gre_pkt_to_tuple()
170 pgrehdr = skb_header_pointer(skb, dataoff, 8, &_pgrehdr); in gre_pkt_to_tuple()
204 unsigned int dataoff, in nf_conntrack_gre_packet() argument
Dnf_nat_helper.c26 unsigned int dataoff, in mangle_contents() argument
35 data = skb_network_header(skb) + dataoff; in mangle_contents()
40 skb_tail_pointer(skb) - (skb_network_header(skb) + dataoff + in mangle_contents()
/net/netfilter/ipvs/
Dip_vs_pe_sip.c30 static int get_callid(const char *dptr, unsigned int dataoff, in get_callid() argument
36 int ret = ct_sip_get_header(NULL, dptr, dataoff, datalen, in get_callid()
43 dataoff += *matchoff; in get_callid()
70 unsigned int dataoff, datalen, matchoff, matchlen; in ip_vs_sip_fill_param() local
82 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()
/net/ipv4/netfilter/
Dnf_nat_h323.c24 unsigned char **data, int dataoff, in set_addr() argument
38 addroff += dataoff; in set_addr()
53 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr()
72 unsigned char **data, int dataoff, in set_h225_addr() argument
76 return set_addr(skb, protoff, data, dataoff, taddr->ipAddress.ip, in set_h225_addr()
82 unsigned char **data, int dataoff, in set_h245_addr() argument
86 return set_addr(skb, protoff, data, dataoff, in set_h245_addr()
176 unsigned int protoff, unsigned char **data, int dataoff, in nat_rtp_rtcp() argument
251 if (set_h245_addr(skb, protoff, data, dataoff, taddr, in nat_rtp_rtcp()
282 unsigned int protoff, unsigned char **data, int dataoff, in nat_t120() argument
[all …]