1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
.\" This manpage copyright 1998 by Andi Kleen. Subject to the GPL.
.\" Based on the original comments from Alexey Kuznetsov
.\" $Id: netlink.3,v 1.4 2000/09/07 07:21:43 hanataka Exp $
.\"
.\" Japanese Version Copyright (c) 1999 Shouichi Saito
.\" all rights reserved.
.\" Translated Mon Jul 26 12:18:39 JST 1999
.\" by Shouichi Saito <ss236rx@ymg.urban.ne.jp>
.\" Proofed Fri Aug 20 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.\"WORD: payload Ǽΰ
.\"WORD: lvalue
.\"
.TH NETLINK 3 "14 May 1999" "Linux Man Page" "Linux Programmer's Manual"
.SH ̾
netlink \- netlink ޥ
.SH
.nf
.\" XXX what will glibc 2.1 use here?
.B #include <asm/types.h>
.br
.B #include <linux/netlink.h>
.br
.BI "int NLMSG_ALIGN(size_t " len );
.br
.BI "int NLMSG_LENGTH(size_t " len );
.br
.BI "int NLMSG_SPACE(size_t " len );
.br
.BI "void *NLMSG_DATA(struct nlmsghdr *" nlh );
.br
.BI "struct nlmsghdr *NLMSG_NEXT(struct nlmsghdr *" nlh ", int " len );
.br
.BI "int NLMSG_OK(struct nlmsghdr *" nlh ", int " len );
.br
.BI "int NLMSG_PAYLOAD(struct nlmsghdr *" nlh ", int " len );
.fi
.SH
.\"NAKANO auxilliary auxiliary typo Ǥ礦.
.I netlink.h
Ǥϡ netlink ǡ˥ꡢ뤿
ɸޥĤƤ롣
.BR cmsg (3)
Ƥǡ (auxiliary data) ѤΥޥȡ
ˤƻƤΤǤ롣
netlink åȤФƤȤꤵХåեˤϡ
ɬΥޥȤäƥ٤Ǥ롣
.TP
.TP
NLMSG_ALIGN
netlink åĹݤ·롣
.TP
NLMSG_LENGTH
Ǽΰ (payload) ĹˤȤꡢ
.IR nlmsghdr
.B nlmsg_len
եɤǼ뤿·줿Ĺ֤
.TP
NLMSG_SPACE
ͿĹγǼΰ˼줿 netlink å
Хȿ֤
.TP
NLMSG_DATA
Ϳ
.IR nlmsghdr
˴ϢŤ줿ǼΰؤΥݥ֤
.TP
.\" XXX this is bizarre, maybe the interface should be fixed.
NLMSG_NEXT
ޥѡȥåˤơ
.I nlmsghdr
ꤹ롣ƤӽФȤˤϡ
ߤ nlmsghdr NLMSG_DONE åȤƤʤȤ
ǧʤФʤʤδؿϽü NULL ֤ʤǤ롣
length ϥåХåեλĤĹäͤǤ롣
ΥޥϤΰåإåĹʬ
.TP
NLMSG_OK
Netlink åڤƤ餺ѡǽǤп֤
.TP
NLMSG_PAYLOAD
.IR nlmsghdr
˴ϢŤ줿ǼΰĹ֤
.SH
̾ϥͥ٥륤ե⡢
.B libnetlink
ͳ netlink Ѥۤɤ
.SH Ϣ
.BR netlink (7)
.PP
libnetlink ˴ؤƤ ftp://ftp.inr.ac.ru/ip-routing/iproute2*
|