Searched refs:NPROTO (Results 1 – 3 of 3) sorted by relevance
25 #define NPROTO AF_MAX macro
224 static const struct net_proto_family __rcu *net_families[NPROTO] __read_mostly;1454 if (family < 0 || family >= NPROTO) in __sock_create()3114 if (ops->family >= NPROTO) { in sock_register()3115 pr_crit("protocol %d >= NPROTO(%d)\n", ops->family, NPROTO); in sock_register()3149 BUG_ON(family < 0 || family >= NPROTO); in sock_unregister()3163 return family < NPROTO && rcu_access_pointer(net_families[family]); in sock_is_registered()
193 static struct xfrm_state_afinfo __rcu *xfrm_state_afinfo[NPROTO];2508 if (WARN_ON(afinfo->family >= NPROTO)) in xfrm_state_register_afinfo()2525 if (WARN_ON(family >= NPROTO)) in xfrm_state_unregister_afinfo()2543 if (unlikely(family >= NPROTO)) in xfrm_state_afinfo_get_rcu()2553 if (unlikely(family >= NPROTO)) in xfrm_state_get_afinfo()