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>
158 static struct rtnl_link *rtnl_get_link(int protocol, int msgtype)
162 if (protocol >= ARRAY_SIZE(rtnl_msg_handlers))
163 protocol = PF_UNSPEC;
165 tab = rcu_dereference_rtnl(rtnl_msg_handlers[protocol]);
173 int protocol, int msgtype,
182 BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
186 tab = rtnl_msg_handlers[protocol];
193 rcu_assign_pointer(rtnl_msg_handlers[protocol], tab);
219 /* publish protocol:msgtype */
233 * @protocol: Protocol family or PF_UNSPEC
242 int protocol, int msgtype,
246 return rtnl_register_internal(owner, protocol, msgtype,
253 * @protocol: Protocol family or PF_UNSPEC
261 * specified protocol family and message type is received.
263 * The special protocol family PF_UNSPEC may be used to define fallback
264 * function pointers for the case when no entry for the specific protocol
267 void rtnl_register(int protocol, int msgtype,
273 err = rtnl_register_internal(NULL, protocol, msgtype, doit, dumpit,
277 "protocol = %d, message type = %d\n", protocol, msgtype);
282 * @protocol: Protocol family or PF_UNSPEC
287 int rtnl_unregister(int protocol, int msgtype)
292 BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
296 tab = rtnl_dereference(rtnl_msg_handlers[protocol]);
313 * rtnl_unregister_all - Unregister all rtnetlink message type of a protocol
314 * @protocol : Protocol family or PF_UNSPEC
317 * of a certain protocol family.
319 void rtnl_unregister_all(int protocol)
324 BUG_ON(protocol < 0 || protocol > RTNL_FAMILY_MAX);
327 tab = rtnl_msg_handlers[protocol];
332 RCU_INIT_POINTER(rtnl_msg_handlers[protocol], NULL);