diff options
author | glebius <glebius@FreeBSD.org> | 2005-04-13 21:05:55 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-04-13 21:05:55 +0000 |
commit | 70458efe87df66f05edce713f0da0dfe05a19a38 (patch) | |
tree | 3a7ea85bab47b3e18cba0a5264340fe8ddea50f7 /sys/contrib | |
parent | c7fefa410d541d7c97359e2acd21eb5dc9d95c01 (diff) | |
download | FreeBSD-src-70458efe87df66f05edce713f0da0dfe05a19a38.zip FreeBSD-src-70458efe87df66f05edce713f0da0dfe05a19a38.tar.gz |
Fix mss byte order, only affects synproxy code path.
Submitted by: John L. Scarfone via OpenBSD
Reviewed by: mlaier
Obtained from: OpenBSD, rev. 1.483
MFC after: 2 days
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/pf/net/pf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index d71a435..3ad4247 100644 --- a/sys/contrib/pf/net/pf.c +++ b/sys/contrib/pf/net/pf.c @@ -1,6 +1,7 @@ /* $FreeBSD$ */ /* $OpenBSD: pf.c,v 1.433.2.2 2004/07/17 03:22:34 brad Exp $ */ /* add $OpenBSD: pf.c,v 1.448 2004/05/11 07:34:11 dhartmei Exp $ */ +/* add $OpenBSD: pf.c,v 1.483 2005/03/15 17:38:43 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2588,6 +2589,7 @@ pf_get_mss(struct mbuf *m, int off, u_int16_t th_off, sa_family_t af) break; case TCPOPT_MAXSEG: bcopy((caddr_t)(opt + 2), (caddr_t)&mss, 2); + NTOHS(mss); /* FALLTHROUGH */ default: optlen = opt[1]; |