summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ppp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ppp_ifstart unconditionally. depending on ALTQ for this is ridiculous.henning2011-07-061-12/+1
| | | | one tree less in my forest (for a few seconds)! ok claudio
* cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhmhenning2011-07-061-4/+4
|
* use IFQ_IS_EMPTY instead of fiddling with ifqueue internals - 3 caseshenning2011-07-051-3/+4
| | | | | why bother with APIs when you can muck with internals directly, it's obvious there'll NEVER be changes, right. ok claudio ryan
* use mtod.dhill2011-07-041-2/+2
| | | | | | no change in binary "Sure" claudio@
* The line-discipline-specific ioctls return -1 to indicate thatstsp2010-05-021-2/+2
| | | | | | | | | | the non-line-discipline-specific ioctl handler should be tried. So changing these to return ENOTTY was wrong. Noted on misc@ because of resulting pppd log spam (but it didn't break anything serious): http://marc.info/?l=openbsd-misc&m=127258856501621&w=2 ok sthen@, miod@
* incomming -> incomingmk2010-05-011-2/+2
| | | | | | The ones found in gnu/ left out by intention. ok jmc
* Make if_ppp and if_sl ioctl handlers return ENOTTY for unsupportedstsp2010-04-241-3/+3
| | | | | ioctls, instead of -1 or EINVAL. ENOTTY audit suggested to me by uwe. ok dlg tedu
* rtables are stacked on rdomains (it is possible to have multiple routingclaudio2009-11-031-6/+4
| | | | | | | | | | | | | | tables on top of a rdomain) but until now our code was a crazy mix so that it was impossible to correctly use rtables in that case. Additionally pf(4) only knows about rtables and not about rdomains. This is especially bad when tracking (possibly conflicting) states in various domains. This diff fixes all or most of these issues. It adds a lookup function to get the rdomain id based on a rtable id. Makes pf understand rdomains and allows pf to move packets between rdomains (it is similar to NAT). Because pf states now track the rdomain id as well it is necessary to modify the pfsync wire format. So old and new systems will not sync up. A lot of help by dlg@, tested by sthen@, jsg@ and probably more OK dlg@, mpf@, deraadt@
* Add the same routing domain assignments and checks into the not so usedclaudio2009-07-081-1/+14
| | | | protocols as it is currently in if_ethersubr.c. OK reyk@
* Introduce splsoftassert(), similar to splassert() but for soft interruptmiod2009-03-151-4/+4
| | | | | | levels. This will allow for platforms where soft interrupt levels do not map to real hardware interrupt levels to have soft ipl values overlapping hard ipl values without breaking spl asserts.
* #if INET => #ifdef INETmpf2008-10-221-2/+2
| | | | #if INET6 => #ifdef INET6
* remove dead stores and newly created unused variables.chl2008-09-171-3/+3
| | | | | | | | fix potential use of uninitialized value in trunk_port_ioctl() function. Found by LLVM/Clang Static Analyzer. ok mpf@ henning@
* malloc sweep:henning2007-09-151-12/+10
| | | | | | | -remove useless casts -MALLOC/FREE -> malloc/free -use M_ZERO where appropriate instead of seperate bzero feedback & ok krw, hshoexer
* one extern seems to be better than 20 for ifqmaxlen; ok krwjason2007-05-261-2/+1
|
* Don't use m_prepend() even if it is used mostly correct here.claudio2007-04-111-15/+9
| | | | | | m_prepend() should never be called directly, use M_PREPEND() instead. Doing so simplifies the code. Tested by fkr@ and Paul de Weerd. OK henning@
* check if ifqueue has anything queued before doing the dance ofderaadt2006-12-281-2/+2
| | | | splnet/IF_DEQUEUE/splx; ok various people
* allow bpf(4) to ignore packets based on their direction (inbound ordjm2006-03-251-3/+3
| | | | | outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
* remove BPF filter support if the bpfilter device is removed.brad2006-03-121-1/+21
|
* With the exception of two other small uncommited diffs this movesbrad2006-03-041-20/+20
| | | | | | the remainder of the network stack from splimp to splnet. ok miod@
* Remove redundant calls to bpfdetach.canacar2006-01-041-4/+1
| | | | ok brad@
* First step towards more sane time handling in the kernel -- this changestholo2004-06-211-6/+5
| | | | | | | | things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
* check for input queue congestion on those as well and call if_congestion whenhenning2004-04-251-1/+3
| | | | | | needed; these are slightly different so that we cannot use the new IF_INPUT_ENQUEUE macro deraadt ok
* return error in ifc_destroy; ok deraadt, itojun, cedric, hshoexermarkus2003-12-161-4/+5
|
* initial support ifconfig destroy; ok deraadt@markus2003-12-131-4/+26
|
* de-register. deraadt okitojun2003-12-101-7/+7
|
* support ifconfig create; ok deraadtmarkus2003-12-071-32/+52
|
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-7/+7
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* string fixes; tedu okderaadt2003-05-031-2/+2
|
* Remove commons; inspired by netbsd.jason2003-02-121-1/+3
|
* remove the altq classifier code which is replaced by pf and no longer used.kjc2003-01-071-5/+2
| | | | ok henning@, deraadt@
* license update of CMU parts. due to communication with wcw+@andrew.cmu.edu,deraadt2002-07-011-20/+36
| | | | | | pushed for by tygs@netcologne.de. Apparently we also now known how to talk to the lawyers there, if we were so mad. Note that a few other copyright issues in pppd still remain, so this does not close this story.
* allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowitojun2002-06-301-1/+2
| | | | | the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
* this was derived from UCB if_sl. therefore, we can update the UCB if_slderaadt2002-06-191-14/+30
| | | | copyright contained in this. a license problem remains, of course...
* sprinkle splasserts where function comments tell us to.art2002-06-111-2/+8
|
* First round of __P removal in sysmillert2002-03-141-8/+8
|
* sync with KAME.kjc2002-02-131-1/+23
| | | | | | | make altq actually work with kernl ppp. add if_start for the altq case to kick transmission. don't call ppp_restart() to prevent useless interrupt loop under rate-limiting.
* Add some missing lengths checks when passing data from userland tomillert2001-09-161-2/+3
| | | | kernel. From based on NetBSD patches.
* use a variable, not it's default value from constantmickey2001-07-201-5/+6
|
* introduce the ALTQ queue macros into sys/net files.kjc2001-06-271-15/+47
| | | | | | | | | | | | | | 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
* Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, dependingangelos2001-06-271-2/+2
| | | | on how macros should be treated. Code by fgsch@, ok by me and itojun@
* Move common post M_COPY_HDR manipulation to the macro itself; angelos@ ok.fgsch2001-06-251-5/+2
|
* change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.itojun2001-06-151-3/+1
| | | | | | | | follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed.
* Copy the packet header only if the original mbuf had a packet headerangelos2001-05-281-4/+6
| | | | (just general paranoia).
* Fixup tags on old mbuf chain head.angelos2001-05-271-1/+4
|
* No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)ho2001-05-161-4/+1
|
* add SIOCGIFMTU/SIOCSIFMTU; remediate redundant code of tun, ppp, sppp; chris@ okmickey2000-03-211-8/+1
|
* bring in KAME IPv6 code, dated 19991208.itojun1999-12-081-1/+7
| | | | | | | | | replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
* Remove the NPMODE_KEEPLAST defs; they're not really necessary. Also,angelos1998-07-121-29/+22
| | | | sync with NetBSD (the recent splhigh->splimp changes).
* Add NPMODE_KEEPLAST conditions; not supported yet (act like NPMODE_QUEUE).angelos1998-07-011-3/+6
|