JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... tnameinfo (3) の使用例である。 以下はこのプログラムをあるシステムで実行した際の出力である。 $ ./a.out lo AF_PACKET (17) tx_packets = 524; rx_packets = 524 tx_bytes = 38788; rx_bytes = 38788 wlp3s0 AF_PACKET (17) tx_packets = 108391; rx_packets = 130245 ... tx_bytes = 30420659; rx_bytes = 94230014 em1 AF_PACKET (17) tx_packets = 0; rx_packets = 0 tx_bytes = 0; rx_bytes = 0 lo AF_INET (2) address: <127.0.0.1> wlp3s0 AF_INET (2) address: <192.168.23 ... ; } else if (family == AF_PACKET && ifa->ifa_data != NULL) { struct rtnl_link_stats *stats = ifa->ifa_data; printf("\t\ttx_packets = %10u; rx_packets = %10u\n" "\t\ttx_bytes = %10u; rx_bytes = %10u\n", stats->tx_packets, stats->rx_packets, stats->tx_byt ... ... tnameinfo (3) の使用例である。 以下はこのプログラムをあるシステムで実行した際の出力である。 $ ./a.out lo AF_PACKET (17) tx_packets = 524; rx_packets = 524 tx_bytes = 38788; rx_bytes = 38788 wlp3s0 AF_PACKET (17) tx_packets = 108391; rx_packets = 130245 ... tx_bytes = 30420659; rx_bytes = 94230014 em1 AF_PACKET (17) tx_packets = 0; rx_packets = 0 tx_bytes = 0; rx_bytes = 0 lo AF_INET (2) address: <127.0.0.1> wlp3s0 AF_INET (2) address: <192.168.23 ... ; } else if (family == AF_PACKET && ifa->ifa_data != NULL) { struct rtnl_link_stats *stats = ifa->ifa_data; printf("\t\ttx_packets = %10u; rx_packets = %10u\n" "\t\ttx_bytes = %10u; rx_bytes = %10u\n", stats->tx_packets, stats->rx_packets, stats->tx_byt ... ... 装置なしで、ゲートウェイとバックエンドの負荷分散クラスターを配備できる。 This match requires that all the nodes see the same packets. Thus, the cluster match decides if this node has to handle a packet given the following options: --cluster-total-nodes nu ... ないパケットにマッチする。 --connbytes-dir { original | reply | both } どのパケットを計測するかを指定する --connbytes-mode { packets | bytes | avgpkt } パケット総数、転送バイト数、これまでに受信した全パケットの平均サイズ (バイト単位) のどれをチェックするか ... ッチする。 CPU には 0 から NR_CPUS-1 の番号が振られる。 ネットワークトラフィックを複数のキューに分散させるために RPS (Remote Packet Steering) やマルチキュー NIC と組み合わせて使用できる。 例: iptables -t nat -A PREROUTING -p tcp --dport 80 -m cpu --cpu 0 ... ... ytes from 8195.13: aep_seq=4. time=10. ms 11 bytes from 8195.13: aep_seq=5. time=9. ms ^C ----8195.13 AEP Statistics---- 6 packets sent, 6 packets received, 0% packet loss round-trip (ms) min/avg/max = 9/9/10 オプション -c count count 個のパケットを送っ ... ... lassic BPF ( SO_ATTACH_FILTER ) or an extended BPF ( SO_ATTACH_BPF ) program to the socket for use as a filter of incoming packets. A packet will be dropped if the filter program returns zero. If the filter program returns a nonzero value which is less ... o set a classic BPF ( SO_ATTACH_REUSEPORT_CBPF ) or an extended BPF ( SO_ATTACH_REUSEPORT_EBPF ) program which defines how packets are assigned to the sockets in the reuseport group (that is, all sockets which have SO_REUSEPORT set and are using the sam ... e local address to receive packets). The BPF program must return an index between 0 and N-1 representing the socket which should receive the packet (where N ... ... ロトコルのものは、 カーネルに実装されているプロトコルに渡される前の段階で、 packet ソケットに渡される。 In order to create a packet socket, a process must have the CAP_NET_RAW capability in the user namespace that governs its network namespace. SOCK_RAW パ ... は、 sockaddr_ll の行き先アドレスの情報に基づき、適切な物理層のヘッダーが付加されてから、 キューに送られる。 By default, all packets of the specified protocol type are passed to a packet socket. To get packets only from a specific interface use bind (2) s ... pecifying an address in a struct sockaddr_ll to bind the packet socket to an interface. Fields used for binding are sll_family (should be AF_PACKET ), sll_protocol , and sll_ifindex . con ... ... デバッグモード。 /var/log/talkd.log に多くのログ情報とデバッグ情報を書き込む。 [- p ] パケット記録モード。 /var/log/talkd.packets にそのままの不恰好なパケットを書き込む。 相互運用の問題をデバッグするのに役立つ。 関連項目 talk (1), write (1) 履歴 talkd ... ... デバッグモード。 /var/log/talkd.log に多くのログ情報とデバッグ情報を書き込む。 [- p ] パケット記録モード。 /var/log/talkd.packets にそのままの不恰好なパケットを書き込む。 相互運用の問題をデバッグするのに役立つ。 関連項目 talk (1), write (1) 履歴 talkd ... ... デバッグモード。 /var/log/talkd.log に多くのログ情報とデバッグ情報を書き込む。 [- p ] パケット記録モード。 /var/log/talkd.packets にそのままの不恰好なパケットを書き込む。 相互運用の問題をデバッグするのに役立つ。 関連項目 talk (1), write (1) 履歴 talkd ... ... デバッグモード。 /var/log/talkd.log に多くのログ情報とデバッグ情報を書き込む。 [- p ] パケット記録モード。 /var/log/talkd.packets にそのままの不恰好なパケットを書き込む。 相互運用の問題をデバッグするのに役立つ。 関連項目 talk (1), write (1) 履歴 talkd ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。