.\"
.\" $Id: rtnetlink.3,v 1.2 1999/05/18 10:35:10 freitag Exp $
.\"
-.TH RTNETLINK 3 2020-11-01 "GNU" "Linux Programmer's Manual"
+.TH RTNETLINK 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
.SH NAME
rtnetlink \- macros to manipulate rtnetlink messages
+.SH LIBRARY
+Standard C library
+.RI ( libc ", " \-lc )
.SH SYNOPSIS
+.nf
.B #include <asm/types.h>
-.br
.B #include <linux/netlink.h>
-.br
.B #include <linux/rtnetlink.h>
-.br
.B #include <sys/socket.h>
.PP
.BI "rtnetlink_socket = socket(AF_NETLINK, int " socket_type \
.BI "int RTA_OK(struct rtattr *" rta ", int " rtabuflen );
.PP
.BI "void *RTA_DATA(struct rtattr *" rta );
-.PP
.BI "unsigned int RTA_PAYLOAD(struct rtattr *" rta );
.PP
.BI "struct rtattr *RTA_NEXT(struct rtattr *" rta \
", unsigned int " rtabuflen );
.PP
.BI "unsigned int RTA_LENGTH(unsigned int " length );
-.PP
.BI "unsigned int RTA_SPACE(unsigned int "length );
+.fi
.SH DESCRIPTION
All
.BR rtnetlink (7)
returns the amount of space which will be needed in a message with
.I len
bytes of data.
-.SH CONFORMING TO
+.SH STANDARDS
These macros are nonstandard Linux extensions.
.SH BUGS
This manual page is incomplete.