summaryrefslogtreecommitdiffstats
path: root/sys/net/if_pppoe.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't timeout_del() if we're going to do a timeout_add() right away.mk2008-10-011-2/+1
| | | | ok claudio
* some style fixes.brad2008-08-281-6/+6
|
* Fix a typo in the naming of the PPPoE input queues, ppoe -> pppoe.brad2008-08-281-7/+7
| | | | ok canacar@
* Fix length check when parsing PPPoE discovery phase packets.brad2008-08-271-6/+7
| | | | | | | | Malicious PPPoE discovery packets could cause the kernel to crash. From canacar@ and inspired by the original fix from NetBSD. ok canacar@
* turn an MFREE() into an m_free() and garbage collect anthib2008-08-091-4/+2
| | | | | | unused mbuf pointer. OK claudio@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Remove commented out NetBSD __KERNEL_RCSID macro usage.brad2008-05-131-6/+1
| | | | ok dlg@
* the softnet intr handlers check if the input queue has packets ondlg2008-04-241-3/+3
| | | | | | | | | | | | | | | it by reading the queues head pointer. if that pointer is not null then it takes splnet and dequeues a packet for handling. this is bad because the ifqueue head is modified at splnet and the sofnet handlers read it without holding splnet. this removes that check of the head pointer and simply checks if the dequeue gave us a packet or not before proceeding. found while reading mpls code. discussed with norby@ and henning@ ok mcbride@ henning@
* Adapt maximum MTU permitted on pppoe(4) interfaces to the MTU of thebrad2008-03-201-7/+18
| | | | | | | | | connected Ethernet/VLAN interface. From NetBSD Tested by brad@ sthen@ ok canacar@
* Don't use ph after the m_pulldown() calls because the mbuf chain could beclaudio2008-03-181-3/+5
| | | | modified. Better save than sorry. OK canacar@
* Don't use MBUFLOCK() for ifqueue protection use the correct splnet() danceclaudio2008-03-181-3/+8
| | | | instead. OK canacar@
* Do not allow pppoe(4) interfaces to be attached to anything but Ethernetbrad2008-03-141-2/+6
| | | | | | | | or VLAN interfaces. Based on a similar change from NetBSD. ok canacar@
* Include relay-sid in the response if one was received.canacar2008-03-121-1/+50
| | | | | Reported and tested by Zach Wilkinson ok brad@, claudio@
* Fix a mbuf leak which can be triggered on a systembrad2008-02-201-15/+14
| | | | | | | | | receiving PPPoE packets but without any PPPoE interfaces setup. From mickey@ via PR 5713. ok canacar@ claudio@ dlg@
* malloc sweep:henning2007-09-151-3/+2
| | | | | | | -remove useless casts -MALLOC/FREE -> malloc/free -use M_ZERO where appropriate instead of seperate bzero feedback & ok krw, hshoexer
* Users of arc4random() should include dev/rndvar.h directly.mcbride2007-05-281-1/+4
| | | | ok dlg claudio
* knf, from bred@todd2006-12-281-3/+6
|
* check if ifqueue has anything queued before doing the dance ofderaadt2006-12-281-3/+3
| | | | splnet/IF_DEQUEUE/splx; ok various people
* Error messages from remote may not be '\0' terminated.canacar2006-07-111-14/+17
| | | | | | | Also cleanup error message device name printing. Based on diff from NetBSD via Andrey Matveev Also, use log when printing error messages, and syslog will handle any nonprintable characters, discussed with deraadt@
* allow bpf(4) to ignore packets based on their direction (inbound ordjm2006-03-251-3/+4
| | | | | outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
* With the exception of two other small uncommited diffs this movesbrad2006-03-041-3/+3
| | | | | | the remainder of the network stack from splimp to splnet. ok miod@
* Remove redundant calls to bpfdetach.canacar2006-01-041-4/+1
| | | | ok brad@
* Prevent information leak by using a random hunique value instead ofcanacar2005-10-081-17/+22
| | | | the address of the softc. Reported by Peter Phillip via PR-4501.
* fix a possible panic in error path,canacar2005-06-071-4/+5
| | | | | do not try to check debug status of a non existing interface in server mode.
* Disable timeout before destroying a pppoe interfacecanacar2005-01-011-1/+2
| | | | ok deraadt@, henning@, krw@
* plug memory leaks on errorpat2004-11-291-3/+6
| | | | ok canacar markus millert
* In kernel pppoe client, a simple IPv4 only implementation.canacar2004-11-281-0/+1434
Initial porting from NetBSD by David Berghoff. Modified/simplified to match our sppp implementation. ok deraadt@