JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... 得する。 system.sysDescr.0 = "SunOS zeus.net.cmu.edu 4.1.3_U1 1 sun4m" interfaces.ifNumber.0 = 2 interfaces.ifTable.ifEntry.ifIndex.1 = 1 interfaces.ifTable.ifEntry.ifIndex.2 = 2 interfaces.ifTable.ifEntry.ifDescr.1 = "lo0" 等々 リクエストパケットを処理す ... ... _nametoindex(const char * ifname ); char *if_indextoname(unsigned int ifindex, char * ifname ); 説明 if_nametoindex () 関数は、 名前が ifname のネットワークインターフェースのインデックスを返す。 if_in ... dextoname () 関数は、 インターフェースのインデックスが ifindex に対応するネットワークインターフェースの名前を返す。 名前は ifname が指すバッファーに格納される。 バッファーは少なくとも I ... ... _nametoindex(const char * ifname ); char *if_indextoname(unsigned int ifindex, char * ifname ); 説明 if_nametoindex () 関数は、 名前が ifname のネットワークインターフェースのインデックスを返す。 if_in ... dextoname () 関数は、 インターフェースのインデックスが ifindex に対応するネットワークインターフェースの名前を返す。 名前は ifname が指すバッファーに格納される。 バッファーは少なくとも I ... ... d the packet socket to an interface. Fields used for binding are sll_family (should be AF_PACKET ), sll_protocol , and sll_ifindex . connect (2) 操作は packet ソケットではサポートされていない。 MSG_TRUNC フラグが recvmsg (2), recv (2), recvfrom (2) に渡 ... ockaddr_ll { unsigned short sll_family; /* 常に AF_PACKET */ unsigned short sll_protocol; /* 物理層のプロトコル */ int sll_ifindex; /* インターフェース番号 */ unsigned short sll_hatype; /* ARP ハードウェア種別 */ unsigned char sll_pkttype; /* パケット種 ... ype in network byte order as defined in the < linux/if_ether.h > include file. It defaults to the socket's protocol. * sll_ifindex is the interface index of the interface (see netdevice (7)); 0 matches any interface (only permitted for binding). sll_hat ... ... ターフェースの index である (Linux 3.7 以降では、 RTMGRP_LINK メッセージで 0 以外の値を指定することができ、そのため指定した ifindex でリンクを作成できる)。 ifi_change は将来の利用のために予約されており、常に 0xFFFFFFFF にセットすべきである。 ルーティング ... */ unsigned char rtnh_flags; /* Flags (see linux/rtnetlink.h) */ unsigned char rtnh_hops; /* Nexthop priority */ int rtnh_ifindex; /* Interface index for this nexthop */ } There exist a bunch of RTNH_* macros similar to RTA_* and NLHDR_* macros useful ... リー) の情報を追加・削除・取得する。 このメッセージは ndmsg 構造体を伴う。 struct ndmsg { unsigned char ndm_family; int ndm_ifindex; /* Interface index */ __u16 ndm_state; /* State */ __u8 ndm_flags; /* Flags */ __u8 ndm_type; }; struct nda_cacheinfo { _ ... ... dr imr_multiaddr; /* IP multicast group address */ struct in_addr imr_address; /* IP address of local interface */ int imr_ifindex; /* interface index */ }; imr_multiaddr には、アプリケーションが参加または脱退したい マルチキャストグループのアドレスが入る ... ターフェースのアドレスである。 これが INADDR_ANY であった場合には、適切なインターフェースがシステムによって選択される。 imr_ifindex は imr_multiaddr グループに参加/脱退するインターフェースの interface index である。 どのインターフェースでもよい場合は 0 に ... old ip_mreq structure (present since Linux 1.2) is still supported; it differs from ip_mreqn only by not including the imr_ifindex field. (The kernel determines which structure is being passed based on the size passed in optlen .) IP_ADD_MEMBERSHIP is v ... ... _dstaddr; struct sockaddr ifr_broadaddr; struct sockaddr ifr_netmask; struct sockaddr ifr_hwaddr; short ifr_flags; int ifr_ifindex; int ifr_metric; int ifr_mtu; struct ifmap ifr_map; char ifr_slave[IFNAMSIZ]; char ifr_newname[IFNAMSIZ]; char *ifr_data; ... 実効ユーザー ID が 0 か、 CAP_NET_ADMIN 権限が必要である。これが満たされていない場合は EPERM が返される。 SIOCGIFNAME ifr_ifindex を受け取り、インターフェースの名前を ifr_name に入れて返す。これは結果を ifr_name として返す唯一の ioctl である。 SIOCGIFI ... NDEX インターフェースの interface index を取得し、 ifr_ifindex に入れて返す。 SIOCGIFFLAGS , SIOCSIFFLAGS デバイスの active フラグワードを取得または設定する。 ifr_flags には以下の値のビ ... ... 顧客に対して 顧客ごとのインタフェースにアクセスさせたいと考えるかもしれない: view cust1 included interfaces.ifTable.ifEntry.ifIndex.1 ff.a0 view cust2 included interfaces.ifTable.ifEntry.ifIndex.2 ff.a0 (interfaces.ifTable.ifEntry.ifIndex.1 == .1.3.6.1.2 ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。