File: netlink.3

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (99 lines) | stat: -rw-r--r-- 2,769 bytes parent folder | download
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
94
95
96
97
98
99
.\" 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 1999-05-14 "GNU" "Linux Programmer's Manual"
.SH ̾
netlink \- netlink ޥ
.SH 
.nf
.\" FIXME . what will glibc 2.1 use here?
.\" May 2007: glibc 2.5, things look to be unchanged -- the header file
.\" is still linux/netlink.h -- mtk
.B #include <asm/types.h>
.br
.B #include <linux/netlink.h>
.sp
.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 
.I <linux/netlink.h>
Ǥϡ netlink ǡ˥ꡢ뤿
ɸޥĤƤ롣

.BR cmsg (3)
Ƥǡ (auxiliary data) ѤΥޥȡ
ˤƻƤΤǤ롣
netlink åȤФƤȤꤵХåեˤϡ
ɬΥޥȤäƥ٤Ǥ롣
.TP
.B NLMSG_ALIGN
netlink åĹݤ·롣
.TP
.B NLMSG_LENGTH
Ǽΰ (payload) Ĺ
.I len
ˤȤꡢ
.I nlmsghdr

.I nlmsg_len
եɤǤ
·줿Ĺ (aligned length) ֤
.TP
.B NLMSG_SPACE
ڥɤĹ
.I len
 netlink åΥХȿ֤
.TP
.B NLMSG_DATA
Ϳ
.I nlmsghdr
˴ϢŤ줿ǼΰؤΥݥ󥿤֤
.TP
.\" this is bizarre, maybe the interface should be fixed.
.B NLMSG_NEXT
ޥѡȥåˤơ
.I nlmsghdr
ꤹ롣ƤӽФȤˤϡ
ߤ nlmsghdr  NLMSG_DONE åȤƤʤȤ
ǧʤФʤʤδؿϽü NULL ֤ʤǤ롣
length ϥåХåեλĤĹäͤǤ롣
ΥޥϤΰåإåĹʬ򺹤
.TP
.B NLMSG_OK
Netlink åڤƤ餺ѡǽǤп֤
.TP
.B NLMSG_PAYLOAD
.I nlmsghdr
˴ϢŤ줿ǼΰĹ֤
.SH 
Υޥɸ Linux ǤγĥǤ롣
.SH 
̾ϥͥ٥륤󥿡ե⡢
.I libnetlink
ͳ netlink Ѥۤɤ
.SH Ϣ
.BR netlink (7)
.PP
 libnetlink ˴ؤƤ ftp://ftp.inr.ac.ru/ip-routing/iproute2*