OSDN Git Service

(split) LDP: Update release pages
[linuxjm/LDP_man-pages.git] / release / man7 / netlink.7
index 7cb0040..84db9e9 100644 (file)
@@ -229,23 +229,26 @@ struct sockaddr_nl {
 それ以降にプロセスが作成した全ての netlink ソケットにも一意な \fInl_pid\fP を割り当てる。
 
 .\" commit d629b836d151d43332492651dd841d32e57ebe3b
-\fInl_groups\fP is a bit mask with every bit representing a netlink group
-number.  Each netlink family has a set of 32 multicast groups.  When
-\fBbind\fP(2)  is called on the socket, the \fInl_groups\fP field in the
-\fIsockaddr_nl\fP should be set to a bit mask of the groups which it wishes to
-listen to.  The default value for this field is zero which means that no
-multicasts will be received.  A socket may multicast messages to any of the
-multicast groups by setting \fInl_groups\fP to a bit mask of the groups it
-wishes to send to when it calls \fBsendmsg\fP(2)  or does a \fBconnect\fP(2).
-Only processes with an effective UID of 0 or the \fBCAP_NET_ADMIN\fP capability
-may send or listen to a netlink multicast group.  Since Linux 2.6.13,
-messages can't be broadcast to multiple groups.  Any replies to a message
-received for a multicast group should be sent back to the sending PID and
-the multicast group.  Some Linux kernel subsystems may additionally allow
-other users to send and/or receive messages.  As at Linux 3.0, the
-\fBNETLINK_KOBJECT_UEVENT\fP, \fBNETLINK_GENERIC\fP, \fBNETLINK_ROUTE\fP, and
-\fBNETLINK_SELINUX\fP groups allow other users to receive messages.  No groups
-allow other users to send messages.
+\fInl_groups\fP はビットマスクで、すべてのビットが netlink グループ番号を表す。
+それぞれの netlink ファミリーは 32 のマルチキャストグループのセットを持つ。
+それぞれの netlink ファミリーは 32 のマルチキャストグループの セットを持つ。
+\fBbind\fP(2) がソケットに対して呼ばれると、 \fIsockaddr_nl\fP の \fInl_groups\fP
+フィールドには listen したいグループのビットマスクがセットされる。
+デフォルトの値は 0 で、マルチキャストを一切受信しない。
+\fBsendmsg\fP(2) や \fBconnect\fP(2) によって、あるソケットからメッセージを
+マルチキャストしたいときは、 \fInl_groups\fP に送信したいグループのビットマスク
+をセットすればよい。
+netlink マルチキャストグループに送信したり、これを listen したりできるのは、
+実効ユーザー ID が 0 のプロセスか、 \fBCAP_NET_ADMIN\fP 権限を持つプロセスのみである。
+Linux 2.6.13 以降では、メッセージを複数のグループへのブロードキャストすることはできない。
+マルチキャストグループ向けメッセージを受信した場合、これ対する応答は
+送り主の PID とマルチキャストグループとに送り返すべきである。
+さらに、Linux のカーネルサブシステムによっては、
+他のユーザもメッセージの送受信ができる場合がある。
+Linux 3.0 の時点では、
+\fBNETLINK_KOBJECT_UEVENT\fP, \fBNETLINK_GENERIC\fP, \fBNETLINK_ROUTE\fP,
+\fBNETLINK_SELINUX\fP グループでは他のユーザがメッセージを受信することができる。
+他のユーザがメッセージを送信できるグループは存在しない。
 .SH バージョン
 netlink へのソケットインターフェースは Linux 2.2 の新機能である。
 
@@ -342,12 +345,11 @@ for (nh = (struct nlmsghdr *) buf; NLMSG_OK (nh, len);
 \fBcmsg\fP(3), \fBnetlink\fP(3), \fBcapabilities\fP(7), \fBrtnetlink\fP(7)
 
 .UR ftp://ftp.inr.ac.ru\:/ip\-routing\:/iproute2*
-information about
-libnetlink
+libnetlink に関する情報
 .UE
 
 .UR http://people.suug.ch\:/~tgr\:/libnl/
-information about libnl
+libnl に関する情報
 .UE
 
 RFC 3549 "Linux Netlink as an IP Services Protocol"