OSDN Git Service

5ed33d28a6a7ccbb700ac9d5539571c80eac9111
[linuxjm/LDP_man-pages.git] / draft / man7 / rtnetlink.7
1 '\" t
2 .\" Don't remove the line above, it tells man that tbl is needed.
3 .\" This man page is Copyright (C) 1999 Andi Kleen <ak@muc.de>.
4 .\" Permission is granted to distribute possibly modified copies
5 .\" of this page provided the header is included verbatim,
6 .\" and in case of nontrivial modification author and date
7 .\" of the modification is added to the header.
8 .\" Based on the original comments from Alexey Kuznetsov, written with
9 .\" help from Matthew Wilcox.
10 .\" $Id: rtnetlink.7,v 1.10 2001/04/04 08:02:19 ysato Exp $
11 .\"
12 .\" Japanese Version Copyright (c) 1999 NAKANO Takeo all rights reserved.
13 .\" Translated Mon 6 Dec 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
14 .\"
15 .\"WORD         queueing dicipline      キューイング(の)ルール
16 .\"WORD         permanent               永続的な
17 .\"WORD         neighbor                近傍
18 .\"
19 .TH RTNETLINK  7 2008-08-08 "Linux" "Linux Programmer's Manual"
20 .\"O .SH NAME
21 .\"O rtnetlink, NETLINK_ROUTE \- Linux IPv4 routing socket
22 .SH 名前
23 rtnetlink, NETLINK_ROUTE \- Linux IPv4 ルーティングソケット
24 .\"O .SH SYNOPSIS
25 .SH 書式
26 .B #include <asm/types.h>
27 .br
28 .B #include <linux/netlink.h>
29 .br
30 .B #include <linux/rtnetlink.h>
31 .br
32 .B #include <sys/socket.h>
33 .sp
34 .BI "rtnetlink_socket = socket(AF_NETLINK, int " socket_type ", NETLINK_ROUTE);"
35 .\"O .SH DESCRIPTION
36 .SH 説明
37 .\"O Rtnetlink allows the kernel's routing tables to be read and altered.
38 .\"O It is used within the kernel to communicate between
39 .\"O various subsystems, though this usage is not documented here, and for
40 .\"O communication with user-space programs.
41 .\"O Network routes, IP addresses, link parameters, neighbor setups, queueing
42 .\"O disciplines, traffic classes and packet classifiers may all be controlled
43 .\"O through
44 .\"O .B NETLINK_ROUTE
45 .\"O sockets.
46 .\"O It is based on netlink messages; see
47 .\"O .BR netlink (7)
48 .\"O for more information.
49 .B rtnetlink
50 はカーネルのルーティングテーブルを読んだり変更したり
51 するためのものである。これはカーネルが内部のサブシステムと
52 通信するためにも用いられているが、それはここでは記述しない。
53 この man ページではユーザー空間のプログラムとの通信に関してのみ述べる。
54 ネットワーク経路・IP アドレス・リンクパラメータ・
55 近傍設定 (neighbor setup)・キューイングルール (queueing dicipline)・
56 トラフィッククラス・パケットのクラス分類などが、すべて
57 .B NETLINK_ROUTE
58 ソケットを通して制御できる。
59 .B rtnetlink
60 は netlink メッセージをベースにしている。詳細は
61 .BR netlink (7)
62 を見ること。
63 .\" FIXME ? all these macros could be moved to rtnetlink(3)
64 .\"O .SS "Routing Attributes"
65 .SS ルーティング属性
66 .\"O Some rtnetlink messages have optional attributes after the initial header:
67 rtnetlink メッセージには、初期ヘッダの後に付加的な属性を
68 持つものがある。
69
70 .in +4n
71 .nf
72 struct rtattr {
73     unsigned short rta_len;    /* Length of option */
74     unsigned short rta_type;   /* Type of option */
75     /* Data follows */
76 };
77 .fi
78 .in
79
80 .\"O These attributes should be only manipulated using the RTA_* macros
81 .\"O or libnetlink, see
82 .\"O .BR rtnetlink (3).
83 これらの属性の操作は、 RTA_* マクロか libnetlink を通してのみ
84 行うべきである。
85 .BR rtnetlink (3)
86 を見よ。
87 .\"O .SS Messages
88 .SS メッセージ
89 .\"O Rtnetlink consists of these message types
90 .\"O (in addition to standard netlink messages):
91 rtnetlink は (標準的な netlink メッセージに加えて)
92 以下のメッセージタイプから構成される。
93 .TP
94 .BR RTM_NEWLINK ", " RTM_DELLINK ", " RTM_GETLINK
95 .\"O Create, remove or get information about a specific network interface.
96 .\"O These messages contain an
97 .\"O .I ifinfomsg
98 .\"O structure followed by a series of
99 .\"O .I rtattr
100 .\"O structures.
101 指定したネットワークインターフェースの情報を、生成・削除・取得する。
102 これらのメッセージは
103 .I ifinfomsg
104 構造体と、それに続いていくつかの
105 .I rtattr
106 構造体を伴う。
107
108 .nf
109 struct ifinfomsg {
110     unsigned char  ifi_family; /* AF_UNSPEC */
111     unsigned short ifi_type;   /* Device type */
112     int            ifi_index;  /* Interface index */
113     unsigned int   ifi_flags;  /* Device flags  */
114     unsigned int   ifi_change; /* change mask */
115 };
116 .fi
117
118 .\" FIXME ifi_type
119 .\"O .I ifi_flags
120 .\"O contains the device flags, see
121 .\"O .BR netdevice (7);
122 .\"O .I ifi_index
123 .\"O is the unique interface index,
124 .\"O .I ifi_change
125 .\"O is reserved for future use and should be always set to 0xFFFFFFFF.
126 .I ifi_flags
127 はデバイスのフラグである。
128 .BR netdevice (7)
129 を見よ。
130 .I ifi_index
131 は他と重ならないインターフェースの index である。
132 .I ifi_change
133 は将来の利用のために予約されており、常に
134 0xFFFFFFFF にセットすべきである。
135 .TS
136 tab(:);
137 c
138 l l l.
139 .\"O Routing attributes
140 .\"O rta_type:value type:description
141 .\"O _
142 .\"O IFLA_UNSPEC:-:unspecified.
143 .\"O IFLA_ADDRESS:hardware address:interface L2 address
144 .\"O IFLA_BROADCAST:hardware address:L2 broadcast address.
145 .\"O IFLA_IFNAME:asciiz string:Device name.
146 .\"O IFLA_MTU:unsigned int:MTU of the device.
147 .\"O IFLA_LINK:int:Link type.
148 .\"O IFLA_QDISC:asciiz string:Queueing discipline.
149 .\"O IFLA_STATS:T{
150 .\"O see below
151 .\"O T}:Interface Statistics.
152 ルーティング属性
153 rta_type:値の型:説明
154 _
155 IFLA_UNSPEC:-:指定されていない。
156 IFLA_ADDRESS:hardware address:T{
157 インターフェース L2 アドレス
158 T}
159 IFLA_BROADCAST:hardware address:T{
160 L2 ブロードキャストアドレス
161 T}
162 IFLA_IFNAME:asciiz string:デバイス名
163 IFLA_MTU:unsigned int:デバイスの MTU
164 IFLA_LINK:int:リンクタイプ
165 IFLA_QDISC:asciiz string:キューイングのルール
166 IFLA_STATS:T{
167 下記参照
168 T}:インターフェースの統計
169 .TE
170 .sp
171 .\"O The value type for IFLA_STATS is \fIstruct net_device_stats\fP.
172 IFLA_STATS の値の型は \fIstruct net_device_stats\fP である。
173 .TP
174 .BR RTM_NEWADDR ", " RTM_DELADDR ", " RTM_GETADDR
175 .\"O Add, remove or receive information about an IP address associated with
176 .\"O an interface.
177 .\"O In Linux 2.2, an interface can carry multiple IP addresses,
178 .\"O this replaces the alias device concept in 2.0.
179 .\"O In Linux 2.2, these messages
180 .\"O support IPv4 and IPv6 addresses.
181 .\"O They contain an
182 .\"O .I ifaddrmsg
183 .\"O structure, optionally followed by
184 .\"O .I rtattr
185 .\"O routing attributes.
186 インターフェースの IP アドレスの情報を追加・削除・取得する。
187 Linux 2.2 では、一つのインターフェースに複数の IP アドレスを
188 保持させることができ、これは 2.0 の別名デバイスの概念を置き換える。
189 Linux 2.2 では、これらのメッセージは
190 IPv4 と IPv6 の両方のアドレスをサポートしている。
191 これらは
192 .I ifaddrmsg
193 構造体を伴う。そのあとに
194 .I rtattr
195 ルーティング属性が続くこともある。
196
197 .nf
198 struct ifaddrmsg {
199     unsigned char ifa_family;    /* Address type */
200     unsigned char ifa_prefixlen; /* Prefixlength of address */
201     unsigned char ifa_flags;     /* Address flags */
202     unsigned char ifa_scope;     /* Address scope */
203     int           ifa_index;     /* Interface index */
204 };
205 .fi
206
207 .\"O .I ifa_family
208 .\"O is the address family type (currently
209 .\"O .B AF_INET
210 .\"O or
211 .\"O .BR AF_INET6 ),
212 .\"O .I ifa_prefixlen
213 .\"O is the length of the address mask of the address if defined for the
214 .\"O family (like for IPv4),
215 .\"O .I ifa_scope
216 .\"O is the address scope,
217 .\"O .I ifa_index
218 .\"O is the interface index of the interface the address is associated with.
219 .\"O .I ifa_flags
220 .\"O is a flag word of
221 .\"O .B IFA_F_SECONDARY
222 .\"O for secondary address (old alias interface),
223 .\"O .B IFA_F_PERMANENT
224 .\"O for a permanent address set by the user and other undocumented flags.
225 .I ifa_family
226 はアドレスファミリーのタイプである (現在は
227 .B AF_INET
228 または
229 .BR AF_INET6 )。
230 .I ifa_prefixlen
231 はアドレスのアドレスマスクの長さである (IPv4 のように、
232 そのファミリーで定義されている場合)。
233 .I ifa_scope
234 はアドレスのスコープである。
235 .I ifa_index
236 はアドレスが関連づけられているインターフェースの index である。
237 .I ifa_flags
238 はフラグワードで、
239 二つめのアドレス (古い別名インターフェース) の場合は
240 .B IFA_F_SECONDARY
241 に、永続的なアドレスの場合は
242 .B IFA_F_PERMANENT
243 に適用される。ユーザーによってセットされるフラグと、
244 undocumented なフラグがある。
245 .TS
246 tab(:);
247 c
248 l l l.
249 .\"O Attributes
250 .\"O rta_type:value type:description
251 .\"O _
252 .\"O IFA_UNSPEC:-:unspecified.
253 .\"O IFA_ADDRESS:raw protocol address:interface address
254 .\"O IFA_LOCAL:raw protocol address:local address
255 .\"O IFA_LABEL:asciiz string:name of the interface
256 .\"O IFA_BROADCAST:raw protocol address:broadcast address.
257 .\"O IFA_ANYCAST:raw protocol address:anycast address
258 .\"O IFA_CACHEINFO:struct ifa_cacheinfo:Address information.
259 属性
260 rta_type:値の型:説明
261 _
262 IFA_UNSPEC:-:指定されていない
263 IFA_ADDRESS:raw protocol address:インターフェースアドレス
264 IFA_LOCAL:raw protocol address:ローカルアドレス
265 IFA_LABEL:asciiz string:インターフェースの名前
266 IFA_BROADCAST:raw protocol address:ブロードキャストアドレス
267 IFA_ANYCAST:raw protocol address:anycast アドレス
268 IFA_CACHEINFO:struct ifa_cacheinfo:アドレス情報
269 .TE
270 .\" FIXME struct ifa_cacheinfo
271 .TP
272 .BR RTM_NEWROUTE ", " RTM_DELROUTE ", " RTM_GETROUTE
273 .\"O Create, remove or receive information about a network route.
274 .\"O These messages contain an
275 .\"O .I rtmsg
276 .\"O structure with an optional sequence of
277 .\"O .I rtattr
278 .\"O structures following.
279 .\"O For
280 .\"O .BR RTM_GETROUTE ,
281 .\"O setting
282 .\"O .I rtm_dst_len
283 .\"O and
284 .\"O .I rtm_src_len
285 .\"O to 0 means you get all entries for the specified routing table.
286 ネットワーク経路の情報を生成・削除・取得する。
287 これらのメッセージは
288 .I rtmsg
289 構造体を伴う。そのあとにいくつかの
290 .I rtattr
291 構造体を続けることもできる。
292 .B RTM_GETROUTE
293
294 .I rtm_dst_len
295
296 .I rtm_src_len
297 に 0 をセットすると、
298 指定されたルーティングテーブルの全てのエントリを所得する。
299 .\"O For the other fields, except
300 .\"O .I rtm_table
301 .\"O and
302 .\"O .IR rtm_protocol ,
303 .\"O 0 is the wildcard.
304 .I rtm_table
305
306 .I rtm_protocol
307 以外の他のフィールドに 0 を入れると、ワイルドカードを意味する。
308
309 .nf
310 struct rtmsg {
311     unsigned char rtm_family;   /* Address family of route */
312     unsigned char rtm_dst_len;  /* Length of destination */
313     unsigned char rtm_src_len;  /* Length of source */
314     unsigned char rtm_tos;      /* TOS filter */
315
316     unsigned char rtm_table;    /* Routing table ID */
317     unsigned char rtm_protocol; /* Routing protocol; see below */
318     unsigned char rtm_scope;    /* See below */
319     unsigned char rtm_type;     /* See below */
320
321     unsigned int  rtm_flags;
322 };
323 .fi
324 .TS
325 tab(:);
326 l l.
327 .\"O rtm_type:Route type
328 .\"O _
329 .\"O RTN_UNSPEC:unknown route
330 .\"O RTN_UNICAST:a gateway or direct route
331 .\"O RTN_LOCAL:a local interface route
332 .\"O RTN_BROADCAST:T{
333 .\"O a local broadcast route (sent as a broadcast)
334 .\"O T}
335 .\"O RTN_ANYCAST:T{
336 .\"O a local broadcast route (sent as a unicast)
337 .\"O T}
338 .\"O RTN_MULTICAST:a multicast route
339 .\"O RTN_BLACKHOLE:a packet dropping route
340 .\"O RTN_UNREACHABLE:an unreachable destination
341 .\"O RTN_PROHIBIT:a packet rejection route
342 .\"O RTN_THROW:continue routing lookup in another table
343 .\"O RTN_NAT:a network address translation rule
344 .\"O RTN_XRESOLVE:T{
345 .\"O refer to an external resolver (not implemented)
346 .\"O T}
347 rtm_type:経路のタイプ
348 _
349 RTN_UNSPEC:未知の経路
350 RTN_UNICAST:ゲートウェイまたはダイレクトな経路
351 RTN_LOCAL:ローカルインターフェースの経路
352 RTN_BROADCAST:T{
353 ローカルなブロードキャスト経路
354 (ブロードキャストとして送信される)
355 T}
356 RTN_ANYCAST:T{
357 ローカルなブロードキャスト経路
358 (ユニキャストとして送信される)
359 T}
360 RTN_MULTICAST:マルチキャスト経路
361 RTN_BLACKHOLE:パケットを捨てる経路
362 RTN_UNREACHABLE:到達できない行き先
363 RTN_PROHIBIT:パケットを拒否する経路
364 RTN_THROW:経路探索を別のテーブルで継続
365 RTN_NAT:ネットワークアドレスの変換ルール
366 RTN_XRESOLVE:T{
367 外部レゾルバを参照 (実装されていない)
368 T}
369 .TE
370 .TS
371 tab(:);
372 l l.
373 .\"O rtm_protocol:Route origin.
374 .\"O _
375 .\"O RTPROT_UNSPEC:unknown
376 .\"O RTPROT_REDIRECT:T{
377 .\"O by an ICMP redirect (currently unused)
378 .\"O T}
379 .\"O RTPROT_KERNEL:by the kernel
380 .\"O RTPROT_BOOT:during boot
381 .\"O RTPROT_STATIC:by the administrator
382 rtm_protocol:経路の情報源
383 _
384 RTPROT_UNSPEC:不明
385 RTPROT_REDIRECT:T{
386 ICMP リダイレクトによる (現在は用いられない)
387 T}
388 RTPROT_KERNEL:カーネルによる
389 RTPROT_BOOT:ブート時
390 RTPROT_STATIC:管理者による
391 .TE
392
393 .\"O Values larger than
394 .\"O .B RTPROT_STATIC
395 .\"O are not interpreted by the kernel, they are just for user information.
396 .\"O They may be used to tag the source of a routing information or to
397 .\"O distingush between multiple routing daemons.
398 .\"O See
399 .\"O .I <linux/rtnetlink.h>
400 .\"O for the routing daemon identifiers which are already assigned.
401 .B RTPROT_STATIC
402 よりも大きな値はカーネルによって解釈されない。これは
403 単なるユーザーへの情報である。これらは経路情報の情報源を
404 タグ付けしたり、複数のルーティングデーモンからの情報を
405 区別するために用いることができる。
406 既に割り当てられているルーティングデーモンの識別子については
407 .I <linux/rtnetlink.h>
408 を見よ。
409
410 .\"O .I rtm_scope
411 .\"O is the distance to the destination:
412 .I rtm_scope
413 は行き先への距離である。
414
415 .TS
416 tab(:);
417 l l.
418 .\"O RT_SCOPE_UNIVERSE:global route
419 .\"O RT_SCOPE_SITE:T{
420 .\"O interior route in the local autonomous system
421 .\"O T}
422 .\"O RT_SCOPE_LINK:route on this link
423 .\"O RT_SCOPE_HOST:route on the local host
424 .\"O RT_SCOPE_NOWHERE:destination doesn't exist
425 RT_SCOPE_UNIVERSE:グローバルな経路
426 RT_SCOPE_SITE:T{
427 ローカルな自律システムにおける内部経路
428 T}
429 RT_SCOPE_LINK:このリンク上の経路
430 RT_SCOPE_HOST:ローカルホスト上の経路
431 RT_SCOPE_NOWHERE:行き先が存在しない
432 .TE
433
434 .\"O The values between
435 .\"O .B RT_SCOPE_UNIVERSE
436 .\"O and
437 .\"O .B RT_SCOPE_SITE
438 .\"O are available to the user.
439 ユーザーは
440 .B RT_SCOPE_UNIVERSE
441
442 .B RT_SCOPE_SITE
443 の間の値を用いることができる。
444
445 .\"O The
446 .\"O .I rtm_flags
447 .\"O have the following meanings:
448 .I rtm_flags
449 は以下の意味を持つ:
450 .TS
451 tab(:);
452 l l.
453 .\"O RTM_F_NOTIFY:T{
454 .\"O if the route changes, notify the user via rtnetlink
455 .\"O T}
456 .\"O RTM_F_CLONED:route is cloned from another route
457 .\"O RTM_F_EQUALIZE:a multipath equalizer (not yet implemented)
458 RTM_F_NOTIFY:T{
459 経路が変更されると、 rtnetlink を通してユーザーに通知が行く。
460 T}
461 RTM_F_CLONED:経路は他の経路によって複製された。
462 RTM_F_EQUALIZE:マルチパスイコライザ (まだ実装されていない)
463 .TE
464
465 .\"O .I rtm_table
466 .\"O specifies the routing table
467 .I rtm_table
468 ではルーティングテーブルを指定する。
469 .TS
470 tab(:);
471 l l.
472 .\"O RT_TABLE_UNSPEC:an unspecified routing table
473 .\"O RT_TABLE_DEFAULT:the default table
474 .\"O RT_TABLE_MAIN:the main table
475 .\"O RT_TABLE_LOCAL:the local table
476 RT_TABLE_UNSPEC:指定されていないルーティングテーブル
477 RT_TABLE_DEFAULT:デフォルトのテーブル
478 RT_TABLE_MAIN:メインのテーブル
479 RT_TABLE_LOCAL:ローカルテーブル
480 .TE
481
482 .\"O The user may assign arbitrary values between
483 .\"O .B RT_TABLE_UNSPEC
484 .\"O and
485 .\"O .BR RT_TABLE_DEFAULT .
486 ユーザーは
487 .B RT_TABLE_UNSPEC
488
489 .BR RT_TABLE_DEFAULT .
490 の間の任意の値を用いることができる。
491 .TS
492 tab(:);
493 c
494 l l l.
495 .\"O Attributes
496 .\"O rta_type:value type:description
497 .\"O _
498 .\"O RTA_UNSPEC:-:ignored.
499 .\"O RTA_DST:protocol address:Route destination address.
500 .\"O RTA_SRC:protocol address:Route source address.
501 .\"O RTA_IIF:int:Input interface index.
502 .\"O RTA_OIF:int:Output interface index.
503 .\"O RTA_GATEWAY:protocol address:The gateway of the route
504 .\"O RTA_PRIORITY:int:Priority of route.
505 .\"O RTA_PREFSRC::
506 .\"O RTA_METRICS:int:Route metric
507 .\"O RTA_MULTIPATH::
508 .\"O RTA_PROTOINFO::
509 .\"O RTA_FLOW::
510 .\"O RTA_CACHEINFO::
511 属性
512 rta_type:値の型:説明
513 _
514 RTA_UNSPEC:-:無視される
515 RTA_DST:protocol address:経路の行き先アドレス
516 RTA_SRC:protocol address:経路の発信元アドレス
517 RTA_IIF:int:入力インターフェースの index
518 RTA_OIF:int:出力インターフェースの index
519 RTA_GATEWAY:protocol address:経路のゲートウェイ
520 RTA_PRIORITY:int:経路の優先度
521 RTA_PREFSRC::
522 RTA_METRICS:int:経路のメトリック
523 RTA_MULTIPATH::
524 RTA_PROTOINFO::
525 RTA_FLOW::
526 RTA_CACHEINFO::
527 .TE
528
529 .\"O .B Fill these values in!
530 .B (これらの値を埋めること!)
531 .TP
532 .BR RTM_NEWNEIGH ", " RTM_DELNEIGH  ", " RTM_GETNEIGH
533 .\"O Add, remove or receive information about a neighbor table
534 .\"O entry (e.g., an ARP entry).
535 .\"O The message contains an
536 .\"O .I ndmsg
537 .\"O structure.
538 近傍テーブル (neighbor table) のエントリ
539 (例えば ARP エントリ) の情報を追加・削除・取得する。
540 このメッセージは
541 .I ndmsg
542 構造体を伴う。
543
544 .nf
545 struct ndmsg {
546     unsigned char ndm_family;
547     int           ndm_ifindex;  /* Interface index */
548     __u16         ndm_state;    /* State */
549     __u8          ndm_flags;    /* Flags */
550     __u8          ndm_type;
551 };
552
553 struct nda_cacheinfo {
554     __u32         ndm_confirmed;
555     __u32         ndm_used;
556     __u32         ndm_updated;
557     __u32         ndm_refcnt;
558 };
559 .fi
560
561 .\"O .I ndm_state
562 .\"O is a bit mask of the following states:
563 .I ndm_state
564 は以下の状態のビットマスクである:
565 .TS
566 tab(:);
567 l l.
568 .\"O NUD_INCOMPLETE:a currently resolving cache entry
569 .\"O NUD_REACHABLE:a confirmed working cache entry
570 .\"O NUD_STALE:an expired cache entry
571 .\"O NUD_DELAY:an entry waiting for a timer
572 .\"O NUD_PROBE:a cache entry that is currently reprobed
573 .\"O NUD_FAILED:an invalid cache entry
574 .\"O NUD_NOARP:a device with no destination cache
575 .\"O NUD_PERMANENT:a static entry
576 NUD_INCOMPLETE:現在レゾルブ中のキャッシュエントリ
577 NUD_REACHABLE:動作確認済みのキャッシュエントリ
578 NUD_STALE:期限切れのキャッシュエントリ
579 NUD_DELAY:タイマ待ちのキャッシュエントリ
580 NUD_PROBE:再確認中のキャッシュエントリ
581 NUD_FAILED:不正なキャッシュエントリ
582 NUD_NOARP:行き先キャッシュのないデバイス
583 NUD_PERMANENT:静的なエントリ
584 .TE
585
586 .\"O Valid
587 .\"O .I ndm_flags
588 .\"O are:
589 有効な
590 .I ndm_flags
591 は以下の通り:
592 .TS
593 tab(:);
594 l l.
595 .\"O NTF_PROXY:a proxy arp entry
596 .\"O NTF_ROUTER:an IPv6 router
597 NTF_PROXY:プロクシ arp エントリ
598 NTF_ROUTER:IPv6 ルータ
599 .TE
600
601 .\" FIXME
602 .\" document the members of the struct better
603 .\"O The
604 .\"O .I rtattr
605 .\"O struct has the following meanings for the
606 .\"O .I rta_type
607 .\"O field:
608 .I rtattr
609 構造体は、
610 .I rta_type
611 フィールドに応じてそれぞれ以下の意味を持つ:
612 .TS
613 tab(:);
614 l l.
615 .\"O NDA_UNSPEC:unknown type
616 .\"O NDA_DST:a neighbor cache n/w layer destination address
617 .\"O NDA_LLADDR:a neighbor cache link layer address
618 .\"O NDA_CACHEINFO:cache statistics.
619 NDA_UNSPEC:未知のタイプ
620 NDA_DST:近傍キャッシュネットワーク層の行き先アドレス
621 NDA_LLADDR:近傍キャッシュリンク層のアドレス
622 NDA_CACHEINFO:キャッシュの統計
623 .TE
624
625 .\"O If the
626 .\"O .I rta_type
627 .\"O field is
628 .\"O .B NDA_CACHEINFO
629 .\"O then a
630 .\"O .I struct nda_cacheinfo
631 .\"O header follows
632 .I rta_type
633 フィールドが
634 .B NDA_CACHEINFO
635 の場合には、
636 .I struct nda_cacheinfo
637 ヘッダが続く。
638 .TP
639 .BR RTM_NEWRULE ", " RTM_DELRULE ", " RTM_GETRULE
640 .\"O Add, delete or retrieve a routing rule.
641 .\"O Carries a
642 .\"O .I struct rtmsg
643 ルーティングルールを追加・削除・取得する。
644 .I struct rtmsg
645 を伴う。
646 .\"O
647 .TP
648 .BR RTM_NEWQDISC ", " RTM_DELQDISC ", " RTM_GETQDISC
649 .\"O Add, remove or get a queueing discipline.
650 .\"O The message contains a
651 .\"O .I struct tcmsg
652 .\"O and may be followed by a series of
653 .\"O attributes.
654 キューイングルールを追加・削除・取得する。
655 このメッセージは
656 .I struct tcmsg
657 を伴い、またそのあとに属性がいくつか続くこともある。
658
659 .nf
660 struct tcmsg {
661     unsigned char    tcm_family;
662     int              tcm_ifindex;   /* interface index */
663     __u32            tcm_handle;    /* Qdisc handle */
664     __u32            tcm_parent;    /* Parent qdisc */
665     __u32            tcm_info;
666 };
667 .fi
668 .TS
669 tab(:);
670 c
671 l l l.
672 .\"O Attributes
673 .\"O rta_type:value type:Description
674 .\"O _
675 .\"O TCA_UNSPEC:-:unspecified
676 .\"O TCA_KIND:asciiz string:Name of queueing discipline
677 .\"O TCA_OPTIONS:byte sequence:Qdisc-specific options follow
678 .\"O TCA_STATS:struct tc_stats:Qdisc statistics.
679 .\"O TCA_XSTATS:qdisc specific:Module-specific statistics.
680 .\"O TCA_RATE:struct tc_estimator:Rate limit.
681 属性
682 rta_type:値の型:説明
683 _
684 TCA_UNSPEC:-:指定されていない
685 TCA_KIND:asciiz string:キューイングルールの名前
686 TCA_OPTIONS:byte sequence:Qdisc 特有のオプションが続く
687 TCA_STATS:struct tc_stats:Qdisc の統計
688 TCA_XSTATS:qdisc specific:モジュール特有の統計
689 TCA_RATE:struct tc_estimator:レート制限
690 .TE
691
692 .\"O In addition various other qdisc module specific attributes are allowed.
693 .\"O For more information see the appropriate include files.
694 さらに、 qdisc モジュール特有の様々な属性を指定できる。
695 詳細な情報は適切なインクルードファイルを見よ。
696 .TP
697 .BR RTM_NEWTCLASS ", " RTM_DELTCLASS ", " RTM_GETTCLASS
698 .\"O Add, remove or get a traffic class.
699 .\"O These messages contain a
700 .\"O .I struct tcmsg
701 .\"O as described above.
702 トラフィッククラスを追加・削除・取得する。
703 これらのメッセージは、上述の
704 .I struct tcmsg
705 を伴う。
706 .TP
707 .BR RTM_NEWTFILTER ", " RTM_DELTFILTER ", " RTM_GETTFILTER
708 .\"O Add, remove or receive information about a traffic filter.
709 .\"O These messages contain a
710 .\"O .I struct tcmsg
711 .\"O as described above.
712 トラフィックフィルターの情報を追加・削除・取得する。
713 これらのメッセージは、上述の
714 .I struct tcmsg
715 を伴う。
716 .\"O .SH VERSIONS
717 .SH バージョン
718 .\"O .B rtnetlink
719 .\"O is a new feature of Linux 2.2.
720 .B rtnetlink
721 は Linux 2.2 の新機能である。
722 .\"O .SH BUGS
723 .SH バグ
724 .\"O This manual page is incomplete.
725 この man ページは不完全である。
726 .\"O .SH SEE ALSO
727 .SH 関連項目
728 .BR cmsg (3),
729 .BR rtnetlink (3),
730 .BR ip (7),
731 .BR netlink (7)