ac2f6695cd
* xlat/af_packet_versions.in: New file. * netlink_packet_diag.c: Include "xlat/af_packet_versions.h". (decode_packet_diag_req): sdiag_protocol shouldn't be decoded as a protocol, currently it should be set to 0. (decode_packet_diag_info): Decode pdi_version field using af_packet_versions xlat; decode pdi_index field as an interface index. (packet_diag_msg_nla_decoders) <PACKET_DIAG_UID>: Decode using decode_nla_uid. (decode_packet_diag_msg): Decode pdiag_num as an low-level protocol. * tests/netlink_sock_diag.c: Update expected output. * tests/nlattr_packet_diag_msg.c: Likewise.
4 lines
39 B
Plaintext
4 lines
39 B
Plaintext
TPACKET_V1 0
|
|
TPACKET_V2 1
|
|
TPACKET_V3 2
|