diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-24 17:43:35 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-02-13 21:55:18 +0100 |
commit | 5a6d43eb15b537e525d724c9fb3400031ae14c70 (patch) | |
tree | 2824757f1016582eb74fc83bf06989b142cb627b /src/tools/showconf.c | |
parent | main: add `wg` type alias (diff) | |
download | wireguard-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.c | 4 |
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); |