diff options
author | claudio <claudio@openbsd.org> | 2010-10-04 09:13:05 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2010-10-04 09:13:05 +0000 |
commit | e04b25de6bc063d1bcf211cf0b425ff3b2382a3f (patch) | |
tree | b346ff6e58b258afe5450d0d46e93e311bae6e04 /sys/net/pf_osfp.c | |
parent | Update the OpenBSD fingerprint to match against -current systems. (diff) | |
download | wireguard-openbsd-e04b25de6bc063d1bcf211cf0b425ff3b2382a3f.tar.xz wireguard-openbsd-e04b25de6bc063d1bcf211cf0b425ff3b2382a3f.zip |
fp_wscale is only a single byte so do not byteswap it. This makes os
fingerprinting on little endian systems work. People using the osfp
feature need to update /etc/pf.os or -current will be blocked.
OK deraadt@, jsg@, jsing@, millert@, sthen@
Diffstat (limited to 'sys/net/pf_osfp.c')
-rw-r--r-- | sys/net/pf_osfp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/pf_osfp.c b/sys/net/pf_osfp.c index 478369654ca..3d7b5af0010 100644 --- a/sys/net/pf_osfp.c +++ b/sys/net/pf_osfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_osfp.c,v 1.18 2010/07/13 12:56:06 henning Exp $ */ +/* $OpenBSD: pf_osfp.c,v 1.19 2010/10/04 09:13:05 claudio Exp $ */ /* * Copyright (c) 2003 Mike Frantzen <frantzen@w4g.org> @@ -209,7 +209,6 @@ pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const st if (optlen >= TCPOLEN_WINDOW) memcpy(&fp.fp_wscale, &optp[2], sizeof(fp.fp_wscale)); - NTOHS(fp.fp_wscale); fp.fp_tcpopts = (fp.fp_tcpopts << PF_OSFP_TCPOPT_BITS) | PF_OSFP_TCPOPT_WSCALE; |