From 955ac53d91c93e80a7dfc423c5d0d534aaa56484 Mon Sep 17 00:00:00 2001 From: oki Date: Fri, 27 Jun 2003 16:24:32 +0000 Subject: [PATCH] Put correct dest ether address on PPPoE server mode. --- sys/net/if_pppoe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c index f287d363d62d..696a30fb0e68 100644 --- a/sys/net/if_pppoe.c +++ b/sys/net/if_pppoe.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_pppoe.c,v 1.43 2003/06/18 08:12:51 oki Exp $ */ +/* $NetBSD: if_pppoe.c,v 1.44 2003/06/27 16:24:32 oki Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.43 2003/06/18 08:12:51 oki Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.44 2003/06/27 16:24:32 oki Exp $"); #include "pppoe.h" #include "bpfilter.h" @@ -559,6 +559,7 @@ breakbreak:; sc->sc_hunique_len = hunique_len; memcpy(sc->sc_hunique, hunique, hunique_len); } + memcpy(&sc->sc_dest, eh->ether_shost, sizeof sc->sc_dest); sc->sc_state = PPPOE_STATE_PADO_SENT; pppoe_send_pado(sc); break;