/net/ipv4/netfilter/ |
H A D | ipt_rpfilter.c | 53 struct fib_nh *nh = &res.fi->fib_nh[ret]; local 55 if (nh->nh_dev == dev) {
|
H A D | ipt_MASQUERADE.c | 55 __be32 newsrc, nh; local 73 nh = rt_nexthop(rt, ip_hdr(skb)->daddr); 74 newsrc = inet_select_addr(par->out, nh, RT_SCOPE_UNIVERSE);
|
/net/ipv6/ |
H A D | exthdrs_core.c | 117 const unsigned char *nh = skb_network_header(skb); local 124 hdr = (struct ipv6_opt_hdr *)(nh + offset); 134 int opttype = nh[offset]; 145 optlen = nh[offset + 1] + 2;
|
H A D | datagram.c | 355 const unsigned char *nh = skb_network_header(skb); local 360 const struct ipv6hdr *ip6h = container_of((struct in6_addr *)(nh + serr->addr_offset), 369 ipv6_addr_set_v4mapped(*(__be32 *)(nh + serr->addr_offset), 479 unsigned char *nh = skb_network_header(skb); local 500 __be32 flowinfo = ip6_flowinfo((struct ipv6hdr *)nh); 507 u8 *ptr = nh + opt->hop; 527 u8 *ptr = nh + off; 569 u8 *ptr = nh + opt->hop; 573 u8 *ptr = nh + opt->dst0; 577 struct ipv6_rt_hdr *rthdr = (struct ipv6_rt_hdr *)(nh [all...] |
H A D | mip6.c | 270 const unsigned char *nh = skb_network_header(skb); local 305 exthdr = (struct ipv6_opt_hdr *)(nh + offset); 406 const unsigned char *nh = skb_network_header(skb); local 420 rt = (struct ipv6_rt_hdr *)(nh + offset); 440 exthdr = (struct ipv6_opt_hdr *)(nh + offset);
|
H A D | xfrm6_policy.c | 136 const unsigned char *nh = skb_network_header(skb); local 137 u8 nexthdr = nh[IP6CB(skb)->nhoff]; 145 while (nh + offset + 1 < skb->data || 146 pskb_may_pull(skb, nh + offset + 1 - skb->data)) { 147 nh = skb_network_header(skb); 148 exthdr = (struct ipv6_opt_hdr *)(nh + offset); 158 exthdr = (struct ipv6_opt_hdr *)(nh + offset); 166 if (!onlyproto && (nh + offset + 4 < skb->data || 167 pskb_may_pull(skb, nh + offset + 4 - skb->data))) { 177 if (!onlyproto && pskb_may_pull(skb, nh [all...] |
H A D | exthdrs.c | 100 const unsigned char *nh = skb_network_header(skb); local 112 int optlen = nh[off + 1] + 2; 115 switch (nh[off]) { 137 if (nh[off + i] != 0) 146 if (curr->type == nh[off]) { 553 const unsigned char *nh = skb_network_header(skb); local 555 if (nh[optoff + 1] == 2) { 557 memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra)); 561 nh[optoff + 1]); 570 const unsigned char *nh local [all...] |
H A D | reassembly.c | 234 const unsigned char *nh = skb_network_header(skb); local 236 csum_partial(nh, (u8 *)(fhdr + 1) - nh,
|
H A D | icmp.c | 680 int nh; local 689 nh = skb_network_offset(skb); 695 skb_set_network_header(skb, nh);
|
/net/ipv4/ |
H A D | icmp.c | 863 int nh; local 872 nh = skb_network_offset(skb); 878 skb_set_network_header(skb, nh);
|
H A D | fib_frontend.c | 276 struct fib_nh *nh = &res.fi->fib_nh[ret]; local 278 if (nh->nh_dev == dev) {
|
H A D | fib_semantics.c | 63 int nhsel; const struct fib_nh *nh; \ 64 for (nhsel = 0, nh = (fi)->fib_nh; \ 66 nh++, nhsel++) 79 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \ 158 static void free_nh_exceptions(struct fib_nh *nh) argument 160 struct fnhe_hash_bucket *hash = nh->nh_exceptions; 258 if (nh->nh_oif != onh->nh_oif || 259 nh->nh_gw != onh->nh_gw || 260 nh->nh_scope != onh->nh_scope || 262 nh 333 struct fib_nh *nh; local 599 fib_check_nh(struct fib_config *cfg, struct fib_info *fi, struct fib_nh *nh) argument 764 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh) argument 885 struct fib_nh *nh = fi->fib_nh; local 921 struct fib_nh *nh = fi->fib_nh; local 1121 struct fib_nh *nh; local 1232 struct fib_nh *nh; local [all...] |
H A D | fib_trie.c | 1374 const struct fib_nh *nh = &fi->fib_nh[nhsel]; local 1376 if (nh->nh_flags & RTNH_F_DEAD) 1378 if (flp->flowi4_oif && flp->flowi4_oif != nh->nh_oif)
|
H A D | route.c | 599 static void update_or_create_fnhe(struct fib_nh *nh, __be32 daddr, __be32 gw, argument 609 hash = nh->nh_exceptions; 614 nh->nh_exceptions = hash; 709 struct fib_nh *nh = &FIB_RES_NH(res); local 711 update_or_create_fnhe(nh, fl4->daddr, new_gw, 936 struct fib_nh *nh = &FIB_RES_NH(res); local 938 update_or_create_fnhe(nh, fl4->daddr, 0, mtu, 1199 static struct fib_nh_exception *find_exception(struct fib_nh *nh, __be32 daddr) argument 1201 struct fnhe_hash_bucket *hash = nh->nh_exceptions; 1260 static bool rt_cache_route(struct fib_nh *nh, struc argument 1336 struct fib_nh *nh = &FIB_RES_NH(*res); local 1871 struct fib_nh *nh = &FIB_RES_NH(*res); local [all...] |
/net/ipv6/netfilter/ |
H A D | nf_conntrack_reasm.c | 227 const unsigned char *nh = skb_network_header(skb); local 229 csum_partial(nh, (u8 *)(fhdr + 1) - nh,
|
/net/openvswitch/ |
H A D | actions.c | 139 static void set_ip_addr(struct sk_buff *skb, struct iphdr *nh, argument 144 if (nh->protocol == IPPROTO_TCP) { 148 } else if (nh->protocol == IPPROTO_UDP) { 161 csum_replace4(&nh->check, *addr, new_addr); 200 static void set_ipv6_tc(struct ipv6hdr *nh, u8 tc) argument 202 nh->priority = tc >> 4; 203 nh->flow_lbl[0] = (nh->flow_lbl[0] & 0x0F) | ((tc & 0x0F) << 4); 206 static void set_ipv6_fl(struct ipv6hdr *nh, u32 fl) argument 208 nh 213 set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl) argument 221 struct iphdr *nh; local 248 struct ipv6hdr *nh; local [all...] |
H A D | flow.c | 133 struct ipv6hdr *nh; local 140 err = check_header(skb, nh_ofs + sizeof(*nh)); 144 nh = ipv6_hdr(skb); 145 nexthdr = nh->nexthdr; 146 payload_ofs = (u8 *)(nh + 1) - skb->data; 149 key->ip.tos = ipv6_get_dsfield(nh); 150 key->ip.ttl = nh->hop_limit; 151 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); 152 key->ipv6.addr.src = nh->saddr; 153 key->ipv6.addr.dst = nh 637 struct iphdr *nh; local [all...] |
/net/bridge/ |
H A D | br_netfilter.c | 570 const unsigned char *nh = skb_network_header(skb); local 571 int off = raw - nh; 581 int optlen = nh[off + 1] + 2; 583 switch (nh[off]) { 592 if (nh[off + 1] != 4 || (off & 3) != 2) 594 pkt_len = ntohl(*(__be32 *) (nh + off + 2)); 603 nh = skb_network_header(skb);
|
/net/decnet/ |
H A D | dn_fib.c | 51 #define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\ 52 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++) 54 #define change_nexthops(fi) { int nhsel; struct dn_fib_nh *nh;\ 55 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++) 93 if (nh->nh_dev) 94 dev_put(nh->nh_dev); 95 nh->nh_dev = NULL; 121 if (nh 191 dn_fib_check_nh(const struct rtmsg *r, struct dn_fib_info *fi, struct dn_fib_nh *nh) argument 324 struct dn_fib_nh *nh = fi->fib_nh; local 355 struct dn_fib_nh *nh = fi->fib_nh; local [all...] |