diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-04-24 05:02:35 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-04-24 05:02:35 +0000 |
commit | 0fba2a00af50ff8d46f3ad432877281e20797a30 (patch) | |
tree | 62cc465d26a8518c763a5c4eba4ec5f983584419 | |
parent | 856511aac4a5f083ac9a0f016430d27c10e5f3e2 (diff) |
PPPOE_MTU should be (ETHERMTU - sizeof(struct pppoe_header)) not two bytes
less. (This is the MTU between ppp and bpf, not to be confused with the link
negotiated ppp mtu). Many thanks to Russell T Hunt <alaric@MIT.EDU> and
Brian Somers <brian@Awfulhak.org> for finding this.
-rw-r--r-- | usr.sbin/pppoe/pppoe.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pppoe/pppoe.h b/usr.sbin/pppoe/pppoe.h index e8f8dacc3b0..7d5f5397eb6 100644 --- a/usr.sbin/pppoe/pppoe.h +++ b/usr.sbin/pppoe/pppoe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pppoe.h,v 1.1 2000/06/18 07:30:41 jason Exp $ */ +/* $OpenBSD: pppoe.h,v 1.2 2001/04/24 05:02:34 jason Exp $ */ /* * Copyright (c) 2000 Network Security Technologies, Inc. http://www.netsec.net @@ -49,7 +49,7 @@ struct pppoe_header { u_int16_t sessionid; /* PPPoE session id */ u_int16_t len; /* PPPoE payload length */ }; -#define PPPOE_MTU (ETHERMTU - sizeof(struct pppoe_header) - 2) +#define PPPOE_MTU (ETHERMTU - sizeof(struct pppoe_header)) #define PPPOE_VER_S 0 /* Version shift */ #define PPPOE_VER_M 0x0f /* Version mask */ |