aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_nat.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-03-21 08:36:15 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-03-21 08:36:15 +0000
commit5aedfa32a464c7431c4b0b60b3db3d860cd8a5c0 (patch)
treea4cbdc9310fa718c7fbf251e9aa2e34680ae2ef2 /sys/netgraph/ng_nat.h
parent7db07e1c85221696eca3f5afd4a2fe59f2d8af36 (diff)
Notes
Diffstat (limited to 'sys/netgraph/ng_nat.h')
-rw-r--r--sys/netgraph/ng_nat.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/netgraph/ng_nat.h b/sys/netgraph/ng_nat.h
index 86cc17e774ac..1b929e094137 100644
--- a/sys/netgraph/ng_nat.h
+++ b/sys/netgraph/ng_nat.h
@@ -172,6 +172,33 @@ struct ng_nat_list_redirects {
{ NULL } \
}
+/* Structure returned by NGM_NAT_LIBALIAS_INFO */
+struct ng_nat_libalias_info {
+ uint32_t icmpLinkCount;
+ uint32_t udpLinkCount;
+ uint32_t tcpLinkCount;
+ uint32_t sctpLinkCount;
+ uint32_t pptpLinkCount;
+ uint32_t protoLinkCount;
+ uint32_t fragmentIdLinkCount;
+ uint32_t fragmentPtrLinkCount;
+ uint32_t sockCount;
+};
+
+/* Keep this in sync with the above structure definition */
+#define NG_NAT_LIBALIAS_INFO { \
+ { "icmpLinkCount", &ng_parse_uint32_type }, \
+ { "udpLinkCount", &ng_parse_uint32_type }, \
+ { "tcpLinkCount", &ng_parse_uint32_type }, \
+ { "sctpLinkCount", &ng_parse_uint32_type }, \
+ { "pptpLinkCount", &ng_parse_uint32_type }, \
+ { "protoLinkCount", &ng_parse_uint32_type }, \
+ { "fragmentIdLinkCount", &ng_parse_uint32_type }, \
+ { "fragmentPtrLinkCount", &ng_parse_uint32_type }, \
+ { "sockCount", &ng_parse_uint32_type }, \
+ { NULL } \
+}
+
enum {
NGM_NAT_SET_IPADDR = 1,
NGM_NAT_SET_MODE,
@@ -184,4 +211,5 @@ enum {
NGM_NAT_ADD_SERVER,
NGM_NAT_LIST_REDIRECTS,
NGM_NAT_PROXY_RULE,
+ NGM_NAT_LIBALIAS_INFO,
};