diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2020-09-12 11:19:54 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2020-09-12 11:19:54 +0000 |
commit | 2d0fb1b3c1893677e8cfced33c5691cf989e8125 (patch) | |
tree | 7b53922631edd7138e8654c1aad3cf95cdc4f733 /usr.sbin | |
parent | 3966af52f397d6acbf38129c5febd6a6a5ebe361 (diff) | |
download | src-test2-2d0fb1b3c1893677e8cfced33c5691cf989e8125.tar.gz src-test2-2d0fb1b3c1893677e8cfced33c5691cf989e8125.zip |
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/traceroute6/traceroute6.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index 182ab44221f5..ae31491f0e17 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -568,15 +568,10 @@ main(int argc, char *argv[]) case IPPROTO_ICMPV6: sndsock = rcvsock; break; - case IPPROTO_UDP: - if ((sndsock = socket(AF_INET6, SOCK_RAW, IPPROTO_UDP)) < 0) { - perror("socket(SOCK_RAW)"); - exit(5); - } - break; case IPPROTO_NONE: case IPPROTO_SCTP: case IPPROTO_TCP: + case IPPROTO_UDP: if ((sndsock = socket(AF_INET6, SOCK_RAW, useproto)) < 0) { perror("socket(SOCK_RAW)"); exit(5); |