Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ip_randomid() change vs. pfsync
For kernels including:
pseudo-device pfsync
the recent change to "ip_randomid()" has not been propagated to "if_pfsync.c"
causing build failure.
The following patch fixes things:
+Index: sys/dist/pf/net/if_pfsync.c
+===================================================================
+RCS file: /cvsroot/src/sys/dist/pf/net/if_pfsync.c,v
+retrieving revision 1.20
+diff -u -p -r1.20 if_pfsync.c
+--- sys/dist/pf/net/if_pfsync.c 29 Jan 2020 05:52:27 -0000 1.20
++++ sys/dist/pf/net/if_pfsync.c 9 Mar 2021 19:43:27 -0000
+@@ -1587,7 +1587,7 @@ pfsync_sendout_mbuf(struct pfsync_softc
+ ip->ip_hl = sizeof(*ip) >> 2;
+ ip->ip_tos = IPTOS_LOWDELAY;
+ ip->ip_len = htons(m->m_pkthdr.len);
+- ip->ip_id = htons(ip_randomid(ip_ids, 0));
++ ip->ip_id = htons(ip_randomid());
+ ip->ip_off = htons(IP_DF);
+ ip->ip_ttl = PFSYNC_DFLTTL;
+ ip->ip_p = IPPROTO_PFSYNC;
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index