Searched refs:netproto (Results 1 – 2 of 2) sorted by relevance
171 static inline const struct inet6_protocol *netproto(unsigned char protocol) in netproto() function194 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_register()222 if (inet6_add_protocol(netproto(protocol), protocol)) { in xfrm6_protocol_register()239 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_deregister()257 if (inet6_del_protocol(netproto(protocol), protocol) < 0) { in xfrm6_protocol_deregister()
197 static inline const struct net_protocol *netproto(unsigned char protocol) in netproto() function220 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_register()248 if (inet_add_protocol(netproto(protocol), protocol)) { in xfrm4_protocol_register()265 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_deregister()283 if (inet_del_protocol(netproto(protocol), protocol) < 0) { in xfrm4_protocol_deregister()