/net/6lowpan/ |
D | nhc.c | 19 static int lowpan_nhc_insert(struct lowpan_nhc *nhc) in lowpan_nhc_insert() argument 29 len_dif = nhc->idlen - this->idlen; in lowpan_nhc_insert() 31 if (nhc->idlen < this->idlen) in lowpan_nhc_insert() 32 len = nhc->idlen; in lowpan_nhc_insert() 36 result = memcmp(nhc->id, this->id, len); in lowpan_nhc_insert() 50 rb_link_node(&nhc->node, parent, new); in lowpan_nhc_insert() 51 rb_insert_color(&nhc->node, &rb_root); in lowpan_nhc_insert() 56 static void lowpan_nhc_remove(struct lowpan_nhc *nhc) in lowpan_nhc_remove() argument 58 rb_erase(&nhc->node, &rb_root); in lowpan_nhc_remove() 67 struct lowpan_nhc *nhc = rb_entry(node, struct lowpan_nhc, in lowpan_nhc_by_nhcid() local [all …]
|
D | nhc_routing.c | 12 static void routing_nhid_setup(struct lowpan_nhc *nhc) in routing_nhid_setup() argument 14 nhc->id[0] = LOWPAN_NHC_ROUTING_ID_0; in routing_nhid_setup() 15 nhc->idmask[0] = LOWPAN_NHC_ROUTING_MASK_0; in routing_nhid_setup()
|
D | nhc_ipv6.c | 12 static void ipv6_nhid_setup(struct lowpan_nhc *nhc) in ipv6_nhid_setup() argument 14 nhc->id[0] = LOWPAN_NHC_IPV6_ID_0; in ipv6_nhid_setup() 15 nhc->idmask[0] = LOWPAN_NHC_IPV6_MASK_0; in ipv6_nhid_setup()
|
D | nhc_fragment.c | 12 static void fragment_nhid_setup(struct lowpan_nhc *nhc) in fragment_nhid_setup() argument 14 nhc->id[0] = LOWPAN_NHC_FRAGMENT_ID_0; in fragment_nhid_setup() 15 nhc->idmask[0] = LOWPAN_NHC_FRAGMENT_MASK_0; in fragment_nhid_setup()
|
D | nhc_dest.c | 13 static void dest_nhid_setup(struct lowpan_nhc *nhc) in dest_nhid_setup() argument 15 nhc->id[0] = LOWPAN_NHC_DEST_ID_0; in dest_nhid_setup() 16 nhc->idmask[0] = LOWPAN_NHC_DEST_MASK_0; in dest_nhid_setup()
|
D | nhc_ghc_ext_hop.c | 12 static void hop_ghid_setup(struct lowpan_nhc *nhc) in hop_ghid_setup() argument 14 nhc->id[0] = LOWPAN_GHC_EXT_HOP_ID_0; in hop_ghid_setup() 15 nhc->idmask[0] = LOWPAN_GHC_EXT_HOP_MASK_0; in hop_ghid_setup()
|
D | nhc_ghc_ext_frag.c | 12 static void frag_ghid_setup(struct lowpan_nhc *nhc) in frag_ghid_setup() argument 14 nhc->id[0] = LOWPAN_GHC_EXT_FRAG_ID_0; in frag_ghid_setup() 15 nhc->idmask[0] = LOWPAN_GHC_EXT_FRAG_MASK_0; in frag_ghid_setup()
|
D | nhc_ghc_udp.c | 12 static void udp_ghid_setup(struct lowpan_nhc *nhc) in udp_ghid_setup() argument 14 nhc->id[0] = LOWPAN_GHC_UDP_ID_0; in udp_ghid_setup() 15 nhc->idmask[0] = LOWPAN_GHC_UDP_MASK_0; in udp_ghid_setup()
|
D | nhc_hop.c | 12 static void hop_nhid_setup(struct lowpan_nhc *nhc) in hop_nhid_setup() argument 14 nhc->id[0] = LOWPAN_NHC_HOP_ID_0; in hop_nhid_setup() 15 nhc->idmask[0] = LOWPAN_NHC_HOP_MASK_0; in hop_nhid_setup()
|
D | nhc_ghc_icmpv6.c | 12 static void icmpv6_ghid_setup(struct lowpan_nhc *nhc) in icmpv6_ghid_setup() argument 14 nhc->id[0] = LOWPAN_GHC_ICMPV6_ID_0; in icmpv6_ghid_setup() 15 nhc->idmask[0] = LOWPAN_GHC_ICMPV6_MASK_0; in icmpv6_ghid_setup()
|
D | nhc_mobility.c | 12 static void mobility_nhid_setup(struct lowpan_nhc *nhc) in mobility_nhid_setup() argument 14 nhc->id[0] = LOWPAN_NHC_MOBILITY_ID_0; in mobility_nhid_setup() 15 nhc->idmask[0] = LOWPAN_NHC_MOBILITY_MASK_0; in mobility_nhid_setup()
|
D | nhc_ghc_ext_dest.c | 12 static void dest_ghid_setup(struct lowpan_nhc *nhc) in dest_ghid_setup() argument 14 nhc->id[0] = LOWPAN_GHC_EXT_DEST_ID_0; in dest_ghid_setup() 15 nhc->idmask[0] = LOWPAN_GHC_EXT_DEST_MASK_0; in dest_ghid_setup()
|
D | nhc_ghc_ext_route.c | 12 static void route_ghid_setup(struct lowpan_nhc *nhc) in route_ghid_setup() argument 14 nhc->id[0] = LOWPAN_GHC_EXT_ROUTE_ID_0; in route_ghid_setup() 15 nhc->idmask[0] = LOWPAN_GHC_EXT_ROUTE_MASK_0; in route_ghid_setup()
|
D | nhc.h | 76 void (*idsetup)(struct lowpan_nhc *nhc); 129 int lowpan_nhc_add(struct lowpan_nhc *nhc); 136 void lowpan_nhc_del(struct lowpan_nhc *nhc);
|
D | nhc_udp.c | 172 static void udp_nhid_setup(struct lowpan_nhc *nhc) in udp_nhid_setup() argument 174 nhc->id[0] = LOWPAN_NHC_UDP_ID; in udp_nhid_setup() 175 nhc->idmask[0] = LOWPAN_NHC_UDP_MASK; in udp_nhid_setup()
|
D | Makefile | 4 6lowpan-y := core.o iphc.o nhc.o ndisc.o
|
/net/ipv4/ |
D | fib_semantics.c | 164 static void free_nh_exceptions(struct fib_nh_common *nhc) in free_nh_exceptions() argument 169 hash = rcu_dereference_protected(nhc->nhc_exceptions, 1); in free_nh_exceptions() 211 void fib_nh_common_release(struct fib_nh_common *nhc) in fib_nh_common_release() argument 213 if (nhc->nhc_dev) in fib_nh_common_release() 214 dev_put(nhc->nhc_dev); in fib_nh_common_release() 216 lwtstate_put(nhc->nhc_lwtstate); in fib_nh_common_release() 217 rt_fibinfo_free_cpus(nhc->nhc_pcpu_rth_output); in fib_nh_common_release() 218 rt_fibinfo_free(&nhc->nhc_rth_input); in fib_nh_common_release() 219 free_nh_exceptions(nhc); in fib_nh_common_release() 494 struct fib_nh_common *nhc = fib_info_nhc(fi, i); in fib_nlmsg_size() local [all …]
|
D | route.c | 667 static void update_or_create_fnhe(struct fib_nh_common *nhc, __be32 daddr, in update_or_create_fnhe() argument 678 genid = fnhe_genid(dev_net(nhc->nhc_dev)); in update_or_create_fnhe() 683 hash = rcu_dereference(nhc->nhc_exceptions); in update_or_create_fnhe() 688 rcu_assign_pointer(nhc->nhc_exceptions, hash); in update_or_create_fnhe() 747 rt = rcu_dereference(nhc->nhc_rth_input); in update_or_create_fnhe() 753 prt = per_cpu_ptr(nhc->nhc_pcpu_rth_output, i); in update_or_create_fnhe() 819 struct fib_nh_common *nhc; in __ip_do_redirect() local 822 nhc = FIB_RES_NHC(res); in __ip_do_redirect() 823 update_or_create_fnhe(nhc, fl4->daddr, new_gw, in __ip_do_redirect() 1072 struct fib_nh_common *nhc; in __ip_rt_update_pmtu() local [all …]
|
D | fib_trie.c | 1376 bool fib_lookup_good_nhc(const struct fib_nh_common *nhc, int fib_flags, in fib_lookup_good_nhc() argument 1379 if (nhc->nhc_flags & RTNH_F_DEAD) in fib_lookup_good_nhc() 1382 if (ip_ignore_linkdown(nhc->nhc_dev) && in fib_lookup_good_nhc() 1383 nhc->nhc_flags & RTNH_F_LINKDOWN && in fib_lookup_good_nhc() 1389 flp->flowi4_oif != nhc->nhc_oif) in fib_lookup_good_nhc() 1528 struct fib_nh_common *nhc; in fib_table_lookup() local 1561 nhc = nexthop_get_nhc_lookup(fi->nh, fib_flags, flp, in fib_table_lookup() 1563 if (nhc) in fib_table_lookup() 1569 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup() 1571 if (!fib_lookup_good_nhc(nhc, fib_flags, flp)) in fib_table_lookup() [all …]
|
D | fib_lookup.h | 51 res->nhc = fib_info_nhc(fi, 0); in fib_result_assign()
|
D | fib_rules.c | 151 struct fib_nh_common *nhc = fib_info_nhc(result->fi, 0); in fib4_rule_suppress() local 153 dev = nhc->nhc_dev; in fib4_rule_suppress()
|
D | fib_frontend.c | 225 struct fib_nh_common *nhc = fib_info_nhc(res.fi, 0); in __inet_dev_addr_type() local 227 if (!dev || dev == nhc->nhc_dev) in __inet_dev_addr_type() 318 const struct fib_nh_common *nhc = fib_info_nhc(fi, ret); in fib_info_nh_uses_dev() local 320 if (nhc_l3mdev_matches_dev(nhc, dev)) { in fib_info_nh_uses_dev()
|
/net/core/ |
D | filter.c | 5297 struct fib_nh_common *nhc; in bpf_ipv4_fib_lookup() local 5375 nhc = res.nhc; in bpf_ipv4_fib_lookup() 5378 if (nhc->nhc_lwtstate) in bpf_ipv4_fib_lookup() 5381 dev = nhc->nhc_dev; in bpf_ipv4_fib_lookup() 5389 if (likely(nhc->nhc_gw_family != AF_INET6)) { in bpf_ipv4_fib_lookup() 5390 if (nhc->nhc_gw_family) in bpf_ipv4_fib_lookup() 5391 params->ipv4_dst = nhc->nhc_gw.ipv4; in bpf_ipv4_fib_lookup() 5399 *dst = nhc->nhc_gw.ipv6; in bpf_ipv4_fib_lookup()
|