mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the length of probe packets when using UDP.
Since https://svnweb.freebsd.org/changeset/base/365378 a raw socket is used for sending UDP probe packets instead of a UDP socket. So don't compensate for the UDP header anymore.
This commit is contained in:
parent
2d0fb1b3c1
commit
3303e9bc22
1 changed files with 0 additions and 2 deletions
|
|
@ -677,8 +677,6 @@ main(int argc, char *argv[])
|
|||
minlen, MAXPACKET);
|
||||
exit(1);
|
||||
}
|
||||
if (useproto == IPPROTO_UDP)
|
||||
datalen -= sizeof(struct udphdr);
|
||||
if ((useproto == IPPROTO_SCTP) && (datalen & 3)) {
|
||||
fprintf(stderr,
|
||||
"traceroute6: packet size must be a multiple of 4.\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue