Searched refs:NPROTO (Results 1 – 3 of 3) sorted by relevance
25 #define NPROTO AF_MAX macro
227 static const struct net_proto_family __rcu *net_families[NPROTO] __read_mostly;1515 if (family < 0 || family >= NPROTO) in __sock_create()3233 if (ops->family >= NPROTO) { in sock_register()3234 pr_crit("protocol %d >= NPROTO(%d)\n", ops->family, NPROTO); in sock_register()3268 BUG_ON(family < 0 || family >= NPROTO); in sock_unregister()3282 return family < NPROTO && rcu_access_pointer(net_families[family]); in sock_is_registered()
215 static struct xfrm_state_afinfo __rcu *xfrm_state_afinfo[NPROTO];2749 if (WARN_ON(afinfo->family >= NPROTO)) in xfrm_state_register_afinfo()2766 if (WARN_ON(family >= NPROTO)) in xfrm_state_unregister_afinfo()2784 if (unlikely(family >= NPROTO)) in xfrm_state_afinfo_get_rcu()2794 if (unlikely(family >= NPROTO)) in xfrm_state_get_afinfo()