#
0fc7bdc9 |
| 29-Nov-2024 |
Richard Scheffenegger <rscheff@FreeBSD.org> |
tcp: extend the use of the th_flags accessor function
Formally, there are 12 bits for TCP header flags. Use the accessor functions in more (kernel) places.
No functional change.
Reviewed By: cc, #
tcp: extend the use of the th_flags accessor function
Formally, there are 12 bits for TCP header flags. Use the accessor functions in more (kernel) places.
No functional change.
Reviewed By: cc, #transport, cy, glebius, #iflib, kbowling Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D47063
show more ...
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
ba09352b |
| 05-Nov-2023 |
Jose Luis Duran <jlduran@gmail.com> |
traceroute: Standardize usage
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/901
|
#
00aa6353 |
| 05-Nov-2023 |
Jose Luis Duran <jlduran@gmail.com> |
traceroute: Update values in examples
Standardize the documentation and update it to reflect the current values.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/901
|
#
0a49be72 |
| 02-Feb-2024 |
Lexi Winter <lexi@le-Fay.ORG> |
traceroute6: remove -l flag
The -l flag was used to tell traceroute6(8) to show both hostname and address for each hop. However, traceroute(8) already does this by default, and there's no reason fo
traceroute6: remove -l flag
The -l flag was used to tell traceroute6(8) to show both hostname and address for each hop. However, traceroute(8) already does this by default, and there's no reason for traceroute6 to behave differently.
Make this the default behaviour, and accept -l for backward compatibility as a no-op flag.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1023
show more ...
|
#
0c2218d1 |
| 28-Oct-2023 |
Jose Luis Duran <jlduran@gmail.com> |
traceroute6: Implement ECN bleaching detection
Explicit Congestion Notification (ECN) is a mechanism that allows end-to-end notification of network congestion without dropping packets by explicitly
traceroute6: Implement ECN bleaching detection
Explicit Congestion Notification (ECN) is a mechanism that allows end-to-end notification of network congestion without dropping packets by explicitly setting the ECN code point (2 bits).
Per RFC 8087, section 3.5, network devices should not be configured to change the ECN code point in the packets that they forward, except to set the CE (Congestion Experienced) code point ('11') to signal incipient congestion.
The current commit adds an -E flag to traceroute6 that crafts a packet with an ECT(1) code point ('01').
If the packet is received back with a zero ECN code point ('00'), it outputs that the hop in question erases or "bleaches" the ECN code point values. Bleaching may occur for various reasons (including normalizing packets to hide which equipment supports ECN). This policy prevents the use of ECN by applications.
If the packet is received back with an all-ones ECN code point ('11'), it outputs that the hop in question is experiencing "congestion".
If the packet is received back with a different ECN code point ('10'), it outputs that the hop in question changes or "mangles" the ECN code point values.
If the packet is received with the same ECN code point that was sent ('01'), it outputs that the hop has "passed" the ECN bits appropriately.
Inspired by: Darwin Reviewed by: imp, markj MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/879
show more ...
|
#
777e494a |
| 28-Oct-2023 |
Jose Luis Duran <jlduran@gmail.com> |
traceroute6: style(9) fixes
No functional change intended.
Reviewed by: imp, markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/879
|
#
0b8224d1 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
#
8a7b6120 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a p
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
#
eba230af |
| 25-Sep-2023 |
John Baldwin <jhb@FreeBSD.org> |
Purge more stray embedded $FreeBSD$ strings
These do not use __FBSDID but instead use bare char arrays.
Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
8ff4fc03 |
| 04-Oct-2022 |
Michael Tuexen <tuexen@FreeBSD.org> |
traceroute6: fix capabilities for the rcv socket
On the receive socket, recvmsg() and poll()/select() is called. Therefore, CAP_EVENT is needed in addition to CAP_RECV..
While there, check the sock
traceroute6: fix capabilities for the rcv socket
On the receive socket, recvmsg() and poll()/select() is called. Therefore, CAP_EVENT is needed in addition to CAP_RECV..
While there, check the socket for readbility before calling recvmsg().
Reviewed by: markj@ MFC after: 3 days Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D36878
show more ...
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
1d712c05 |
| 03-May-2021 |
Zhenlei Huang <zlei.huang@gmail.com> |
traceroute6: Properly calculate UDP checksum
The revision D25604 capsicumize traceroute6. For UDP the send socket was changed from SOCK_DGRAM to SOCK_RAW and thus the UDP checksum need be calculated
traceroute6: Properly calculate UDP checksum
The revision D25604 capsicumize traceroute6. For UDP the send socket was changed from SOCK_DGRAM to SOCK_RAW and thus the UDP checksum need be calculated by application itself other than the kernel.
outpacket is filled with zeros by line 707, thus the first round the UDP checksum is correct. But subsequent rounds outudp->uh_sum will be left with garbage.
PR: 255507 Reviewed by: ae, markj, tuexen MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D30042
show more ...
|
Revision tags: release/13.0.0 |
|
#
b8ae450f |
| 01-Apr-2021 |
Mark Johnston <markj@FreeBSD.org> |
traceroute6: Fix Capsicum rights for rcvsock
- Always use distinct sockets for send and recv - Limit rights on the recv socket
For ICMP6 we were using the same socket for both send and receive, and
traceroute6: Fix Capsicum rights for rcvsock
- Always use distinct sockets for send and recv - Limit rights on the recv socket
For ICMP6 we were using the same socket for both send and receive, and we limited rights on the socket such that it's impossible to receive anything.
PR: 254623 Diagnosed by: Zhenlei Huang <zlei.huang@gmail.com> Reviewed by: oshogbo MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D29523
show more ...
|
Revision tags: release/12.2.0 |
|
#
5c3bf25f |
| 14-Oct-2020 |
Adrian Chadd <adrian@FreeBSD.org> |
[traceroute6] Don't do the casper bits when we're not doing casper
This with the previous patch I committed makes traceroute6/traceroute compile fine when libcasper isn't enabled.
This complains st
[traceroute6] Don't do the casper bits when we're not doing casper
This with the previous patch I committed makes traceroute6/traceroute compile fine when libcasper isn't enabled.
This complains strongly with unused variables and such when compiled with gcc-6 on mips32.
Tested:
* compiled/run on mips32 hardware (AR9344)
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D26773
show more ...
|
#
c7090651 |
| 13-Sep-2020 |
Michael Tuexen <tuexen@FreeBSD.org> |
Add a -t option to traceroute6 to control the traffic class used when sending probe packets.
Reviewed by: rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://revi
Add a -t option to traceroute6 to control the traffic class used when sending probe packets.
Reviewed by: rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D26410
show more ...
|
#
3303e9bc |
| 12-Sep-2020 |
Michael Tuexen <tuexen@FreeBSD.org> |
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
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.
show more ...
|
#
2d0fb1b3 |
| 12-Sep-2020 |
Michael Tuexen <tuexen@FreeBSD.org> |
Simplify code, no functional change.
Since https://svnweb.freebsd.org/base?view=revision&revision=365378 UDP is handled the same way as SCTP and TCP (using a raw socket). Therefore use the same code
Simplify code, no functional change.
Since https://svnweb.freebsd.org/base?view=revision&revision=365378 UDP is handled the same way as SCTP and TCP (using a raw socket). Therefore use the same code path.
show more ...
|
#
cc432e23 |
| 06-Sep-2020 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
traceroute6: capsicumize it
Submitted by: Shubh Gupta <shubh@freebsd.org> Sponsored by: Google (GSOC 2020) Differential Revision: https://reviews.freebsd.org/D25604
|
#
c7aa572c |
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
ca19d0d7 |
| 21-Jul-2020 |
Mark Johnston <markj@FreeBSD.org> |
traceroute6: Fix most warnings at the default WARNS level.
Fix some style issues as well. Leave -Wno-cast-aligned set for now, as most of the warnings come casts of CMSG_DATA(), which does provide
traceroute6: Fix most warnings at the default WARNS level.
Fix some style issues as well. Leave -Wno-cast-aligned set for now, as most of the warnings come casts of CMSG_DATA(), which does provide sufficient alignment in practice.
Submitted by: Shubh Gupta <shubh@freebsd.org> Sponsored by: Google (GSOC 2020) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25603
show more ...
|
Revision tags: release/11.4.0, release/12.1.0 |
|
#
a63915c2 |
| 28-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @r350386
Sponsored by: The FreeBSD Foundation
|
#
af58a3c6 |
| 22-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
Remove the USE_RFC2292BIS option and reap dead code
This option was imported as part of the KAME project in r62627 (in 2000). It was turned on unconditionally in r121472 (in 2003) and has been on ev
Remove the USE_RFC2292BIS option and reap dead code
This option was imported as part of the KAME project in r62627 (in 2000). It was turned on unconditionally in r121472 (in 2003) and has been on ever since. The old alternative code has bitrotted. Reap the dead code.
Reported by: Ján Sučan <jansucan@gmail.com> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20938
show more ...
|
#
1f69b3fb |
| 16-Jul-2019 |
Michael Tuexen <tuexen@FreeBSD.org> |
Add support for ICMPv6 messages indicating a parameter problem related to an unrecognized next header.
MFC after: 2 weeks
|
#
64694fdc |
| 16-Jul-2019 |
Michael Tuexen <tuexen@FreeBSD.org> |
Let packet_op() explicitly return the type and code instead of doing this implicitly by encoding it in a number space.
No functional change intended.
This is done as a preparation to add support fo
Let packet_op() explicitly return the type and code instead of doing this implicitly by encoding it in a number space.
No functional change intended.
This is done as a preparation to add support for ICMPv6 mesages indicating a parameter problem related to the next header.
MFC after: 2 weeks
show more ...
|
#
83c022b5 |
| 16-Jul-2019 |
Michael Tuexen <tuexen@FreeBSD.org> |
Whitespace change. No functional change.
MFC after: 2 weeks
|
Revision tags: release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
51eff8ef |
| 27-Jan-2018 |
Michael Tuexen <tuexen@FreeBSD.org> |
When using SCTP for sending probe packets, use INIT chunks for payloads larger than or equal to 32 bytes. For smaller probe packets, keep using SHUTDOWN-ACK chunks, possibly bundled with a PAD chunk.
When using SCTP for sending probe packets, use INIT chunks for payloads larger than or equal to 32 bytes. For smaller probe packets, keep using SHUTDOWN-ACK chunks, possibly bundled with a PAD chunk. Packets with INIT chunks more likely pass through firewalls. Therefore, use them when possible.
MFC after: 1 week
show more ...
|