diff options
author | 2015-07-16 16:12:15 +0000 | |
---|---|---|
committer | 2015-07-16 16:12:15 +0000 | |
commit | faf7e06f4ddc0c796995d3c37a980e052affb2e4 (patch) | |
tree | b2466a6baeb1bd2cb378be488b3ec3972d0f77c4 /sys/net/pf_osfp.c | |
parent | double word fix. (diff) | |
download | wireguard-openbsd-faf7e06f4ddc0c796995d3c37a980e052affb2e4.tar.xz wireguard-openbsd-faf7e06f4ddc0c796995d3c37a980e052affb2e4.zip |
Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.
ok guenther@, henning@
Diffstat (limited to 'sys/net/pf_osfp.c')
-rw-r--r-- | sys/net/pf_osfp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_osfp.c b/sys/net/pf_osfp.c index 366452be629..5fe6ca587eb 100644 --- a/sys/net/pf_osfp.c +++ b/sys/net/pf_osfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_osfp.c,v 1.29 2014/07/22 11:06:10 mpi Exp $ */ +/* $OpenBSD: pf_osfp.c,v 1.30 2015/07/16 16:12:15 mpi Exp $ */ /* * Copyright (c) 2003 Mike Frantzen <frantzen@w4g.org> @@ -200,7 +200,7 @@ pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, sizeof(fp.fp_mss)); fp.fp_tcpopts = (fp.fp_tcpopts << PF_OSFP_TCPOPT_BITS) | PF_OSFP_TCPOPT_MSS; - NTOHS(fp.fp_mss); + fp.fp_mss = ntohs(fp.fp_mss); break; case TCPOPT_WINDOW: if (optlen >= TCPOLEN_WINDOW) |