mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
o add patch to fix problem with icmp header type control message
PR: ports/84018 Submitted by: Louis Mamakos <louie@transsys.com>
This commit is contained in:
parent
795e596864
commit
3b5a53ccb2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140138
1 changed files with 14 additions and 0 deletions
14
net/apinger/files/patch-src_icmp.c
Normal file
14
net/apinger/files/patch-src_icmp.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
$FreeBSD$
|
||||
|
||||
--- src/icmp.c.orig
|
||||
+++ src/icmp.c
|
||||
@@ -197,7 +197,7 @@
|
||||
debug("checking CMSG...");
|
||||
for (c = CMSG_FIRSTHDR(&msg); c; c = CMSG_NXTHDR(&msg, c)) {
|
||||
debug("CMSG level: %i type: %i",c->cmsg_level,c->cmsg_type);
|
||||
- if (c->cmsg_level != SOL_SOCKET || c->cmsg_type != SO_TIMESTAMP)
|
||||
+ if (c->cmsg_level != SOL_SOCKET || c->cmsg_type != SCM_TIMESTAMP)
|
||||
continue;
|
||||
if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval)))
|
||||
continue;
|
Loading…
Add table
Reference in a new issue