summaryrefslogtreecommitdiff
path: root/sys/net/debugnet.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2019-10-17 20:10:32 +0000
committerConrad Meyer <cem@FreeBSD.org>2019-10-17 20:10:32 +0000
commitfde2cf65ce9bcc407bad46acad5fe16e93d16c52 (patch)
tree3e050e18d1598344acc8b6117b7bc1aecfad24b2 /sys/net/debugnet.h
parent757dbc72ef51fc699039402c4703dddb59a1a512 (diff)
Notes
Diffstat (limited to 'sys/net/debugnet.h')
-rw-r--r--sys/net/debugnet.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/debugnet.h b/sys/net/debugnet.h
index 772bc1b62466..53a9052f5529 100644
--- a/sys/net/debugnet.h
+++ b/sys/net/debugnet.h
@@ -176,11 +176,12 @@ void debugnet_any_ifnet_update(struct ifnet *);
/*
* DDB parsing helper for common debugnet options.
*
- * -s <server> [-g <gateway] -c <localip> -i <interface>
+ * -s <server> [-g <gateway -c <localip> -i <interface>]
*
* Order is not significant. Interface is an online interface that supports
* debugnet and can route to the debugnet server. The other parameters are all
- * IP addresses. For now, all parameters are mandatory, except gateway.
+ * IP addresses. Only the server parameter is required. The others are
+ * inferred automatically from the routing table, if not explicitly provided.
*
* Provides basic '-h' using provided 'cmd' string.
*
@@ -191,6 +192,7 @@ struct debugnet_ddb_config {
in_addr_t dd_client;
in_addr_t dd_server;
in_addr_t dd_gateway;
+ bool dd_has_client : 1;
bool dd_has_gateway : 1;
};
int debugnet_parse_ddb_cmd(const char *cmd,