Home
last modified time | relevance | path

Searched refs:niph (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/common_modules/newip/src/common/
H A Dnip_hdr_decap.c44 struct nip_hdr_decap *niph) in _get_nip_hdr_ttl()
49 if (nbuf->remaining_len < sizeof(niph->ttl)) in _get_nip_hdr_ttl()
52 niph->ttl = *nbuf->data; in _get_nip_hdr_ttl()
53 niph->include_ttl = 1; in _get_nip_hdr_ttl()
54 nip_buff_pull(nbuf, sizeof(niph->ttl)); in _get_nip_hdr_ttl()
65 struct nip_hdr_decap *niph) in _get_nip_hdr_len()
70 if (nbuf->remaining_len < sizeof(niph->hdr_len)) in _get_nip_hdr_len()
76 niph->hdr_len = *nbuf->data; in _get_nip_hdr_len()
77 niph->include_hdr_len = 1; in _get_nip_hdr_len()
78 nip_buff_pull(nbuf, sizeof(niph in _get_nip_hdr_len()
42 _get_nip_hdr_ttl(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_ttl() argument
63 _get_nip_hdr_len(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_len() argument
87 _get_nip_hdr_nexthdr(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_nexthdr() argument
106 _get_nip_hdr_daddr(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_daddr() argument
128 _get_nip_hdr_saddr(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_saddr() argument
150 _get_nip_total_len(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_total_len() argument
170 _nip_hdr_bitmap0_parse(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _nip_hdr_bitmap0_parse() argument
200 _nip_hdr_bitmap1_parse(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _nip_hdr_bitmap1_parse() argument
218 _nip_hdr_unknown_bit_check(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _nip_hdr_unknown_bit_check() argument
235 nip_hdr_check(struct nip_hdr_decap *niph) nip_hdr_check() argument
254 nip_hdr_parse(unsigned char *rcv_buf, unsigned int buf_len, struct nip_hdr_decap *niph) nip_hdr_parse() argument
[all...]
H A Dnip_hdr.h210 /* Note: a function call requires its own byte order conversion.(niph->total_len) */
211 int nip_hdr_parse(unsigned char *rcv_buf, unsigned int buf_len, struct nip_hdr_decap *niph);
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Dnip_input.c36 struct nip_hdr_decap *niph) in _nip_update_recv_skb_len()
38 if (!niph->include_total_len) in _nip_update_recv_skb_len()
41 if (niph->total_len > skb->len) { in _nip_update_recv_skb_len()
43 niph->total_len, skb->len); in _nip_update_recv_skb_len()
50 skb_trim(skb, niph->total_len); in _nip_update_recv_skb_len()
91 struct nip_hdr_decap niph = {0}; in nip_rcv() local
103 offset = nip_hdr_parse(skb->data, skb->len, &niph); in nip_rcv()
106 offset, niph.nexthdr, niph.hdr_len); in nip_rcv()
110 if (niph in nip_rcv()
35 _nip_update_recv_skb_len(struct sk_buff *skb, struct nip_hdr_decap *niph) _nip_update_recv_skb_len() argument
[all...]
/kernel/linux/linux-6.6/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c46 struct iphdr *niph; in nf_reject_skb_v4_tcp_reset() local
64 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nf_reject_skb_v4_tcp_reset()
67 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_tcp_reset()
68 ip_send_check(niph); in nf_reject_skb_v4_tcp_reset()
80 struct iphdr *niph; in nf_reject_skb_v4_unreach() local
119 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_ICMP, in nf_reject_skb_v4_unreach()
132 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_unreach()
133 ip_send_check(niph); in nf_reject_skb_v4_unreach()
172 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put() local
175 niph in nf_reject_iphdr_put()
196 struct iphdr *niph = ip_hdr(nskb); nf_reject_ip_tcphdr_put() local
243 struct iphdr *niph; nf_send_reset() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c48 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put() local
51 niph = skb_put(nskb, sizeof(struct iphdr)); in nf_reject_iphdr_put()
52 niph->version = 4; in nf_reject_iphdr_put()
53 niph->ihl = sizeof(struct iphdr) / 4; in nf_reject_iphdr_put()
54 niph->tos = 0; in nf_reject_iphdr_put()
55 niph->id = 0; in nf_reject_iphdr_put()
56 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put()
57 niph->protocol = protocol; in nf_reject_iphdr_put()
58 niph->check = 0; in nf_reject_iphdr_put()
59 niph in nf_reject_iphdr_put()
72 struct iphdr *niph = ip_hdr(nskb); nf_reject_ip_tcphdr_put() local
120 struct iphdr *niph; nf_send_reset() local
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_synproxy_core.c444 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp()
447 nth->check = ~tcp_v4_check(tcp_hdr_size, niph->saddr, niph->daddr, 0); in synproxy_send_tcp()
475 struct iphdr *iph, *niph; in synproxy_send_client_synack() local
483 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_client_synack()
489 niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr); in synproxy_send_client_synack()
508 IP_CT_ESTABLISHED_REPLY, niph, nth, tcp_hdr_size); in synproxy_send_client_synack()
519 struct iphdr *iph, *niph; in synproxy_send_server_syn() local
526 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_server_syn()
532 niph in synproxy_send_server_syn()
441 synproxy_send_tcp(struct net *net, const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct iphdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp() argument
564 struct iphdr *iph, *niph; synproxy_send_server_ack() local
602 struct iphdr *iph, *niph; synproxy_send_client_ack() local
835 synproxy_send_tcp_ipv6(struct net *net, const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct ipv6hdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp_ipv6() argument
888 struct ipv6hdr *iph, *niph; synproxy_send_client_synack_ipv6() local
933 struct ipv6hdr *iph, *niph; synproxy_send_server_syn_ipv6() local
978 struct ipv6hdr *iph, *niph; synproxy_send_server_ack_ipv6() local
1017 struct ipv6hdr *iph, *niph; synproxy_send_client_ack_ipv6() local
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_synproxy_core.c421 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp()
424 nth->check = ~tcp_v4_check(tcp_hdr_size, niph->saddr, niph->daddr, 0); in synproxy_send_tcp()
452 struct iphdr *iph, *niph; in synproxy_send_client_synack() local
460 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_client_synack()
466 niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr); in synproxy_send_client_synack()
485 IP_CT_ESTABLISHED_REPLY, niph, nth, tcp_hdr_size); in synproxy_send_client_synack()
496 struct iphdr *iph, *niph; in synproxy_send_server_syn() local
503 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_server_syn()
509 niph in synproxy_send_server_syn()
418 synproxy_send_tcp(struct net *net, const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct iphdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp() argument
541 struct iphdr *iph, *niph; synproxy_send_server_ack() local
579 struct iphdr *iph, *niph; synproxy_send_client_ack() local
812 synproxy_send_tcp_ipv6(struct net *net, const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct ipv6hdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp_ipv6() argument
865 struct ipv6hdr *iph, *niph; synproxy_send_client_synack_ipv6() local
910 struct ipv6hdr *iph, *niph; synproxy_send_server_syn_ipv6() local
955 struct ipv6hdr *iph, *niph; synproxy_send_server_ack_ipv6() local
994 struct ipv6hdr *iph, *niph; synproxy_send_client_ack_ipv6() local
[all...]
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A Dnft_reject_bridge.c75 struct iphdr *niph; in nft_reject_br_send_v4_tcp_reset() local
92 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nft_reject_br_send_v4_tcp_reset()
95 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_tcp_reset()
96 ip_send_check(niph); in nft_reject_br_send_v4_tcp_reset()
109 struct iphdr *niph; in nft_reject_br_send_v4_unreach() local
144 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_ICMP, in nft_reject_br_send_v4_unreach()
157 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_unreach()
158 ip_send_check(niph); in nft_reject_br_send_v4_unreach()
/kernel/linux/linux-5.10/net/ipv4/
H A Dip_tunnel_core.c199 struct iphdr *niph; in iptunnel_pmtud_build_icmp() local
210 err = pskb_trim(skb, 576 - sizeof(*niph) - sizeof(*icmph)); in iptunnel_pmtud_build_icmp()
215 err = skb_cow(skb, sizeof(*niph) + sizeof(*icmph) + ETH_HLEN); in iptunnel_pmtud_build_icmp()
230 niph = skb_push(skb, sizeof(*niph)); in iptunnel_pmtud_build_icmp()
231 *niph = (struct iphdr) { in iptunnel_pmtud_build_icmp()
232 .ihl = sizeof(*niph) / 4u, in iptunnel_pmtud_build_icmp()
235 .tot_len = htons(len + sizeof(*niph)), in iptunnel_pmtud_build_icmp()
243 ip_send_check(niph); in iptunnel_pmtud_build_icmp()
/kernel/linux/linux-6.6/net/ipv4/
H A Dip_tunnel_core.c199 struct iphdr *niph; in iptunnel_pmtud_build_icmp() local
210 err = pskb_trim(skb, 576 - sizeof(*niph) - sizeof(*icmph)); in iptunnel_pmtud_build_icmp()
215 err = skb_cow(skb, sizeof(*niph) + sizeof(*icmph) + ETH_HLEN); in iptunnel_pmtud_build_icmp()
230 niph = skb_push(skb, sizeof(*niph)); in iptunnel_pmtud_build_icmp()
231 *niph = (struct iphdr) { in iptunnel_pmtud_build_icmp()
232 .ihl = sizeof(*niph) / 4u, in iptunnel_pmtud_build_icmp()
235 .tot_len = htons(len + sizeof(*niph)), in iptunnel_pmtud_build_icmp()
243 ip_send_check(niph); in iptunnel_pmtud_build_icmp()

Completed in 8 milliseconds