.\" -*- coding: UTF-8 -*- .\" This manpage copyright 1998 by Andi Kleen. .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" .\" Based on the original comments from Alexey Kuznetsov .\" $Id: netlink.3,v 1.1 1999/05/14 17:17:24 freitag Exp $ .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH netlink 3 "17 novembre 2024" "Pages du manuel de Linux 6.12" .SH NOM netlink \- Macros pour netlink .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP,\ \fI\-lc\fP) .SH SYNOPSIS .nf \fB#include \fP \fB#include \fP .P \fBint NLMSG_ALIGN(size_t \fP\fIsize\fP\fB);\fP \fBint NLMSG_LENGTH(size_t \fP\fIsize\fP\fB);\fP \fBint NLMSG_SPACE(size_t \fP\fIsize\fP\fB);\fP \fBvoid *NLMSG_DATA(struct nlmsghdr *\fP\fInlh\fP\fB);\fP \fBstruct nlmsghdr *NLMSG_NEXT(struct nlmsghdr *\fP\fInlh\fP\fB, int \fP\fIsize\fP\fB);\fP \fBint NLMSG_OK(struct nlmsghdr *\fP\fInlh\fP\fB, int \fP\fIsize\fP\fB);\fP \fBint NLMSG_PAYLOAD(struct nlmsghdr *\fP\fInlh\fP\fB, int \fP\fIsize\fP\fB);\fP .fi .SH DESCRIPTION \fI\fP définit plusieurs macros standard pour accéder ou créer un datagramme netlink. Elles sont similaires dans leurs principes aux macros définies dans \fBcmsg\fP(3) pour les données auxiliaires. Le tampon passé à un socket netlink ne devrait pas être manipulé autrement que par ces macros. .TP \fBNLMSG_ALIGN\fP() Round the size of a netlink message up to align it properly. .TP \fBNLMSG_LENGTH\fP() Given the payload size, \fIsize\fP, this macro returns the aligned size to store in the \fInlmsg_len\fP field of the \fInlmsghdr\fP. .TP \fBNLMSG_SPACE\fP() Return the number of bytes that a netlink message with payload of \fIsize\fP would occupy. .TP \fBNLMSG_DATA\fP() Retourne un pointeur sur l'objet associé au \fInlmsghdr\fP passé. .TP .\" this is bizarre, maybe the interface should be fixed. \fBNLMSG_NEXT\fP() Get the next \fInlmsghdr\fP in a multipart message. The caller must check if the current \fInlmsghdr\fP didn't have the \fBNLMSG_DONE\fP set\[em]this function doesn't return NULL on end. The \fIsize\fP argument is an lvalue containing the remaining size of the message buffer. This macro decrements it by the size of the message header. .TP \fBNLMSG_OK\fP() Renvoie vrai si le message netlink n'est pas tronqué et est dans un format adapté au traitement. .TP \fBNLMSG_PAYLOAD\fP() Return the size of the payload associated with the \fInlmsghdr\fP. .SH VERSIONS Il vaut souvent mieux utiliser la bibliothèque netlink via \fIlibnetlink\fP que par les interfaces de bas niveau du noyau. .SH STANDARDS Linux. .SH "VOIR AUSSI" \fBlibnetlink\fP(3), \fBnetlink\fP(7) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier et David Prévot . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .