diff options
author | 2001-04-24 05:04:51 +0000 | |
---|---|---|
committer | 2001-04-24 05:04:51 +0000 | |
commit | 15ad97ff890e3c5f24b8fc8c09d7ea8d88e1a505 (patch) | |
tree | 2194e05e6bc078877439ed804b65c90e3995a49b | |
parent | PPPOE_MTU should be (ETHERMTU - sizeof(struct pppoe_header)) not two bytes (diff) | |
download | wireguard-openbsd-15ad97ff890e3c5f24b8fc8c09d7ea8d88e1a505.tar.xz wireguard-openbsd-15ad97ff890e3c5f24b8fc8c09d7ea8d88e1a505.zip |
Remove unnecessary code; Russell T Hunt <alaric@MIT.EDU>.
-rw-r--r-- | usr.sbin/pppoe/common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/pppoe/common.c b/usr.sbin/pppoe/common.c index 9070effeb77..d49ab6ef516 100644 --- a/usr.sbin/pppoe/common.c +++ b/usr.sbin/pppoe/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.3 2001/03/09 03:24:09 deraadt Exp $ */ +/* $OpenBSD: common.c,v 1.4 2001/04/24 05:04:51 jason Exp $ */ /* * Copyright (c) 2000 Network Security Technologies, Inc. http://www.netsec.net @@ -174,9 +174,6 @@ ppp_to_bpf(bfd, pppfd, myea, rmea, id) return (-1); r -= 2; - iov[0].iov_len = 2; - iov[1].iov_len = r; - ph.vertype = PPPOE_VERTYPE(1, 1); ph.code = PPPOE_CODE_SESSION; ph.len = htons(r); |