17 #ifndef __LINUX_ROUTING_DIAGNOSIS_DIAGNOSIS_HPP__ 18 #define __LINUX_ROUTING_DIAGNOSIS_DIAGNOSIS_HPP__ 20 #include <sys/socket.h> 22 #include <netinet/tcp.h> 51 const int MAX = 1 << 12;
52 const int ALL = MAX - 1;
72 sourcePort(_sourcePort),
73 destinationPort(_destinationPort),
75 destinationIP(_destinationIP),
110 #endif // __LINUX_ROUTING_DIAGNOSIS_DIAGNOSIS_HPP__ Option< net::IP > destinationIP
Definition: diagnosis.hpp:90
Option< net::IP > sourceIP
Definition: diagnosis.hpp:89
const int ESTABLISHED
Definition: diagnosis.hpp:40
const int ALL
Definition: diagnosis.hpp:52
const int CLOSING
Definition: diagnosis.hpp:50
Try< ino_t > inode(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:211
const int SYN_SENT
Definition: diagnosis.hpp:41
Try< std::vector< Info > > infos(int familiy, int states)
const int LAST_ACK
Definition: diagnosis.hpp:48
Definition: diagnosis.hpp:59
const int CLOSE_WAIT
Definition: diagnosis.hpp:47
uint32_t inode
Definition: diagnosis.hpp:80
const int FIN_WAIT1
Definition: diagnosis.hpp:43
const int UNKNOWN
Definition: diagnosis.hpp:39
const int LISTEN
Definition: diagnosis.hpp:49
int family
Definition: diagnosis.hpp:78
const int TIME_WAIT
Definition: diagnosis.hpp:45
const int FIN_WAIT2
Definition: diagnosis.hpp:44
Option< uint16_t > sourcePort
Definition: diagnosis.hpp:87
Definition: diagnosis.hpp:30
Info(int _family, int _state, uint32_t _inode, const Option< uint16_t > &_sourcePort, const Option< uint16_t > &_destinationPort, const Option< net::IP > &_sourceIP, const Option< net::IP > &_destinationIP, const Option< struct tcp_info > &_tcpInfo)
Definition: diagnosis.hpp:61
const int MAX
Definition: diagnosis.hpp:51
int state
Definition: diagnosis.hpp:79
const int SYN_RECV
Definition: diagnosis.hpp:42
Try< Netlink< struct nl_sock > > socket(int protocol=NETLINK_ROUTE)
Definition: internal.hpp:91
const int CLOSE
Definition: diagnosis.hpp:46
Option< uint16_t > destinationPort
Definition: diagnosis.hpp:88
Option< struct tcp_info > tcpInfo
Definition: diagnosis.hpp:94