Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/netfilter/
Dutils.c11 unsigned int dataoff, u8 protocol) in nf_ip_checksum() argument
22 skb->len - dataoff, protocol, in nf_ip_checksum()
33 skb->len - dataoff, in nf_ip_checksum()
43 unsigned int dataoff, unsigned int len, in nf_ip_checksum_partial() argument
51 if (len == skb->len - dataoff) in nf_ip_checksum_partial()
52 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
56 skb->len - dataoff, 0); in nf_ip_checksum_partial()
58 return __skb_checksum_complete_head(skb, dataoff + len); in nf_ip_checksum_partial()
64 unsigned int dataoff, u8 protocol) in nf_ip6_checksum() argument
74 skb->len - dataoff, protocol, in nf_ip6_checksum()
[all …]
Dnf_conntrack_sip.c362 unsigned int dataoff, unsigned int datalen, in ct_sip_get_header() argument
370 for (dptr += dataoff; dptr < limit; dptr++) { in ct_sip_get_header()
430 unsigned int dataoff, unsigned int datalen, in ct_sip_next_header() argument
438 dptr += dataoff; in ct_sip_next_header()
460 unsigned int dataoff, unsigned int datalen, in ct_sip_walk_headers() argument
468 ret = ct_sip_next_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers()
474 dataoff += *matchoff; in ct_sip_walk_headers()
480 ret = ct_sip_get_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers()
486 dataoff += *matchoff; in ct_sip_walk_headers()
500 unsigned int *dataoff, unsigned int datalen, in ct_sip_parse_header_uri() argument
[all …]
Dnf_nat_sip.c33 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()
91 unsigned int dataoff, in map_addr() argument
121 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr()
126 unsigned int dataoff, in map_sip_addr() argument
139 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr()
144 unsigned int dataoff, in nf_nat_sip() argument
162 !map_addr(skb, protoff, dataoff, dptr, datalen, in nf_nat_sip()
[all …]
Dnf_conntrack_h323_main.c55 unsigned char **data, int dataoff,
60 unsigned char **data, int dataoff,
78 unsigned char **data, int dataoff,
87 unsigned char **data, int dataoff,
94 unsigned char **data, int dataoff,
101 unsigned char **data, int dataoff,
121 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_conntrack_proto_udp.c48 unsigned int dataoff, in udp_packet() argument
74 unsigned int dataoff) in udp_new() argument
88 unsigned int dataoff, in udplite_error() argument
91 unsigned int udplen = skb->len - dataoff; in udplite_error()
97 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udplite_error()
119 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_UDP, in udplite_error()
136 unsigned int dataoff, in udp_error() argument
140 unsigned int udplen = skb->len - dataoff; in udp_error()
145 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udp_error()
166 nf_checksum(skb, hooknum, dataoff, IPPROTO_UDP, pf)) { in udp_error()
Dnf_conntrack_proto_sctp.c162 #define for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) \ argument
163 for ((offset) = (dataoff) + sizeof(struct sctphdr), (count) = 0; \
171 unsigned int dataoff, in do_basic_checks() argument
180 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in do_basic_checks()
279 unsigned int dataoff, in sctp_packet() argument
292 sh = skb_header_pointer(skb, dataoff, sizeof(_sctph), &_sctph); in sctp_packet()
296 if (do_basic_checks(ct, skb, dataoff, map) != 0) in sctp_packet()
314 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in sctp_packet()
402 unsigned int dataoff) in sctp_new() argument
412 sh = skb_header_pointer(skb, dataoff, sizeof(_sctph), &_sctph); in sctp_new()
[all …]
Dnf_conntrack_amanda.c93 unsigned int dataoff, start, stop, off, i; in amanda_help() local
109 dataoff = protoff + sizeof(struct udphdr); in amanda_help()
110 if (dataoff >= skb->len) { in amanda_help()
115 start = skb_find_text(skb, dataoff, skb->len, in amanda_help()
119 start += dataoff + search[SEARCH_CONNECT].len; in amanda_help()
158 off - dataoff, len, exp); in amanda_help()
Dnf_conntrack_proto_icmpv6.c39 unsigned int dataoff, in icmpv6_pkt_to_tuple() argument
46 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmpv6_pkt_to_tuple()
96 unsigned int dataoff, in icmpv6_packet() argument
114 unsigned int dataoff) in icmpv6_new() argument
190 struct sk_buff *skb, unsigned int dataoff, in icmpv6_error() argument
197 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in icmpv6_error()
204 nf_ip6_checksum(skb, hooknum, dataoff, IPPROTO_ICMPV6)) { in icmpv6_error()
220 return icmpv6_error_message(net, tmpl, skb, dataoff); in icmpv6_error()
Dnf_conntrack_sane.c68 unsigned int dataoff, datalen; in help() local
91 dataoff = protoff + th->doff * 4; in help()
92 if (dataoff >= skb->len) in help()
95 datalen = skb->len - dataoff; in help()
98 sb_ptr = skb_header_pointer(skb, dataoff, datalen, sane_buffer); in help()
Dnf_conntrack_irc.c111 unsigned int dataoff; in help() local
141 dataoff = protoff + th->doff*4; in help()
142 if (dataoff >= skb->len) in help()
146 ib_ptr = skb_header_pointer(skb, dataoff, skb->len - dataoff, in help()
151 data_limit = ib_ptr + skb->len - dataoff; in help()
Dnf_conntrack_proto_tcp.c331 unsigned int dataoff, in segment_seq_plus_len() argument
336 return (seq + len - dataoff - tcph->doff*4 in segment_seq_plus_len()
350 unsigned int dataoff, in tcp_options() argument
361 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options()
406 static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff, in tcp_sack() argument
417 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_sack()
474 unsigned int dataoff, in tcp_in_window() argument
492 end = segment_seq_plus_len(seq, skb->len, dataoff, tcph); in tcp_in_window()
495 tcp_sack(skb, dataoff, tcph, &sack); in tcp_in_window()
527 tcp_options(skb, dataoff, tcph, sender); in tcp_in_window()
[all …]
Dnf_conntrack_proto_icmp.c33 static bool icmp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in icmp_pkt_to_tuple() argument
39 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmp_pkt_to_tuple()
83 unsigned int dataoff, in icmp_packet() argument
101 unsigned int dataoff) in icmp_new() argument
180 struct sk_buff *skb, unsigned int dataoff, in icmp_error() argument
195 nf_ip_checksum(skb, hooknum, dataoff, 0)) { in icmp_error()
Dnf_conntrack_proto_generic.c36 unsigned int dataoff, in generic_pkt_to_tuple() argument
48 unsigned int dataoff, in generic_packet() argument
62 unsigned int dataoff) in generic_new() argument
Dnf_conntrack_proto_dccp.c393 unsigned int dataoff) in dccp_new() argument
401 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &_dh); in dccp_new()
442 unsigned int dataoff, enum ip_conntrack_info ctinfo) in dccp_packet() argument
450 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &_dh); in dccp_packet()
531 struct sk_buff *skb, unsigned int dataoff, in dccp_error() argument
535 unsigned int dccp_len = skb->len - dataoff; in dccp_error()
539 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &_dh); in dccp_error()
561 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_DCCP, in dccp_error()
Dnf_conntrack_core.c228 unsigned int dataoff, in nf_ct_get_tuple() argument
278 return l4proto->pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple()
281 inet_hdr = skb_header_pointer(skb, dataoff, sizeof(_inet_hdr), &_inet_hdr); in nf_ct_get_tuple()
293 int dataoff = -1; in ipv4_get_l4proto() local
307 dataoff = nhoff + (iph->ihl << 2); in ipv4_get_l4proto()
311 if (dataoff > skb->len) { in ipv4_get_l4proto()
316 return dataoff; in ipv4_get_l4proto()
1344 unsigned int dataoff, u32 hash) in init_conntrack() argument
1373 if (!l4proto->new(ct, skb, dataoff)) { in init_conntrack()
1441 unsigned int dataoff, in resolve_normal_ct() argument
[all …]
Dnf_conntrack_proto_gre.c184 static bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in gre_pkt_to_tuple() argument
194 grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr); in gre_pkt_to_tuple()
203 pgrehdr = skb_header_pointer(skb, dataoff, 8, &_pgrehdr); in gre_pkt_to_tuple()
237 unsigned int dataoff, in gre_packet() argument
257 unsigned int dataoff) in gre_new() argument
Dnf_nat_helper.c32 unsigned int dataoff, in mangle_contents() argument
41 data = skb_network_header(skb) + dataoff; in mangle_contents()
46 skb_tail_pointer(skb) - (skb_network_header(skb) + dataoff + in mangle_contents()
Dnf_conntrack_ftp.c379 unsigned int dataoff, datalen; in help() local
406 dataoff = protoff + th->doff * 4; in help()
408 if (dataoff >= skb->len) { in help()
409 pr_debug("ftp: dataoff(%u) >= skblen(%u)\n", dataoff, in help()
413 datalen = skb->len - dataoff; in help()
416 fb_ptr = skb_header_pointer(skb, dataoff, datalen, ftp_buffer); in help()
/Linux-v4.19/include/linux/netfilter/
Dnf_conntrack_sip.h45 unsigned int dataoff,
49 unsigned int dataoff,
114 unsigned int dataoff,
123 unsigned int dataoff,
132 unsigned int dataoff,
142 unsigned int dataoff,
151 unsigned int dataoff,
159 unsigned int dataoff,
175 unsigned int dataoff, unsigned int datalen,
179 unsigned int *dataoff, unsigned int datalen,
[all …]
Dnf_conntrack_h323.h41 unsigned char **data, int dataoff,
46 unsigned char **data, int dataoff,
64 int dataoff,
72 unsigned char **data, int dataoff,
78 unsigned char **data, int dataoff,
85 unsigned char **data, int dataoff,
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_pe_sip.c29 static int get_callid(const char *dptr, unsigned int dataoff, in get_callid() argument
35 int ret = ct_sip_get_header(NULL, dptr, dataoff, datalen, in get_callid()
42 dataoff += *matchoff; in get_callid()
69 unsigned int dataoff, datalen, matchoff, matchlen; in ip_vs_sip_fill_param() local
81 dataoff = iph.len + sizeof(struct udphdr); in ip_vs_sip_fill_param()
83 if (dataoff >= skb->len) in ip_vs_sip_fill_param()
88 dptr = skb->data + dataoff; in ip_vs_sip_fill_param()
89 datalen = skb->len - dataoff; in ip_vs_sip_fill_param()
/Linux-v4.19/net/ipv4/netfilter/
Dnf_nat_h323.c25 unsigned char **data, int dataoff, in set_addr() argument
39 addroff += dataoff; in set_addr()
54 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr()
73 unsigned char **data, int dataoff, in set_h225_addr() argument
77 return set_addr(skb, protoff, data, dataoff, taddr->ipAddress.ip, in set_h225_addr()
83 unsigned char **data, int dataoff, in set_h245_addr() argument
87 return set_addr(skb, protoff, data, dataoff, in set_h245_addr()
177 unsigned int protoff, unsigned char **data, int dataoff, in nat_rtp_rtcp() argument
252 if (set_h245_addr(skb, protoff, data, dataoff, taddr, in nat_rtp_rtcp()
283 unsigned int protoff, unsigned char **data, int dataoff, in nat_t120() argument
[all …]
/Linux-v4.19/include/net/netfilter/
Dnf_conntrack_l4proto.h35 bool (*pkt_to_tuple)(const struct sk_buff *skb, unsigned int dataoff,
47 unsigned int dataoff,
53 unsigned int dataoff);
59 unsigned int dataoff,
/Linux-v4.19/include/linux/
Dnetfilter_ipv4.h25 unsigned int dataoff, u_int8_t protocol);
31 unsigned int dataoff, u_int8_t protocol) in nf_ip_checksum() argument
/Linux-v4.19/drivers/nvdimm/
Dbtt.h116 __le64 dataoff; member
189 u64 dataoff; member

12