/* * netlink/idiag/idiagnl.h Inetdiag Netlink * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation version 2.1 * of the License. * * Copyright (c) 2013 Sassano Systems LLC */ #ifndef NETLINK_IDIAGNL_H_ #define NETLINK_IDIAGNL_H_ #include #ifdef __cplusplus extern "C" { #endif /** * Inet Diag message types */ #define IDIAG_TCPDIAG_GETSOCK 18 #define IDIAG_DCCPDIAG_GETSOCK 19 #define IDIAG_GETSOCK_MAX 24 /** * Socket state identifiers * @ingroup idiag */ enum { IDIAG_SS_UNKNOWN, IDIAG_SS_ESTABLISHED, IDIAG_SS_SYN_SENT, IDIAG_SS_SYN_RECV, IDIAG_SS_FIN_WAIT1, IDIAG_SS_FIN_WAIT2, IDIAG_SS_TIME_WAIT, IDIAG_SS_CLOSE, IDIAG_SS_CLOSE_WAIT, IDIAG_SS_LAST_ACK, IDIAG_SS_LISTEN, IDIAG_SS_CLOSING, IDIAG_SS_MAX }; /** * Macro to represent all socket states. * @ingroup idiag */ #define IDIAG_SS_ALL ((1<