Skip to content

Commit 424ea56

Browse files
authored
Update picosocks.c
Add a comment explaining motivation for #ifdef IP_SENDSRCADDR
1 parent b5d185c commit 424ea56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

picoquic/picosocks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ void picoquic_socks_cmsg_format(
645645
}
646646
#else
647647
/* The IP_PKTINFO structure is not defined on BSD */
648+
/* Some versions of freeBSD do not define IP_SENDSRCADDR, use IP_RECVDSTADDR instead. */
648649
struct in_addr* pktinfo = (struct in_addr*)cmsg_format_header_return_data_ptr(msg, &last_cmsg,
649650
&control_length, IPPROTO_IP,
650651
#ifdef IP_SENDSRCADDR

0 commit comments

Comments
 (0)