libscap
0.1.0.0
|
Information about a file descriptor. More...
#include <scap.h>
Data Fields | |
int64_t | fd |
The FD number, which uniquely identifies this file descriptor. More... | |
uint64_t | ino |
For unix sockets, the inode. More... | |
scap_fd_type | type |
This file descriptor's type. More... | |
union { | |
struct { | |
uint32_t scap_fdinfo::sip | |
Source IP. More... | |
uint32_t scap_fdinfo::dip | |
Destination IP. More... | |
uint16_t scap_fdinfo::sport | |
Source port. More... | |
uint16_t scap_fdinfo::dport | |
Destination port. More... | |
uint8_t scap_fdinfo::l4proto | |
Transport protocol. See scap_l4_proto. More... | |
} scap_fdinfo::ipv4info | |
Information specific to IPv4 sockets. More... | |
struct { | |
uint32_t scap_fdinfo::sip [4] | |
Source IP. More... | |
uint32_t scap_fdinfo::dip [4] | |
Destination IP. More... | |
uint16_t scap_fdinfo::sport | |
Source Port. More... | |
uint16_t scap_fdinfo::dport | |
Destination Port. More... | |
uint8_t scap_fdinfo::l4proto | |
Transport protocol. See scap_l4_proto. More... | |
} scap_fdinfo::ipv6info | |
Information specific to IPv6 sockets. More... | |
struct { | |
uint32_t scap_fdinfo::ip | |
Local IP. More... | |
uint16_t scap_fdinfo::port | |
Local Port. More... | |
uint8_t scap_fdinfo::l4proto | |
Transport protocol. See scap_l4_proto. More... | |
} scap_fdinfo::ipv4serverinfo | |
Information specific to IPv4 server sockets, e.g. sockets used for bind(). More... | |
struct { | |
uint32_t scap_fdinfo::ip [4] | |
Local IP. More... | |
uint16_t scap_fdinfo::port | |
Local Port. More... | |
uint8_t scap_fdinfo::l4proto | |
Transport protocol. See scap_l4_proto. More... | |
} scap_fdinfo::ipv6serverinfo | |
Information specific to IPv6 server sockets, e.g. sockets used for bind(). More... | |
struct { | |
uint64_t scap_fdinfo::source | |
Source socket endpoint. More... | |
uint64_t scap_fdinfo::destination | |
Destination socket endpoint. More... | |
char scap_fdinfo::fname [SCAP_MAX_PATH_SIZE] | |
Name associated to this unix socket. More... | |
} scap_fdinfo::unix_socket_info | |
Information specific to unix sockets. More... | |
struct { | |
uint32_t scap_fdinfo::open_flags | |
Flags associated with the file. More... | |
char scap_fdinfo::fname [SCAP_MAX_PATH_SIZE] | |
Name associated to this file. More... | |
uint32_t scap_fdinfo::mount_id | |
The id of the vfs mount the file is in until we find dev major:minor. More... | |
uint32_t scap_fdinfo::dev | |
Major/minor number of the device containing this file. More... | |
} scap_fdinfo::regularinfo | |
Information specific to regular files. More... | |
char scap_fdinfo::fname [SCAP_MAX_PATH_SIZE] | |
The name for file system FDs. More... | |
} | info |
UT_hash_handle | hh |
makes this structure hashable More... | |