}
static const struct sock_xinfo_class unix_xinfo_class = {
- .class = "unix",
.get_name = unix_get_name,
.get_type = unix_get_type,
.get_state = unix_get_state,
define_fill_column_func(tcp, TCP)
static const struct sock_xinfo_class tcp_xinfo_class = {
- .class = "tcp",
.get_name = tcp_get_name,
.get_type = tcp_get_type,
.get_state = tcp_get_state,
define_fill_column_func(udp, UDP)
static const struct sock_xinfo_class udp_xinfo_class = {
- .class = "udp",
.get_name = udp_get_name,
.get_type = udp_get_type,
.get_state = tcp_get_state,
};
struct sock_xinfo_class {
- const char *class;
/* Methods for filling socket related columns */
char * (*get_name)(struct sock_xinfo *, struct sock *);
char * (*get_type)(struct sock_xinfo *, struct sock *);