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

/linux-master/net/ipv4/
H A Dxfrm4_protocol.c203 static inline const struct net_protocol *netproto(unsigned char protocol) function
226 if (!proto_handlers(protocol) || !netproto(protocol))
254 if (inet_add_protocol(netproto(protocol), protocol)) {
271 if (!proto_handlers(protocol) || !netproto(protocol))
289 if (inet_del_protocol(netproto(protocol), protocol) < 0) {
/linux-master/net/ipv6/
H A Dxfrm6_protocol.c219 static inline const struct inet6_protocol *netproto(unsigned char protocol) function
242 if (!proto_handlers(protocol) || !netproto(protocol))
270 if (inet6_add_protocol(netproto(protocol), protocol)) {
287 if (!proto_handlers(protocol) || !netproto(protocol))
305 if (inet6_del_protocol(netproto(protocol), protocol) < 0) {

Completed in 251 milliseconds