From 74bdf79be019c6f33bbebffb3f3dcb3611adbe64 Mon Sep 17 00:00:00 2001 From: lemoer Date: Thu, 9 Jan 2020 21:02:00 +0100 Subject: [PATCH] gluon-neighbour-info: use default port 1001 and default dest ::1 --- package/gluon-neighbour-info/src/gluon-neighbour-info.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/gluon-neighbour-info/src/gluon-neighbour-info.c b/package/gluon-neighbour-info/src/gluon-neighbour-info.c index 24237bfe..6e255d87 100644 --- a/package/gluon-neighbour-info/src/gluon-neighbour-info.c +++ b/package/gluon-neighbour-info/src/gluon-neighbour-info.c @@ -37,8 +37,8 @@ void usage() { puts("Usage: gluon-neighbour-info [-h] [-s] [-l] [-c ] [-t ] -d -p -i -r "); - puts(" -p UDP port"); - puts(" -d destination address (unicast ip6 or multicast group, e.g. ff02:0:0:0:0:0:2:1001)"); + puts(" -p UDP port (default: 1001)"); + puts(" -d destination address (unicast ip6 or multicast group, e.g. ff02:0:0:0:0:0:2:1001, default: ::1)"); puts(" -i interface, e.g. eth0 "); puts(" -r request, e.g. nodeinfo"); puts(" -t timeout in seconds (default: 3)"); @@ -144,6 +144,8 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } + client_addr.sin6_addr = in6addr_loopback; + client_addr.sin6_port = htons(1001); client_addr.sin6_family = AF_INET6; opterr = 0;