diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-05-22 21:55:52 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-05-22 21:55:52 (GMT) |
commit | 337fbd24cad1f5cf9c8b4287a75f2c69f088adce (patch) | |
tree | 40f3ea255811869de12d15734e6f946f9d4d1c55 /include | |
parent | 2bac39401cde87ef944c1c1edd6dda3c8874dc56 (diff) | |
download | libnl-337fbd24cad1f5cf9c8b4287a75f2c69f088adce.zip libnl-337fbd24cad1f5cf9c8b4287a75f2c69f088adce.tar.gz libnl-337fbd24cad1f5cf9c8b4287a75f2c69f088adce.tar.bz2 |
Present port and icmp values in host byte order and beautify printing
This changes make nfnl_ct_get_src_port() and others return the value
in host byte order rather than in network byte order.
Also splits printing into details and statistical section and
improves readability.
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/netfilter/ct.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink/netfilter/ct.h b/include/netlink/netfilter/ct.h index e1f9386..c4402b3 100644 --- a/include/netlink/netfilter/ct.h +++ b/include/netlink/netfilter/ct.h @@ -66,6 +66,8 @@ extern int nfnl_ct_str2tcp_state(const char *name); extern void nfnl_ct_set_status(struct nfnl_ct *, uint32_t); extern void nfnl_ct_unset_status(struct nfnl_ct *, uint32_t); extern uint32_t nfnl_ct_get_status(const struct nfnl_ct *); +extern char * nfnl_ct_status2str(int, char *, size_t); +extern int nfnl_ct_str2status(const char *); extern void nfnl_ct_set_timeout(struct nfnl_ct *, uint32_t); extern int nfnl_ct_test_timeout(const struct nfnl_ct *); |