netlink(3) Library Functions Manual netlink(3) netlink - netlink LIBRARY Standard C library (libc, -lc) #include #include int NLMSG_ALIGN(size_t len); int NLMSG_LENGTH(size_t len); int NLMSG_SPACE(size_t len); void *NLMSG_DATA(struct nlmsghdr *nlh); struct nlmsghdr *NLMSG_NEXT(struct nlmsghdr *nlh, int len); int NLMSG_OK(struct nlmsghdr *nlh, int len); int NLMSG_PAYLOAD(struct nlmsghdr *nlh, int len); netlink. , , cmsg(3) . , netlink, . NLMSG_ALIGN() netlink . NLMSG_LENGTH() len nlmsg_len nlmsghdr. NLMSG_SPACE() netlink len. NLMSG_DATA() , nlmsghdr. NLMSG_NEXT() Get the next nlmsghdr in a multipart message. The caller must check if the current nlmsghdr didn't have the NLMSG_DONE set--this function doesn't return NULL on end. The len argument is an lvalue containing the remaining length of the message buffer. This macro decrements it by the length of the message header. NLMSG_OK() <<>>, netlink . NLMSG_PAYLOAD() , nlmsghdr. netlink libnetlink, . Linux. . libnetlink(3), netlink(7) Alex Nik , Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . netlink(3)