Home
last modified time | relevance | path

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

/net/ipv6/
Dxfrm6_protocol.c171 static inline const struct inet6_protocol *netproto(unsigned char protocol) in netproto() function
194 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()
/net/ipv4/
Dxfrm4_protocol.c197 static inline const struct net_protocol *netproto(unsigned char protocol) in netproto() function
220 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()