summaryrefslogtreecommitdiff
path: root/sys/net/if_spppsubr.c
AgeCommit message (Collapse)Author
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-02-11Remove _KERNEL_OPT leftovers.Miod Vallat
2006-12-06Missing newline in printf.Bernd Ahlers
ok canacar@
2006-08-28Check for illegal option lengths when parsing LCP packetsCan Erkin Acar
and drop such bad packets. Also remove some redundant mallocs. This fixes possible heap overflows when forming replys to such bad packets as discovered by Martin Husemann and Pavel Cahyna. reported by NetBSD, initial diff from markus@, additional comments by claudio@, ok markus@
2006-07-11Only print link state changes if interface is in debug mode.Can Erkin Acar
Affects devices using the sppp layer (pppoe, art, san, lmc) ok deraadt@
2006-07-04logging should be in debug mode only. if every network driver did aTheo de Raadt
dmesg printf everytime they came up, would that be a better world?
2006-07-02diff from peter phillip at freenet dot de:Reyk Floeter
the "pppoe0: up" message is annoying when one is on console and the system has been configured to recall the ISP every minute or so. Moving the printf() to a log() fixes this and the "pppoe0: up" message is still seen in logs and dmesg. ok canacar@
2006-03-04With the exception of two other small uncommited diffs this movesBrad Smith
the remainder of the network stack from splimp to splnet. ok miod@
2006-02-24Another gem from the the-world-runs-on-i386 departement. Using u_long inClaudio Jeker
a packet format causes some troubles on 64bit archs. This fixes a sppp(4) panic I got on alpha and makes cisco HDLC mode actually work. More cleanup needs to be done post 3.9. OK brad@ looks good canacar@
2005-10-07Report interface link state changes in sppp layerCan Erkin Acar
Help and ok claudio@, ok brad@
2005-08-12Use actual packet contents when sending protocol rejects. Fixes PR 4305.Can Erkin Acar
Different fix tested by the submitter, xiangbo3 at gmail com. ok claudio@
2005-08-03prevent unaligned memory access when processing LCP echo packets,Can Erkin Acar
making pppoe(4) work on sparc64. Fixes PR-4311 Reported and fix tested by David Coppa < dcoppa at gmail com >
2005-06-08bye bye netns (and a few leftover DECNET bits while here)Henning Brauer
2005-05-13Fix for a panic experienced when authenticating a pppoe session on an amd64 ↵Brad Smith
system. From: i4b project via FreeBSD via Jason Ackley Fixes PR 4190 & 4196 ok canacar@
2005-04-24Fix cisco-mode check in lcp up/down.Can Erkin Acar
2005-04-11Ignore lcp up/down events in cisco modeCan Erkin Acar
2005-04-01do not mess with lcp if we are in cisco modeCan Erkin Acar
2005-03-24Unbreak tree, mono_time may no longer be used because of timecounters.Claudio Jeker
Use getmicrouptime() instead. Found by grange@ and henning@. OK henning@
2005-03-23Merge some sppp improvements from NetBSD:Can Erkin Acar
1. better timeout and keepalive handling 2. fix some memory leaks on error paths. 3. use arc4random instead of random 4. always send keepalives in cHDLC mode, from claudio@ Tested by Greg Mortensen (san) and jmc@ (pppoe), ok claudio@
2005-03-23Follow RFC and do not reset timeouts everytime sppp_cp_change_state()Can Erkin Acar
is called. Makes two sppp instances to handshake against each other. Tested by Greg Mortensen, ok claudio@
2004-12-10Run address change notification hooks when the interface address is updated.Christian Weisgerber
Notably, this fixes "(pppoe0)" in pf. ok markus@
2004-11-28In kernel pppoe client, a simple IPv4 only implementation.Can Erkin Acar
Initial porting from NetBSD by David Berghoff. Modified/simplified to match our sppp implementation. ok deraadt@
2004-07-16remove netiso shitz, millert okHenning Brauer
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
2004-06-22Don't use time-based random number generationThorsten Lockert
ok millert@ deraadt@
2004-05-07Replace RSA-derived md5 code with code derived from Colin Plumb's PD version.Todd C. Miller
This moves md5.c out of libkern and into sys/crypto where it belongs (as requested by markus@). Note that md5.c is still mandatory (dev/rnd.c uses it). Verified with IPsec + hmac-md5 and tcp md5sig. OK henning@ and hshoexer@
2004-04-25check for input queue congestion on those as well and call if_congestion whenHenning Brauer
needed; these are slightly different so that we cannot use the new IF_INPUT_ENQUEUE macro deraadt ok
2004-01-03put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macrosMarc Espie
to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
2003-05-06string cleaning; tedu okTheo de Raadt
2003-01-07remove the altq classifier code which is replaced by pf and no longer used.Kenjiro Cho
ok henning@, deraadt@
2002-09-26BSD-style license from Serge Vakulenko <vak@cronyx.ru>Chris Cappuccio
2002-09-11KNF - return is not a function.Jun-ichiro itojun Hagino
2002-03-12sync with KAMEKenjiro Cho
ALTQify more drivers. ok millert@
2001-12-27revision 1.12 lacks paren around && within || (gcc warns and compilation stops).Jun-ichiro itojun Hagino
2001-12-26misplaced (), causing tcp header be examined in non-tcp packetsMichael Shalayeff
2001-12-10use queue.h macros for TAILQ operationsJason Wright
2001-07-10Missing breaks.Marc Espie
Case labels must be integral values for deterministic behavior.
2001-06-27introduce the ALTQ queue macros into sys/net files.Kenjiro Cho
the new model removes direct references to the fields in ifp->if_snd, and defines the following macros to manipulate ifp->if_snd. IFQ_ENQUEUE(ifq, m, pktattr, err) IFQ_DEQUEUE(ifq, m) IFQ_POLL(ifq, m) IFQ_PURGE(ifq) IFQ_IS_EMPTY(ifq) the new model also enforces some rules regarding how to use these macros. details are descrined in http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt
2001-03-25Minor bug. Could corrupt stat countersConstantine Sapuntzakis
2001-03-22new timeoutsMichael Shalayeff
2001-03-07Missing splx() calls in failure cases.Aaron Campbell
2000-04-26CruftChris Cappuccio
2000-03-03$OpenBSD$Todd T. Fries
1999-08-06Fix an uninitialized variable bug. Remove statics.Niklas Hallqvist
1999-07-02do not use fuword()Theo de Raadt
1999-07-01lmc driver; ported by chris@dqc.orgTheo de Raadt