Searched refs:netproto (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/net/ipv4/
H A Dxfrm4_protocol.c197 static inline const struct net_protocol *netproto(unsigned char protocol) netproto() function
220 if (!proto_handlers(protocol) || !netproto(protocol)) xfrm4_protocol_register()
248 if (inet_add_protocol(netproto(protocol), protocol)) { xfrm4_protocol_register()
265 if (!proto_handlers(protocol) || !netproto(protocol)) xfrm4_protocol_deregister()
283 if (inet_del_protocol(netproto(protocol), protocol) < 0) { xfrm4_protocol_deregister()
/linux-4.1.27/net/ipv6/
H A Dxfrm6_protocol.c171 static inline const struct inet6_protocol *netproto(unsigned char protocol) netproto() function
194 if (!proto_handlers(protocol) || !netproto(protocol)) xfrm6_protocol_register()
222 if (inet6_add_protocol(netproto(protocol), protocol)) { xfrm6_protocol_register()
239 if (!proto_handlers(protocol) || !netproto(protocol)) xfrm6_protocol_deregister()
257 if (inet6_del_protocol(netproto(protocol), protocol) < 0) { xfrm6_protocol_deregister()

Completed in 139 milliseconds