aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/showconf.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-01-24 17:43:35 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-02-13 21:55:18 +0100
commitc8472e2dabc5ee1e9080093fd2252e7987b7f81c (patch)
tree35ba288596910d6cb7d922c644f77dd6d9f7145f /src/showconf.c
parentsocket: general ephemeral ports instead of name-based ports (diff)
downloadwireguard-tools-c8472e2dabc5ee1e9080093fd2252e7987b7f81c.tar.xz
wireguard-tools-c8472e2dabc5ee1e9080093fd2252e7987b7f81c.zip
socket: enable setting of fwmark
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/showconf.c')
-rw-r--r--src/showconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/showconf.c b/src/showconf.c
index d2f36e0..585b08d 100644
--- a/src/showconf.c
+++ b/src/showconf.c
@@ -44,7 +44,9 @@ int showconf_main(int argc, char *argv[])
printf("[Interface]\n");
if (device->port)
- printf("ListenPort = %d\n", device->port);
+ printf("ListenPort = %u\n", device->port);
+ if (device->fwmark)
+ printf("FwMark = 0x%x\n", device->fwmark);
if (memcmp(device->private_key, zero, WG_KEY_LEN)) {
b64_ntop(device->private_key, WG_KEY_LEN, b64, b64_len(WG_KEY_LEN));
printf("PrivateKey = %s\n", b64);