Searched refs:NPROTO (Results 1 – 3 of 3) sorted by relevance
25 #define NPROTO AF_MAX macro
225 static const struct net_proto_family __rcu *net_families[NPROTO] __read_mostly;1484 if (family < 0 || family >= NPROTO) in __sock_create()3127 if (ops->family >= NPROTO) { in sock_register()3128 pr_crit("protocol %d >= NPROTO(%d)\n", ops->family, NPROTO); in sock_register()3162 BUG_ON(family < 0 || family >= NPROTO); in sock_unregister()3176 return family < NPROTO && rcu_access_pointer(net_families[family]); in sock_is_registered()
214 static struct xfrm_state_afinfo __rcu *xfrm_state_afinfo[NPROTO];2672 if (WARN_ON(afinfo->family >= NPROTO)) in xfrm_state_register_afinfo()2689 if (WARN_ON(family >= NPROTO)) in xfrm_state_unregister_afinfo()2707 if (unlikely(family >= NPROTO)) in xfrm_state_afinfo_get_rcu()2717 if (unlikely(family >= NPROTO)) in xfrm_state_get_afinfo()
Completed in 14 milliseconds