libnl 3.7.0
|
Functions | |
struct idiagnl_msg * | idiagnl_msg_alloc (void) |
void | idiagnl_msg_get (struct idiagnl_msg *msg) |
void | idiagnl_msg_put (struct idiagnl_msg *msg) |
int | idiagnl_msg_parse (struct nlmsghdr *nlh, struct idiagnl_msg **result) |
Cache Management | |
int | idiagnl_msg_alloc_cache (struct nl_sock *sk, int family, int states, struct nl_cache **result) |
Build an inetdiag cache to hold socket state information. More... | |
Attributes | |
uint8_t | idiagnl_msg_get_family (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_family (struct idiagnl_msg *msg, uint8_t family) |
uint8_t | idiagnl_msg_get_state (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_state (struct idiagnl_msg *msg, uint8_t state) |
uint8_t | idiagnl_msg_get_timer (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_timer (struct idiagnl_msg *msg, uint8_t timer) |
uint8_t | idiagnl_msg_get_retrans (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_retrans (struct idiagnl_msg *msg, uint8_t retrans) |
uint16_t | idiagnl_msg_get_sport (struct idiagnl_msg *msg) |
void | idiagnl_msg_set_sport (struct idiagnl_msg *msg, uint16_t port) |
uint16_t | idiagnl_msg_get_dport (struct idiagnl_msg *msg) |
void | idiagnl_msg_set_dport (struct idiagnl_msg *msg, uint16_t port) |
struct nl_addr * | idiagnl_msg_get_src (const struct idiagnl_msg *msg) |
int | idiagnl_msg_set_src (struct idiagnl_msg *msg, struct nl_addr *addr) |
struct nl_addr * | idiagnl_msg_get_dst (const struct idiagnl_msg *msg) |
int | idiagnl_msg_set_dst (struct idiagnl_msg *msg, struct nl_addr *addr) |
uint32_t | idiagnl_msg_get_ifindex (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_ifindex (struct idiagnl_msg *msg, uint32_t ifindex) |
uint32_t | idiagnl_msg_get_expires (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_expires (struct idiagnl_msg *msg, uint32_t expires) |
uint32_t | idiagnl_msg_get_rqueue (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_rqueue (struct idiagnl_msg *msg, uint32_t rqueue) |
uint32_t | idiagnl_msg_get_wqueue (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_wqueue (struct idiagnl_msg *msg, uint32_t wqueue) |
uint32_t | idiagnl_msg_get_uid (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_uid (struct idiagnl_msg *msg, uint32_t uid) |
uint32_t | idiagnl_msg_get_inode (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_inode (struct idiagnl_msg *msg, uint32_t inode) |
uint8_t | idiagnl_msg_get_tos (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_tos (struct idiagnl_msg *msg, uint8_t tos) |
uint8_t | idiagnl_msg_get_tclass (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_tclass (struct idiagnl_msg *msg, uint8_t tclass) |
uint8_t | idiagnl_msg_get_shutdown (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_shutdown (struct idiagnl_msg *msg, uint8_t shutdown) |
char * | idiagnl_msg_get_cong (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_cong (struct idiagnl_msg *msg, char *cong) |
struct idiagnl_meminfo * | idiagnl_msg_get_meminfo (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_meminfo (struct idiagnl_msg *msg, struct idiagnl_meminfo *minfo) |
struct idiagnl_vegasinfo * | idiagnl_msg_get_vegasinfo (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_vegasinfo (struct idiagnl_msg *msg, struct idiagnl_vegasinfo *vinfo) |
struct tcp_info | idiagnl_msg_get_tcpinfo (const struct idiagnl_msg *msg) |
void | idiagnl_msg_set_tcpinfo (struct idiagnl_msg *msg, struct tcp_info *tinfo) |
Inet Diag Message Documentation (Netlink Inet Diag Development Guide)
struct idiagnl_msg * idiagnl_msg_alloc | ( | void | ) |
Definition at line 49 of file idiag_msg_obj.c.
void idiagnl_msg_get | ( | struct idiagnl_msg * | msg | ) |
Definition at line 54 of file idiag_msg_obj.c.
void idiagnl_msg_put | ( | struct idiagnl_msg * | msg | ) |
Definition at line 59 of file idiag_msg_obj.c.
int idiagnl_msg_alloc_cache | ( | struct nl_sock * | sk, |
int | family, | ||
int | states, | ||
struct nl_cache ** | result | ||
) |
Build an inetdiag cache to hold socket state information.
sk | Netlink socket |
family | The address family to query |
states | Socket states to query |
result | Result pointer |
Definition at line 139 of file idiag_msg_obj.c.
References nl_cache_alloc(), and nl_cache_refill().
uint8_t idiagnl_msg_get_family | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 167 of file idiag_msg_obj.c.
void idiagnl_msg_set_family | ( | struct idiagnl_msg * | msg, |
uint8_t | family | ||
) |
Definition at line 172 of file idiag_msg_obj.c.
uint8_t idiagnl_msg_get_state | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 178 of file idiag_msg_obj.c.
void idiagnl_msg_set_state | ( | struct idiagnl_msg * | msg, |
uint8_t | state | ||
) |
Definition at line 183 of file idiag_msg_obj.c.
uint8_t idiagnl_msg_get_timer | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 189 of file idiag_msg_obj.c.
void idiagnl_msg_set_timer | ( | struct idiagnl_msg * | msg, |
uint8_t | timer | ||
) |
Definition at line 194 of file idiag_msg_obj.c.
uint8_t idiagnl_msg_get_retrans | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 200 of file idiag_msg_obj.c.
void idiagnl_msg_set_retrans | ( | struct idiagnl_msg * | msg, |
uint8_t | retrans | ||
) |
Definition at line 205 of file idiag_msg_obj.c.
uint16_t idiagnl_msg_get_sport | ( | struct idiagnl_msg * | msg | ) |
Definition at line 211 of file idiag_msg_obj.c.
void idiagnl_msg_set_sport | ( | struct idiagnl_msg * | msg, |
uint16_t | port | ||
) |
Definition at line 216 of file idiag_msg_obj.c.
uint16_t idiagnl_msg_get_dport | ( | struct idiagnl_msg * | msg | ) |
Definition at line 222 of file idiag_msg_obj.c.
void idiagnl_msg_set_dport | ( | struct idiagnl_msg * | msg, |
uint16_t | port | ||
) |
Definition at line 227 of file idiag_msg_obj.c.
struct nl_addr * idiagnl_msg_get_src | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 233 of file idiag_msg_obj.c.
int idiagnl_msg_set_src | ( | struct idiagnl_msg * | msg, |
struct nl_addr * | addr | ||
) |
Definition at line 238 of file idiag_msg_obj.c.
struct nl_addr * idiagnl_msg_get_dst | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 250 of file idiag_msg_obj.c.
int idiagnl_msg_set_dst | ( | struct idiagnl_msg * | msg, |
struct nl_addr * | addr | ||
) |
Definition at line 255 of file idiag_msg_obj.c.
uint32_t idiagnl_msg_get_ifindex | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 267 of file idiag_msg_obj.c.
void idiagnl_msg_set_ifindex | ( | struct idiagnl_msg * | msg, |
uint32_t | ifindex | ||
) |
Definition at line 272 of file idiag_msg_obj.c.
uint32_t idiagnl_msg_get_expires | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 278 of file idiag_msg_obj.c.
void idiagnl_msg_set_expires | ( | struct idiagnl_msg * | msg, |
uint32_t | expires | ||
) |
Definition at line 283 of file idiag_msg_obj.c.
uint32_t idiagnl_msg_get_rqueue | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 289 of file idiag_msg_obj.c.
void idiagnl_msg_set_rqueue | ( | struct idiagnl_msg * | msg, |
uint32_t | rqueue | ||
) |
Definition at line 294 of file idiag_msg_obj.c.
uint32_t idiagnl_msg_get_wqueue | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 300 of file idiag_msg_obj.c.
void idiagnl_msg_set_wqueue | ( | struct idiagnl_msg * | msg, |
uint32_t | wqueue | ||
) |
Definition at line 305 of file idiag_msg_obj.c.
uint32_t idiagnl_msg_get_uid | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 311 of file idiag_msg_obj.c.
void idiagnl_msg_set_uid | ( | struct idiagnl_msg * | msg, |
uint32_t | uid | ||
) |
Definition at line 316 of file idiag_msg_obj.c.
uint32_t idiagnl_msg_get_inode | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 322 of file idiag_msg_obj.c.
void idiagnl_msg_set_inode | ( | struct idiagnl_msg * | msg, |
uint32_t | inode | ||
) |
Definition at line 327 of file idiag_msg_obj.c.
uint8_t idiagnl_msg_get_tos | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 333 of file idiag_msg_obj.c.
void idiagnl_msg_set_tos | ( | struct idiagnl_msg * | msg, |
uint8_t | tos | ||
) |
Definition at line 338 of file idiag_msg_obj.c.
uint8_t idiagnl_msg_get_tclass | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 344 of file idiag_msg_obj.c.
void idiagnl_msg_set_tclass | ( | struct idiagnl_msg * | msg, |
uint8_t | tclass | ||
) |
Definition at line 349 of file idiag_msg_obj.c.
uint8_t idiagnl_msg_get_shutdown | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 355 of file idiag_msg_obj.c.
void idiagnl_msg_set_shutdown | ( | struct idiagnl_msg * | msg, |
uint8_t | shutdown | ||
) |
Definition at line 360 of file idiag_msg_obj.c.
char * idiagnl_msg_get_cong | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 366 of file idiag_msg_obj.c.
void idiagnl_msg_set_cong | ( | struct idiagnl_msg * | msg, |
char * | cong | ||
) |
Definition at line 371 of file idiag_msg_obj.c.
struct idiagnl_meminfo * idiagnl_msg_get_meminfo | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 378 of file idiag_msg_obj.c.
void idiagnl_msg_set_meminfo | ( | struct idiagnl_msg * | msg, |
struct idiagnl_meminfo * | minfo | ||
) |
Definition at line 383 of file idiag_msg_obj.c.
struct idiagnl_vegasinfo * idiagnl_msg_get_vegasinfo | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 393 of file idiag_msg_obj.c.
void idiagnl_msg_set_vegasinfo | ( | struct idiagnl_msg * | msg, |
struct idiagnl_vegasinfo * | vinfo | ||
) |
Definition at line 398 of file idiag_msg_obj.c.
struct tcp_info idiagnl_msg_get_tcpinfo | ( | const struct idiagnl_msg * | msg | ) |
Definition at line 408 of file idiag_msg_obj.c.
void idiagnl_msg_set_tcpinfo | ( | struct idiagnl_msg * | msg, |
struct tcp_info * | tinfo | ||
) |
Definition at line 413 of file idiag_msg_obj.c.
int idiagnl_msg_parse | ( | struct nlmsghdr * | nlh, |
struct idiagnl_msg ** | result | ||
) |
Definition at line 681 of file idiag_msg_obj.c.