Home
last modified time | relevance | path

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

12

/linux/net/netfilter/
H A Dnf_conntrack_h323_main.c65 static int get_tpkt_data(struct sk_buff *skb, unsigned int protoff, in get_tpkt_data() argument
80 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in get_tpkt_data()
85 tcpdataoff = protoff + th->doff * 4; in get_tpkt_data()
208 unsigned int protoff, in expect_rtp_rtcp() argument
257 ret = nathook->nat_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in expect_rtp_rtcp()
283 unsigned int protoff, in expect_t120() argument
317 ret = nathook->nat_t120(skb, ct, ctinfo, protoff, data, in expect_t120()
335 unsigned int protoff, in process_h245_channel() argument
343 ret = expect_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in process_h245_channel()
352 ret = expect_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in process_h245_channel()
[all …]
H A Dnf_nat_sip.c34 static unsigned int mangle_packet(struct sk_buff *skb, unsigned int protoff, in mangle_packet() argument
46 th = (struct tcphdr *)(skb->data + protoff); in mangle_packet()
47 baseoff = protoff + th->doff * 4; in mangle_packet()
51 protoff, matchoff, matchlen, in mangle_packet()
55 baseoff = protoff + sizeof(struct udphdr); in mangle_packet()
59 protoff, matchoff, matchlen, in mangle_packet()
94 static int map_addr(struct sk_buff *skb, unsigned int protoff, in map_addr() argument
125 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr()
129 static int map_sip_addr(struct sk_buff *skb, unsigned int protoff, in map_sip_addr() argument
143 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr()
[all …]
H A Dnf_nat_helper.c89 unsigned int protoff, in __nf_nat_mangle_tcp_packet() argument
106 tcph = (void *)skb->data + protoff; in __nf_nat_mangle_tcp_packet()
108 oldlen = skb->len - protoff; in __nf_nat_mangle_tcp_packet()
109 mangle_contents(skb, protoff + tcph->doff*4, in __nf_nat_mangle_tcp_packet()
112 datalen = skb->len - protoff; in __nf_nat_mangle_tcp_packet()
139 unsigned int protoff, in nf_nat_mangle_udp_packet() argument
156 udph = (void *)skb->data + protoff; in nf_nat_mangle_udp_packet()
158 oldlen = skb->len - protoff; in nf_nat_mangle_udp_packet()
159 mangle_contents(skb, protoff + sizeof(*udph), in nf_nat_mangle_udp_packet()
163 datalen = skb->len - protoff; in nf_nat_mangle_udp_packet()
H A Dnf_conntrack_seqadj.c118 unsigned int protoff, in nf_ct_sack_adjust() argument
122 struct tcphdr *tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust()
126 optoff = protoff + sizeof(struct tcphdr); in nf_ct_sack_adjust()
127 optend = protoff + tcph->doff * 4; in nf_ct_sack_adjust()
132 tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust()
166 unsigned int protoff) in nf_ct_seq_adjust() argument
179 if (skb_ensure_writable(skb, protoff + sizeof(*tcph))) in nf_ct_seq_adjust()
182 tcph = (void *)skb->data + protoff; in nf_ct_seq_adjust()
212 res = nf_ct_sack_adjust(skb, protoff, ct, ctinfo); in nf_ct_seq_adjust()
H A Dnf_conntrack_sip.c925 static int set_expected_rtp_rtcp(struct sk_buff *skb, unsigned int protoff, in set_expected_rtp_rtcp() argument
1029 !hooks->sdp_port(skb, protoff, dataoff, dptr, datalen, in set_expected_rtp_rtcp()
1051 ret = hooks->sdp_media(skb, protoff, dataoff, dptr, in set_expected_rtp_rtcp()
1104 static int process_sdp(struct sk_buff *skb, unsigned int protoff, in process_sdp() argument
1187 ret = set_expected_rtp_rtcp(skb, protoff, dataoff, in process_sdp()
1199 ret = hooks->sdp_addr(skb, protoff, dataoff, in process_sdp()
1215 ret = hooks->sdp_session(skb, protoff, dataoff, in process_sdp()
1221 static int process_invite_response(struct sk_buff *skb, unsigned int protoff, in process_invite_response() argument
1232 return process_sdp(skb, protoff, dataoff, dptr, datalen, cseq); in process_invite_response()
1238 static int process_update_response(struct sk_buff *skb, unsigned int protoff, in process_update_response() argument
[all …]
H A Dxt_dccp.c36 unsigned int protoff, in dccp_find_option() argument
53 op = skb_header_pointer(skb, protoff + optoff, optlen, dccp_optbuf); in dccp_find_option()
89 match_option(u_int8_t option, const struct sk_buff *skb, unsigned int protoff, in match_option() argument
92 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option()
H A Dnf_conntrack_pptp.c252 pptp_inbound_pkt(struct sk_buff *skb, unsigned int protoff, in pptp_inbound_pkt() argument
366 return hook->inbound(skb, ct, ctinfo, protoff, ctlh, pptpReq); in pptp_inbound_pkt()
379 pptp_outbound_pkt(struct sk_buff *skb, unsigned int protoff, in pptp_outbound_pkt() argument
461 return hook->outbound(skb, ct, ctinfo, protoff, ctlh, pptpReq); in pptp_outbound_pkt()
491 conntrack_pptp_help(struct sk_buff *skb, unsigned int protoff, in conntrack_pptp_help() argument
503 unsigned int tcplen = skb->len - protoff; in conntrack_pptp_help()
521 nexthdr_off = protoff; in conntrack_pptp_help()
570 ret = pptp_outbound_pkt(skb, protoff, ctlh, pptpReq, reqlen, ct, in conntrack_pptp_help()
574 ret = pptp_inbound_pkt(skb, protoff, ctlh, pptpReq, reqlen, ct, in conntrack_pptp_help()
H A Dnf_conntrack_sane.c59 unsigned int protoff, in help() argument
83 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in help()
88 dataoff = protoff + th->doff * 4; in help()
H A Dnf_nat_amanda.c30 unsigned int protoff, in help() argument
55 protoff, matchoff, matchlen, in help()
H A Dnf_nat_irc.c34 unsigned int protoff, in help() argument
76 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, matchoff, in help()
H A Dxt_HMARK.c135 int protoff; in hmark_set_tuple_ports() local
137 protoff = proto_ports_offset(t->proto); in hmark_set_tuple_ports()
138 if (protoff < 0) in hmark_set_tuple_ports()
141 nhoff += protoff; in hmark_set_tuple_ports()
H A Dnf_nat_ftp.c66 unsigned int protoff, in nf_nat_ftp() argument
102 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, matchoff, in nf_nat_ftp()
H A Dnf_conntrack_netbios_ns.c40 static int netbios_ns_help(struct sk_buff *skb, unsigned int protoff, in netbios_ns_help() argument
H A Dxt_tcpudp.c37 unsigned int protoff, in tcp_find_option() argument
53 op = skb_header_pointer(skb, protoff + sizeof(struct tcphdr), in tcp_find_option()
/linux/include/linux/netfilter/
H A Dnf_conntrack_h323.h39 int (*set_h245_addr)(struct sk_buff *skb, unsigned int protoff,
43 int (*set_h225_addr)(struct sk_buff *skb, unsigned int protoff,
50 unsigned int protoff, unsigned char **data,
55 unsigned int protoff, unsigned char **data,
60 unsigned int protoff,
69 unsigned int protoff,
76 unsigned int protoff,
83 unsigned int protoff,
90 unsigned int protoff,
H A Dnf_conntrack_sip.h43 int (*request)(struct sk_buff *skb, unsigned int protoff,
47 int (*response)(struct sk_buff *skb, unsigned int protoff,
112 unsigned int protoff,
118 unsigned int protoff, s16 off);
121 unsigned int protoff,
130 unsigned int protoff,
140 unsigned int protoff,
149 unsigned int protoff,
157 unsigned int protoff,
H A Dnf_conntrack_pptp.h306 unsigned int protoff,
311 unsigned int protoff,
/linux/net/ipv4/netfilter/
H A Dnf_nat_h323.c23 static int set_addr(struct sk_buff *skb, unsigned int protoff, in set_addr() argument
42 protoff, addroff, sizeof(buf), in set_addr()
56 protoff, addroff, sizeof(buf), in set_addr()
71 static int set_h225_addr(struct sk_buff *skb, unsigned int protoff, in set_h225_addr() argument
76 return set_addr(skb, protoff, data, dataoff, taddr->ipAddress.ip, in set_h225_addr()
81 static int set_h245_addr(struct sk_buff *skb, unsigned protoff, in set_h245_addr() argument
86 return set_addr(skb, protoff, data, dataoff, in set_h245_addr()
94 unsigned int protoff, unsigned char **data, in set_sig_addr() argument
120 return set_h225_addr(skb, protoff, data, 0, in set_sig_addr()
132 return set_h225_addr(skb, protoff, data, 0, in set_sig_addr()
[all …]
H A Dnf_nat_pptp.c123 unsigned int protoff, in pptp_outbound_pkt() argument
189 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in pptp_outbound_pkt()
234 unsigned int protoff, in pptp_inbound_pkt() argument
289 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in pptp_inbound_pkt()
H A Dnf_nat_snmp_basic_main.c160 static int help(struct sk_buff *skb, unsigned int protoff, in help() argument
/linux/include/net/netfilter/
H A Dnf_nat_helper.h13 unsigned int protoff, unsigned int match_offset,
20 unsigned int protoff, in nf_nat_mangle_tcp_packet() argument
26 return __nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in nf_nat_mangle_tcp_packet()
33 unsigned int protoff, unsigned int match_offset,
H A Dnf_conntrack_helper.h46 unsigned int protoff,
99 int (*help)(struct sk_buff *skb, unsigned int protoff,
H A Dnf_conntrack_seqadj.h42 enum ip_conntrack_info ctinfo, unsigned int protoff);
/linux/net/netfilter/ipset/
H A Dip_set_getport.c135 int protoff; in ip_set_get_ip6_port() local
140 protoff = ipv6_skip_exthdr(skb, in ip_set_get_ip6_port()
144 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in ip_set_get_ip6_port()
147 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
/linux/include/linux/netfilter_bridge/
H A Debtables.h25 const void *matchinfo, int offset, unsigned int protoff,

12