mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
The diag module can be built independently from the af_packet.ko one, just like it's done in unix sockets. The core dumping message carries the info available at socket creation time, i.e. family, type and protocol (in the same byte order as shown in the proc file). The socket inode number and cookie is reserved for future per-socket info retrieving. The per-protocol filtering is also reserved for future by requiring the sdiag_protocol to be zero. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
358 B
C
25 lines
358 B
C
#ifndef __PACKET_DIAG_H__
|
|
#define __PACKET_DIAG_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct packet_diag_req {
|
|
__u8 sdiag_family;
|
|
__u8 sdiag_protocol;
|
|
__u16 pad;
|
|
__u32 pdiag_ino;
|
|
__u32 pdiag_show;
|
|
__u32 pdiag_cookie[2];
|
|
};
|
|
|
|
struct packet_diag_msg {
|
|
__u8 pdiag_family;
|
|
__u8 pdiag_type;
|
|
__u16 pdiag_num;
|
|
|
|
__u32 pdiag_ino;
|
|
__u32 pdiag_cookie[2];
|
|
};
|
|
|
|
#endif
|