From 0fba2a00af50ff8d46f3ad432877281e20797a30 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 24 Apr 2001 05:02:35 +0000 Subject: 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 and Brian Somers for finding this. --- usr.sbin/pppoe/pppoe.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 */ -- cgit v1.2.3