forked from mirrors/linux
		
	doc/netlink: Document the netlink-raw schema extensions
Add a doc page for netlink-raw that describes the schema attributes needed for netlink-raw. Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20230825122756.7603-5-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
		
							parent
							
								
									294f37fc87
								
							
						
					
					
						commit
						2db8abf0b4
					
				
					 2 changed files with 59 additions and 0 deletions
				
			
		| 
						 | 
					@ -14,5 +14,6 @@ Netlink documentation for users.
 | 
				
			||||||
   specs
 | 
					   specs
 | 
				
			||||||
   c-code-gen
 | 
					   c-code-gen
 | 
				
			||||||
   genetlink-legacy
 | 
					   genetlink-legacy
 | 
				
			||||||
 | 
					   netlink-raw
 | 
				
			||||||
 | 
					
 | 
				
			||||||
See also :ref:`Documentation/core-api/netlink.rst <kernel_netlink>`.
 | 
					See also :ref:`Documentation/core-api/netlink.rst <kernel_netlink>`.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										58
									
								
								Documentation/userspace-api/netlink/netlink-raw.rst
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								Documentation/userspace-api/netlink/netlink-raw.rst
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,58 @@
 | 
				
			||||||
 | 
					.. SPDX-License-Identifier: BSD-3-Clause
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					======================================================
 | 
				
			||||||
 | 
					Netlink specification support for raw Netlink families
 | 
				
			||||||
 | 
					======================================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This document describes the additional properties required by raw Netlink
 | 
				
			||||||
 | 
					families such as ``NETLINK_ROUTE`` which use the ``netlink-raw`` protocol
 | 
				
			||||||
 | 
					specification.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Specification
 | 
				
			||||||
 | 
					=============
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The netlink-raw schema extends the :doc:`genetlink-legacy <genetlink-legacy>`
 | 
				
			||||||
 | 
					schema with properties that are needed to specify the protocol numbers and
 | 
				
			||||||
 | 
					multicast IDs used by raw netlink families. See :ref:`classic_netlink` for more
 | 
				
			||||||
 | 
					information.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Globals
 | 
				
			||||||
 | 
					-------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					protonum
 | 
				
			||||||
 | 
					~~~~~~~~
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The ``protonum`` property is used to specify the protocol number to use when
 | 
				
			||||||
 | 
					opening a netlink socket.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. code-block:: yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  name: rt-addr
 | 
				
			||||||
 | 
					  protocol: netlink-raw
 | 
				
			||||||
 | 
					  protonum: 0             # part of the NETLINK_ROUTE protocol
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Multicast group properties
 | 
				
			||||||
 | 
					--------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					value
 | 
				
			||||||
 | 
					~~~~~
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The ``value`` property is used to specify the group ID to use for multicast
 | 
				
			||||||
 | 
					group registration.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. code-block:: yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  mcast-groups:
 | 
				
			||||||
 | 
					    list:
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: rtnlgrp-ipv4-ifaddr
 | 
				
			||||||
 | 
					        value: 5
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: rtnlgrp-ipv6-ifaddr
 | 
				
			||||||
 | 
					        value: 9
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: rtnlgrp-mctp-ifaddr
 | 
				
			||||||
 | 
					        value: 34
 | 
				
			||||||
		Loading…
	
		Reference in a new issue