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
This commit is contained in:
parent
c7fefa410d
commit
70458efe87
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user