netlink(3) Library Functions Manual netlink(3) NOM netlink - Macros pour netlink BIBLIOTHEQUE Bibliotheque C standard (libc, -lc) SYNOPSIS #include #include int NLMSG_ALIGN(size_t size); int NLMSG_LENGTH(size_t size); int NLMSG_SPACE(size_t size); void *NLMSG_DATA(struct nlmsghdr *nlh); struct nlmsghdr *NLMSG_NEXT(struct nlmsghdr *nlh, int size); int NLMSG_OK(struct nlmsghdr *nlh, int size); int NLMSG_PAYLOAD(struct nlmsghdr *nlh, int size); DESCRIPTION definit plusieurs macros standard pour acceder ou creer un datagramme netlink. Elles sont similaires dans leurs principes aux macros definies dans cmsg(3) pour les donnees auxiliaires. Le tampon passe a un socket netlink ne devrait pas etre manipule autrement que par ces macros. NLMSG_ALIGN() Round the size of a netlink message up to align it properly. NLMSG_LENGTH() Given the payload size, size, this macro returns the aligned size to store in the nlmsg_len field of the nlmsghdr. NLMSG_SPACE() Return the number of bytes that a netlink message with payload of size would occupy. NLMSG_DATA() Retourne un pointeur sur l'objet associe au nlmsghdr passe. 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 size argument is an lvalue containing the remaining size of the message buffer. This macro decrements it by the size of the message header. NLMSG_OK() Renvoie vrai si le message netlink n'est pas tronque et est dans un format adapte au traitement. NLMSG_PAYLOAD() Return the size of the payload associated with the nlmsghdr. VERSIONS Il vaut souvent mieux utiliser la bibliotheque netlink via libnetlink que par les interfaces de bas niveau du noyau. STANDARDS Linux. VOIR AUSSI libnetlink(3), netlink(7) TRADUCTION La traduction francaise de cette page de manuel a ete creee par Christophe Blaess , Stephan Rafin , Thierry Vignaud , Francois Micaux, Alain Portal , Jean-Philippe Guerard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas Francois , Florentin Duneau , Simon Paillard , Denis Barbier et David Prevot Cette traduction est une documentation libre ; veuillez vous reporter a la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITE LEGALE. Si vous decouvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message a . Pages du manuel de Linux 6.12 17 novembre 2024 netlink(3)