aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/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
commit5a6d43eb15b537e525d724c9fb3400031ae14c70 (patch)
tree2824757f1016582eb74fc83bf06989b142cb627b /src/tools/showconf.c
parentmain: add `wg` type alias (diff)
downloadwireguard-monolithic-historical-5a6d43eb15b537e525d724c9fb3400031ae14c70.tar.xz
wireguard-monolithic-historical-5a6d43eb15b537e525d724c9fb3400031ae14c70.zip
socket: enable setting of fwmark
Diffstat (limited to 'src/tools/showconf.c')
-rw-r--r--src/tools/showconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/showconf.c b/src/tools/showconf.c
index d2f36e0..585b08d 100644
--- a/src/tools/showconf.c
+++ b/src/tools/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);