Lines Matching defs:protocol
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * Routing netlink socket interface: protocol independent part.
46 #include <net/protocol.h>
197 static struct rtnl_link *rtnl_get_link(int protocol, int msgtype)
201 if (protocol >= ARRAY_SIZE(rtnl_msg_handlers))
202 protocol = PF_UNSPEC;
204 tab = rcu_dereference_rtnl(rtnl_msg_handlers[protocol]);
212 int protocol, int msgtype,
221 BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
225 tab = rtnl_dereference(rtnl_msg_handlers[protocol]);
232 rcu_assign_pointer(rtnl_msg_handlers[protocol], tab);
260 /* publish protocol:msgtype */
274 * @protocol: Protocol family or PF_UNSPEC
283 int protocol, int msgtype,
287 return rtnl_register_internal(owner, protocol, msgtype,
294 * @protocol: Protocol family or PF_UNSPEC
302 * specified protocol family and message type is received.
304 * The special protocol family PF_UNSPEC may be used to define fallback
305 * function pointers for the case when no entry for the specific protocol
308 void rtnl_register(int protocol, int msgtype,
314 err = rtnl_register_internal(NULL, protocol, msgtype, doit, dumpit,
318 "protocol = %d, message type = %d\n", protocol, msgtype);
323 * @protocol: Protocol family or PF_UNSPEC
328 int rtnl_unregister(int protocol, int msgtype)
334 BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
338 tab = rtnl_dereference(rtnl_msg_handlers[protocol]);
355 * rtnl_unregister_all - Unregister all rtnetlink message type of a protocol
356 * @protocol : Protocol family or PF_UNSPEC
359 * of a certain protocol family.
361 void rtnl_unregister_all(int protocol)
367 BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
370 tab = rtnl_dereference(rtnl_msg_handlers[protocol]);
375 RCU_INIT_POINTER(rtnl_msg_handlers[protocol], NULL);
6231 NL_SET_ERR_MSG(extack, "Unknown entry protocol");