Home
last modified time | relevance | path

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

/net/netfilter/
Dnf_conntrack_sip.c56 unsigned int dataoff, const char **dptr,
66 unsigned int dataoff,
75 unsigned int dataoff,
86 unsigned int dataoff,
96 unsigned int dataoff,
105 unsigned int dataoff,
418 unsigned int dataoff, unsigned int datalen, in ct_sip_get_header() argument
426 for (dptr += dataoff; dptr < limit; dptr++) { in ct_sip_get_header()
486 unsigned int dataoff, unsigned int datalen, in ct_sip_next_header() argument
494 dptr += dataoff; in ct_sip_next_header()
[all …]
Dnf_nat_sip.c32 unsigned int dataoff, in mangle_packet() argument
45 matchoff += dataoff - baseoff; in mangle_packet()
53 matchoff += dataoff - baseoff; in mangle_packet()
62 *dptr = skb->data + dataoff; in mangle_packet()
90 unsigned int dataoff, in map_addr() argument
120 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr()
125 unsigned int dataoff, in map_sip_addr() argument
138 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr()
143 unsigned int dataoff, in nf_nat_sip() argument
161 !map_addr(skb, protoff, dataoff, dptr, datalen, in nf_nat_sip()
[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,
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.c40 unsigned int dataoff, in udp_pkt_to_tuple() argument
47 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udp_pkt_to_tuple()
82 unsigned int dataoff, in udp_packet() argument
105 unsigned int dataoff, unsigned int *timeouts) in udp_new() argument
111 unsigned int dataoff, enum ip_conntrack_info *ctinfo, in udp_error() argument
115 unsigned int udplen = skb->len - dataoff; in udp_error()
120 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udp_error()
145 nf_checksum(skb, hooknum, dataoff, IPPROTO_UDP, pf)) { in udp_error()
Dnf_conntrack_proto_udplite.c50 unsigned int dataoff, in udplite_pkt_to_tuple() argument
56 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udplite_pkt_to_tuple()
90 unsigned int dataoff, in udplite_packet() argument
113 unsigned int dataoff, unsigned int *timeouts) in udplite_new() argument
120 unsigned int dataoff, in udplite_error() argument
125 unsigned int udplen = skb->len - dataoff; in udplite_error()
131 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udplite_error()
159 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_UDP, in udplite_error()
Dnf_conntrack_amanda.c94 unsigned int dataoff, start, stop, off, i; in amanda_help() local
110 dataoff = protoff + sizeof(struct udphdr); in amanda_help()
111 if (dataoff >= skb->len) { in amanda_help()
117 start = skb_find_text(skb, dataoff, skb->len, in amanda_help()
121 start += dataoff + search[SEARCH_CONNECT].len; in amanda_help()
162 off - dataoff, len, exp); in amanda_help()
Dnf_conntrack_proto_tcp.c277 static bool tcp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in tcp_pkt_to_tuple() argument
284 hp = skb_header_pointer(skb, dataoff, 8, &_hdr); in tcp_pkt_to_tuple()
363 unsigned int dataoff, in segment_seq_plus_len() argument
368 return (seq + len - dataoff - tcph->doff*4 in segment_seq_plus_len()
382 unsigned int dataoff, in tcp_options() argument
393 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options()
437 static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff, in tcp_sack() argument
448 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_sack()
518 unsigned int dataoff, in tcp_in_window() argument
537 end = segment_seq_plus_len(seq, skb->len, dataoff, tcph); in tcp_in_window()
[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()
149 data_limit = ib_ptr + skb->len - dataoff; in help()
Dnf_conntrack_sane.c66 unsigned int dataoff, datalen; in help() local
89 dataoff = protoff + th->doff * 4; in help()
90 if (dataoff >= skb->len) in help()
93 datalen = skb->len - dataoff; in help()
96 sb_ptr = skb_header_pointer(skb, dataoff, datalen, sane_buffer); in help()
Dnf_conntrack_proto_sctp.c144 static bool sctp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in sctp_pkt_to_tuple() argument
151 hp = skb_header_pointer(skb, dataoff, 8, &_hdr); in sctp_pkt_to_tuple()
189 #define for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) \ argument
190 for ((offset) = (dataoff) + sizeof(sctp_sctphdr_t), (count) = 0; \
198 unsigned int dataoff, in do_basic_checks() argument
207 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in do_basic_checks()
304 unsigned int dataoff, in sctp_packet() argument
319 sh = skb_header_pointer(skb, dataoff, sizeof(_sctph), &_sctph); in sctp_packet()
323 if (do_basic_checks(ct, skb, dataoff, map) != 0) in sctp_packet()
339 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in sctp_packet()
[all …]
Dnf_conntrack_proto_dccp.c400 static bool dccp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in dccp_pkt_to_tuple() argument
405 dh = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in dccp_pkt_to_tuple()
423 unsigned int dataoff, unsigned int *timeouts) in dccp_new() argument
431 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_new()
479 unsigned int dataoff, enum ip_conntrack_info ctinfo, in dccp_packet() argument
489 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_packet()
571 struct sk_buff *skb, unsigned int dataoff, in dccp_error() argument
576 unsigned int dccp_len = skb->len - dataoff; in dccp_error()
580 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_error()
602 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_DCCP, in dccp_error()
Dnf_conntrack_proto_generic.c23 unsigned int dataoff, in generic_pkt_to_tuple() argument
56 unsigned int dataoff, in generic_packet() argument
68 unsigned int dataoff, unsigned int *timeouts) in generic_new() argument
Dnf_conntrack_proto_gre.c193 static bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in gre_pkt_to_tuple() argument
204 grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr); in gre_pkt_to_tuple()
213 pgrehdr = skb_header_pointer(skb, dataoff, 8, &_pgrehdr); in gre_pkt_to_tuple()
254 unsigned int dataoff, in gre_packet() argument
277 unsigned int dataoff, unsigned int *timeouts) in gre_new() argument
Dnf_conntrack_ftp.c355 unsigned int dataoff, datalen; in help() local
382 dataoff = protoff + th->doff * 4; in help()
384 if (dataoff >= skb->len) { in help()
385 pr_debug("ftp: dataoff(%u) >= skblen(%u)\n", dataoff, in help()
389 datalen = skb->len - dataoff; in help()
392 fb_ptr = skb_header_pointer(skb, dataoff, datalen, ftp_buffer); in help()
Dnf_conntrack_core.c121 unsigned int dataoff, in nf_ct_get_tuple() argument
137 return l4proto->pkt_to_tuple(skb, dataoff, tuple); in nf_ct_get_tuple()
778 unsigned int dataoff, u32 hash) in init_conntrack() argument
805 if (!l4proto->new(ct, skb, dataoff, timeouts)) { in init_conntrack()
870 unsigned int dataoff, in resolve_normal_ct() argument
885 dataoff, l3num, protonum, &tuple, l3proto, in resolve_normal_ct()
896 skb, dataoff, hash); in resolve_normal_ct()
938 unsigned int dataoff; in nf_conntrack_in() local
956 &dataoff, &protonum); in nf_conntrack_in()
971 ret = l4proto->error(net, tmpl, skb, dataoff, &ctinfo, in nf_conntrack_in()
[all …]
Dnf_nat_helper.c93 unsigned int dataoff, in mangle_contents() argument
102 data = skb_network_header(skb) + dataoff; in mangle_contents()
107 skb->tail - (skb->network_header + dataoff + in mangle_contents()
Dnf_conntrack_l3proto_generic.c59 unsigned int *dataoff, u_int8_t *protonum) in generic_get_l4proto() argument
/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()
70 unsigned int dataoff, datalen, matchoff, matchlen; in ip_vs_sip_fill_param() local
84 dataoff = iph.thoff_reasm + sizeof(struct udphdr); in ip_vs_sip_fill_param()
86 dataoff = iph.len + sizeof(struct udphdr); in ip_vs_sip_fill_param()
88 if (dataoff >= skb->len) in ip_vs_sip_fill_param()
94 dptr = skb->data + dataoff; in ip_vs_sip_fill_param()
95 datalen = skb->len - dataoff; in ip_vs_sip_fill_param()
97 if (get_callid(dptr, dataoff, datalen, &matchoff, &matchlen)) in ip_vs_sip_fill_param()
/net/ipv6/
Dnetfilter.c133 unsigned int dataoff, u_int8_t protocol) in nf_ip6_checksum() argument
143 skb->len - dataoff, protocol, in nf_ip6_checksum()
146 dataoff, 0)))) { in nf_ip6_checksum()
154 skb->len - dataoff, in nf_ip6_checksum()
158 dataoff, 0)))); in nf_ip6_checksum()
166 unsigned int dataoff, unsigned int len, in nf_ip6_checksum_partial() argument
175 if (len == skb->len - dataoff) in nf_ip6_checksum_partial()
176 return nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_ip6_checksum_partial()
179 hsum = skb_checksum(skb, 0, dataoff, 0); in nf_ip6_checksum_partial()
182 skb->len - dataoff, in nf_ip6_checksum_partial()
[all …]
/net/ipv4/
Dnetfilter.c125 unsigned int dataoff, u_int8_t protocol) in nf_ip_checksum() argument
136 skb->len - dataoff, protocol, in nf_ip_checksum()
147 skb->len - dataoff, in nf_ip_checksum()
156 unsigned int dataoff, unsigned int len, in nf_ip_checksum_partial() argument
164 if (len == skb->len - dataoff) in nf_ip_checksum_partial()
165 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
169 skb->len - dataoff, 0); in nf_ip_checksum_partial()
171 return __skb_checksum_complete_head(skb, dataoff + len); in nf_ip_checksum_partial()
/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
249 if (set_h245_addr(skb, protoff, data, dataoff, taddr, in nat_rtp_rtcp()
280 unsigned int protoff, unsigned char **data, int dataoff, in nat_t120() argument
[all …]
Dnf_conntrack_proto_icmp.c32 static bool icmp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in icmp_pkt_to_tuple() argument
38 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmp_pkt_to_tuple()
92 unsigned int dataoff, in icmp_packet() argument
108 unsigned int dataoff, unsigned int *timeouts) in icmp_new() argument
181 struct sk_buff *skb, unsigned int dataoff, in icmp_error() argument
198 nf_ip_checksum(skb, hooknum, dataoff, 0)) { in icmp_error()
Dnf_conntrack_l3proto_ipv4.c66 unsigned int *dataoff, u_int8_t *protonum) in ipv4_get_l4proto() argument
80 *dataoff = nhoff + (iph->ihl << 2); in ipv4_get_l4proto()
84 if (*dataoff > skb->len) { in ipv4_get_l4proto()
/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c38 unsigned int dataoff, in icmpv6_pkt_to_tuple() argument
44 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmpv6_pkt_to_tuple()
104 unsigned int dataoff, in icmpv6_packet() argument
120 unsigned int dataoff, unsigned int *timeouts) in icmpv6_new() argument
197 struct sk_buff *skb, unsigned int dataoff, in icmpv6_error() argument
204 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in icmpv6_error()
213 nf_ip6_checksum(skb, hooknum, dataoff, IPPROTO_ICMPV6)) { in icmpv6_error()
233 return icmpv6_error_message(net, tmpl, skb, dataoff, ctinfo, hooknum); in icmpv6_error()
Dnf_conntrack_l3proto_ipv6.c70 unsigned int *dataoff, u_int8_t *protonum) in ipv6_get_l4proto() argument
92 *dataoff = protoff; in ipv6_get_l4proto()