HomeFreeBSD

traceroute6: fix capabilities for the rcv socket

Description

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@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36878

(cherry picked from commit 8ff4fc03e6933dd69f99a8f34f2aa0760300f248)

Details

Provenance
tuexenAuthored on Oct 4 2022, 9:34 PM
Differential Revision
D36878: Fix traceroute6
Parents
rGcd4974672ad3: tcp: improve handling of SYN-ACK segments in TIMEWAIT state
Branches
Unknown
Tags
Unknown