From: dlg Date: Tue, 23 Feb 2021 11:44:53 +0000 (+0000) Subject: small adjustment of the deck chairs, no functional change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1dd176a53e5b1b3cafbebbf680c932a174d725f5;p=openbsd small adjustment of the deck chairs, no functional change. --- diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 3b526e6b74f..991f753fca8 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.c,v 1.350 2021/02/23 09:51:08 dlg Exp $ */ +/* $OpenBSD: if_bridge.c,v 1.351 2021/02/23 11:44:53 dlg Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -1555,7 +1555,7 @@ bridge_ipsec(struct ifnet *ifp, struct ether_header *eh, int hassnap, case IPPROTO_IPCOMP: m_copydata(m, hlen + sizeof(u_int16_t), sizeof(u_int16_t), (caddr_t)&cpi); - spi = ntohl(htons(cpi)); + spi = htonl(ntohs(cpi)); break; }