Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dist/pf/net remove args from ip_randomid() (John D. Bake...



details:   https://anonhg.NetBSD.org/src/rev/6a285c9f390c
branches:  trunk
changeset: 960175:6a285c9f390c
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 10 15:21:11 2021 +0000

description:
remove args from ip_randomid() (John D. Baker). When does this file get built?

diffstat:

 sys/dist/pf/net/if_pfsync.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3caea1d4358d -r 6a285c9f390c sys/dist/pf/net/if_pfsync.c
--- a/sys/dist/pf/net/if_pfsync.c       Wed Mar 10 15:05:11 2021 +0000
+++ b/sys/dist/pf/net/if_pfsync.c       Wed Mar 10 15:21:11 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_pfsync.c,v 1.20 2020/01/29 05:52:27 thorpej Exp $   */
+/*     $NetBSD: if_pfsync.c,v 1.21 2021/03/10 15:21:11 christos Exp $  */
 /*     $OpenBSD: if_pfsync.c,v 1.83 2007/06/26 14:44:12 mcbride Exp $  */
 
 /*
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pfsync.c,v 1.20 2020/01/29 05:52:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pfsync.c,v 1.21 2021/03/10 15:21:11 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1587,7 +1587,7 @@
                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;



Home | Main Index | Thread Index | Old Index