From d77fdc1c71d7cdfd6c6a0f2d7129527c97bfd023 Mon Sep 17 00:00:00 2001 From: Logan007 Date: Sun, 20 Sep 2020 17:39:33 +0545 Subject: [PATCH] consolidated documentation on tap interface configuration --- src/edge.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/edge.c b/src/edge.c index 7d2efe4..633cdf9 100644 --- a/src/edge.c +++ b/src/edge.c @@ -108,9 +108,9 @@ static void help() { ); printf("edge " #if defined(N2N_CAN_NAME_IFACE) - "-d " + "-d " #endif /* #if defined(N2N_CAN_NAME_IFACE) */ - "-a [static:|dhcp:] " + "-a [static:|dhcp:] " "-c " "[-k ]\n" " " @@ -136,7 +136,7 @@ static void help() { "[-r] [-E] [-v] [-i ] [-L ] [-t ] [-A[]] [-H] [-z[]] [-h]\n\n"); #if defined(N2N_CAN_NAME_IFACE) - printf("-d | tun device name\n"); + printf("-d | tap device name\n"); #endif printf("-a | Set interface address. For DHCP use '-r -a dhcp:0.0.0.0'\n"); @@ -518,7 +518,7 @@ static const struct option long_options[] = { { "community", required_argument, NULL, 'c' }, { "supernode-list", required_argument, NULL, 'l' }, - { "tun-device", required_argument, NULL, 'd' }, + { "tap-device", required_argument, NULL, 'd' }, { "euid", required_argument, NULL, 'u' }, { "egid", required_argument, NULL, 'g' }, { "help" , no_argument, NULL, 'h' }, @@ -901,7 +901,7 @@ int main(int argc, char* argv[]) { if (tuntap_open(&tuntap, eee->tuntap_priv_conf.tuntap_dev_name, eee->tuntap_priv_conf.ip_mode, eee->tuntap_priv_conf.ip_addr, eee->tuntap_priv_conf.netmask, eee->tuntap_priv_conf.device_mac, eee->tuntap_priv_conf.mtu) < 0) exit(1); - traceEvent(TRACE_NORMAL, "Local tuntap IP: %s, Mask: %s", + traceEvent(TRACE_NORMAL, "Local tap IP: %s, Mask: %s", eee->tuntap_priv_conf.ip_addr, eee->tuntap_priv_conf.netmask); memcpy(&eee->device, &tuntap, sizeof(tuntap)); // hexdump((unsigned char*)&tuntap,sizeof(tuntap_dev));