gluon-neighbour-info: use default port 1001 and default dest ::1
This commit is contained in:
parent
19e0f7959e
commit
74bdf79be0
@ -37,8 +37,8 @@
|
|||||||
|
|
||||||
void usage() {
|
void usage() {
|
||||||
puts("Usage: gluon-neighbour-info [-h] [-s] [-l] [-c <count>] [-t <sec>] -d <dest> -p <port> -i <if0> -r <request>");
|
puts("Usage: gluon-neighbour-info [-h] [-s] [-l] [-c <count>] [-t <sec>] -d <dest> -p <port> -i <if0> -r <request>");
|
||||||
puts(" -p <int> UDP port");
|
puts(" -p <int> UDP port (default: 1001)");
|
||||||
puts(" -d <ip6> destination address (unicast ip6 or multicast group, e.g. ff02:0:0:0:0:0:2:1001)");
|
puts(" -d <ip6> destination address (unicast ip6 or multicast group, e.g. ff02:0:0:0:0:0:2:1001, default: ::1)");
|
||||||
puts(" -i <string> interface, e.g. eth0 ");
|
puts(" -i <string> interface, e.g. eth0 ");
|
||||||
puts(" -r <string> request, e.g. nodeinfo");
|
puts(" -r <string> request, e.g. nodeinfo");
|
||||||
puts(" -t <sec> timeout in seconds (default: 3)");
|
puts(" -t <sec> timeout in seconds (default: 3)");
|
||||||
@ -144,6 +144,8 @@ int main(int argc, char **argv) {
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client_addr.sin6_addr = in6addr_loopback;
|
||||||
|
client_addr.sin6_port = htons(1001);
|
||||||
client_addr.sin6_family = AF_INET6;
|
client_addr.sin6_family = AF_INET6;
|
||||||
|
|
||||||
opterr = 0;
|
opterr = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user