From 70458efe87df66f05edce713f0da0dfe05a19a38 Mon Sep 17 00:00:00 2001 From: glebius Date: Wed, 13 Apr 2005 21:05:55 +0000 Subject: [PATCH] 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 --- sys/contrib/pf/net/pf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index d71a43504e5d..3ad424760e48 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];