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 htons, it is pointless (thanks joerg@)
details: https://anonhg.NetBSD.org/src/rev/99d216c48d3b
branches: trunk
changeset: 953487:99d216c48d3b
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 10 22:18:17 2021 +0000
description:
remove htons, it is pointless (thanks joerg@)
diffstat:
sys/dist/pf/net/if_pfsync.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f4de318c26dd -r 99d216c48d3b sys/dist/pf/net/if_pfsync.c
--- a/sys/dist/pf/net/if_pfsync.c Wed Mar 10 21:36:29 2021 +0000
+++ b/sys/dist/pf/net/if_pfsync.c Wed Mar 10 22:18:17 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pfsync.c,v 1.21 2021/03/10 15:21:11 christos Exp $ */
+/* $NetBSD: if_pfsync.c,v 1.22 2021/03/10 22:18:17 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.21 2021/03/10 15:21:11 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pfsync.c,v 1.22 2021/03/10 22:18:17 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->ip_id = 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