Home
last modified time | relevance | path

Searched refs:nh_dev (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/net/decnet/
Ddn_fib.c87 if (nh->nh_dev) in dn_fib_free_info()
88 dev_put(nh->nh_dev); in dn_fib_free_info()
89 nh->nh_dev = NULL; in dn_fib_free_info()
210 nh->nh_dev = dev; in dn_fib_check_nh()
229 nh->nh_dev = DN_FIB_RES_DEV(res); in dn_fib_check_nh()
230 if (nh->nh_dev) in dn_fib_check_nh()
231 atomic_inc(&nh->nh_dev->refcnt); in dn_fib_check_nh()
244 nh->nh_dev = dev; in dn_fib_check_nh()
245 atomic_inc(&nh->nh_dev->refcnt); in dn_fib_check_nh()
319 nh->nh_dev = dev_get_by_index(fi->fib_nh->nh_oif); in dn_fib_create_info()
[all …]
/linux-2.4.37.9/net/ipv4/
Dfib_semantics.c115 if (nh->nh_dev) in free_fib_info()
116 dev_put(nh->nh_dev); in free_fib_info()
117 nh->nh_dev = NULL; in free_fib_info()
187 if (nh->nh_dev == dev && nh->nh_gw == gw && in ip_fib_check_default()
370 nh->nh_dev = dev; in fib_check_nh()
390 if ((nh->nh_dev = FIB_RES_DEV(res)) == NULL) in fib_check_nh()
392 dev_hold(nh->nh_dev); in fib_check_nh()
394 if (!(nh->nh_dev->flags & IFF_UP)) in fib_check_nh()
413 nh->nh_dev = in_dev->dev; in fib_check_nh()
414 dev_hold(nh->nh_dev); in fib_check_nh()
[all …]
/linux-2.4.37.9/include/net/
Ddn_fib.h45 struct net_device *nh_dev; member
67 #define fib_dev fib_nh[0].nh_dev
74 #define DN_FIB_RES_DEV(res) (DN_FIB_RES_NH(res).nh_dev)
Dip_fib.h39 struct net_device *nh_dev; member
78 #define fib_dev fib_nh[0].nh_dev
113 #define FIB_RES_DEV(res) (FIB_RES_NH(res).nh_dev)