genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
.\"
|
|
|
|
.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2023 Baptiste Daroussin <bapt@nours.eu>
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2023-10-05 10:51:02 +00:00
|
|
|
.Dd Oct 5, 2023
|
genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
.Dt GENL 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm genl
|
2023-10-05 10:51:02 +00:00
|
|
|
.Nd "generic netlink"
|
genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2023-10-05 10:51:02 +00:00
|
|
|
.Pp
|
|
|
|
.Nm Cm list
|
|
|
|
.Pp
|
|
|
|
.Nm Cm monitor Ao family Ac Ao multicast group Ac
|
genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
.Sh DESCRIPTION
|
2023-10-05 10:51:02 +00:00
|
|
|
The
|
genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
.Nm
|
2023-10-05 10:51:02 +00:00
|
|
|
utility is design to provide access to the user to generic netlink
|
|
|
|
protocols.
|
|
|
|
.Pp
|
|
|
|
The following commands are available:
|
|
|
|
.Bl -tag -ident
|
|
|
|
.It Cm list Po default Pc
|
|
|
|
Lists all available generic netlink protocols, and presents its details:
|
genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
.Bl -tag -width "multicast groups"
|
|
|
|
.It operations
|
|
|
|
Id of the operation if any and associated capabilities
|
|
|
|
.It multicast groups
|
|
|
|
If of the available multicast group if any and it associated name
|
|
|
|
.El
|
2023-10-05 10:51:02 +00:00
|
|
|
.It Cm monitor Ao family Ac Ao multicast group Ac
|
|
|
|
Connect to the
|
|
|
|
.Ar family
|
|
|
|
protocol and subscribe to the
|
|
|
|
.Ar mulicast group
|
|
|
|
then print the received messages in a readable format if the protocol is known.
|
|
|
|
So far only
|
|
|
|
.Qq nlctrl
|
|
|
|
is known.
|
|
|
|
.El
|
genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr genetlink 4 ,
|
|
|
|
.Xr netlink 4
|