diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-11-28 23:39:46 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-11-28 23:39:46 +0000 |
commit | 21bc148fb19bda21c314e0e1f9b34eac9a13cc8a (patch) | |
tree | a94aa3b32a2e9452fd7636a18a0d69f0b47c8525 /sys/dev/pci | |
parent | 9b02e944d8a1968fe39ff654b9f987ed838daed2 (diff) |
In kernel pppoe client, a simple IPv4 only implementation.
Initial porting from NetBSD by David Berghoff.
Modified/simplified to match our sppp implementation.
ok deraadt@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_lmc.c | 3 | ||||
-rw-r--r-- | sys/dev/pci/if_san_obsd.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c index f974de08dc9..6399154f598 100644 --- a/sys/dev/pci/if_lmc.c +++ b/sys/dev/pci/if_lmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lmc.c,v 1.17 2004/05/12 06:35:11 tedu Exp $ */ +/* $OpenBSD: if_lmc.c,v 1.18 2004/11/28 23:39:45 canacar Exp $ */ /* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */ /*- @@ -1451,6 +1451,7 @@ lmc_attach(lmc_softc_t * const sc) #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) sppp_attach((struct ifnet *)&sc->lmc_sppp); sc->lmc_sppp.pp_flags = PP_CISCO | PP_KEEPALIVE; + sc->lmc_sppp.pp_framebytes = 3; #endif #if defined(__bsdi__) sc->lmc_p2pcom.p2p_mdmctl = lmc_mdmctl; diff --git a/sys/dev/pci/if_san_obsd.c b/sys/dev/pci/if_san_obsd.c index 39f5f467ca9..f7163eed26a 100644 --- a/sys/dev/pci/if_san_obsd.c +++ b/sys/dev/pci/if_san_obsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_obsd.c,v 1.4 2004/07/16 15:11:45 alex Exp $ */ +/* $OpenBSD: if_san_obsd.c,v 1.5 2004/11/28 23:39:45 canacar Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -126,6 +126,7 @@ wanpipe_generic_register(sdla_t *card, struct ifnet *ifp, char *ifname) ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST; ((struct sppp *)ifp)->pp_flags |= PP_CISCO; ((struct sppp *)ifp)->pp_flags |= PP_KEEPALIVE; + ((struct sppp *)ifp)->pp_framebytes = 3; ifp->if_ioctl = wanpipe_generic_ioctl; /* Will set from new_if() */ ifp->if_start = wanpipe_generic_start; ifp->if_watchdog = wanpipe_generic_watchdog; |