Age | Commit message (Collapse) | Author |
|
ok kettenis@ cloder@ tom@ henning@
|
|
|
|
ok canacar@
|
|
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@
|
|
Affects devices using the sppp layer (pppoe, art, san, lmc)
ok deraadt@
|
|
dmesg printf everytime they came up, would that be a better world?
|
|
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@
|
|
the remainder of the network stack from splimp to splnet.
ok miod@
|
|
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@
|
|
Help and ok claudio@, ok brad@
|
|
Different fix tested by the submitter, xiangbo3 at gmail com.
ok claudio@
|
|
making pppoe(4) work on sparc64. Fixes PR-4311
Reported and fix tested by David Coppa < dcoppa at gmail com >
|
|
|
|
system.
From: i4b project via FreeBSD via Jason Ackley
Fixes PR 4190 & 4196
ok canacar@
|
|
|
|
|
|
|
|
Use getmicrouptime() instead. Found by grange@ and henning@.
OK henning@
|
|
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@
|
|
is called. Makes two sppp instances to handshake against each other.
Tested by Greg Mortensen, ok claudio@
|
|
Notably, this fixes "(pppoe0)" in pf. ok markus@
|
|
Initial porting from NetBSD by David Berghoff.
Modified/simplified to match our sppp implementation.
ok deraadt@
|
|
|
|
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@
|
|
ok millert@ deraadt@
|
|
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@
|
|
needed; these are slightly different so that we cannot use the new
IF_INPUT_ENQUEUE macro
deraadt ok
|
|
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@.
|
|
|
|
ok henning@, deraadt@
|
|
|
|
|
|
ALTQify more drivers.
ok millert@
|
|
|
|
|
|
|
|
Case labels must be integral values for deterministic behavior.
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|