Searched refs:netproto (Results 1 – 2 of 2) sorted by relevance
203 static inline const struct net_protocol *netproto(unsigned char protocol) in netproto() function226 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_register()254 if (inet_add_protocol(netproto(protocol), protocol)) { in xfrm4_protocol_register()271 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_deregister()289 if (inet_del_protocol(netproto(protocol), protocol) < 0) { in xfrm4_protocol_deregister()
219 static inline const struct inet6_protocol *netproto(unsigned char protocol) in netproto() function242 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_register()270 if (inet6_add_protocol(netproto(protocol), protocol)) { in xfrm6_protocol_register()287 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_deregister()305 if (inet6_del_protocol(netproto(protocol), protocol) < 0) { in xfrm6_protocol_deregister()
Completed in 4 milliseconds