#
1.172 |
|
03-Sep-2022 |
thorpej |
Garbage-collect the remaining vestiges of netisr.
|
#
1.171 |
|
27-Aug-2022 |
thorpej |
Ensure that all queues passed to ifq_enqueue2() have a valid ifq_lock.
|
#
1.170 |
|
27-Aug-2022 |
thorpej |
Consistently use IFQ_SET_MAXLEN(), rather than open-coding it. NFC.
|
#
1.169 |
|
06-Jul-2022 |
riastradh |
net/if_ppp.c: Avoid user-controlled overrun in PPPIOCSCOMPRESS.
Reported-by: syzbot+2c7bda7dc2b6c0d4f279@syzkaller.appspotmail.com
|
#
1.168 |
|
06-Jul-2022 |
riastradh |
net/if_ppp.c: Sprinkle KNF. No functional change intended.
|
Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3
|
#
1.167 |
|
29-Jan-2020 |
thorpej |
Adopt <net/if_stats.h>.
|
Revision tags: ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
|
#
1.166 |
|
20-Sep-2019 |
maxv |
branches: 1.166.2; dedup
|
Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
|
#
1.165 |
|
25-Jun-2019 |
msaitoh |
Simplify "LIST_HEAD();" to make the code more understandable. No functional change.
|
Revision tags: phil-wifi-20190609 isaki-audio2-base pgoyette-compat-20190127
|
#
1.164 |
|
25-Jan-2019 |
knakahara |
Add __cacheline_aligned to ppp softc list and its mutex just in case.
|
Revision tags: pgoyette-compat-20190118
|
#
1.163 |
|
11-Jan-2019 |
knakahara |
Fix missing splx in ppp_inproc().
|
#
1.162 |
|
11-Jan-2019 |
knakahara |
Fix missing mutex_exit in ppp_create().
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base
|
#
1.161 |
|
26-Jun-2018 |
msaitoh |
branches: 1.161.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
Revision tags: pgoyette-compat-0625
|
#
1.160 |
|
25-Jun-2018 |
msaitoh |
Remove duplicated inclusion of net/bpf.h.
|
Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
|
#
1.159 |
|
17-Sep-2017 |
christos |
branches: 1.159.2; Add one more not supported error
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
branches: 1.158.8; MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
#
1.171 |
|
27-Aug-2022 |
thorpej |
Ensure that all queues passed to ifq_enqueue2() have a valid ifq_lock.
|
#
1.170 |
|
27-Aug-2022 |
thorpej |
Consistently use IFQ_SET_MAXLEN(), rather than open-coding it. NFC.
|
#
1.169 |
|
06-Jul-2022 |
riastradh |
net/if_ppp.c: Avoid user-controlled overrun in PPPIOCSCOMPRESS.
Reported-by: syzbot+2c7bda7dc2b6c0d4f279@syzkaller.appspotmail.com
|
#
1.168 |
|
06-Jul-2022 |
riastradh |
net/if_ppp.c: Sprinkle KNF. No functional change intended.
|
Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3
|
#
1.167 |
|
29-Jan-2020 |
thorpej |
Adopt <net/if_stats.h>.
|
Revision tags: ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
|
#
1.166 |
|
20-Sep-2019 |
maxv |
branches: 1.166.2; dedup
|
Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
|
#
1.165 |
|
25-Jun-2019 |
msaitoh |
Simplify "LIST_HEAD();" to make the code more understandable. No functional change.
|
Revision tags: phil-wifi-20190609 isaki-audio2-base pgoyette-compat-20190127
|
#
1.164 |
|
25-Jan-2019 |
knakahara |
Add __cacheline_aligned to ppp softc list and its mutex just in case.
|
Revision tags: pgoyette-compat-20190118
|
#
1.163 |
|
11-Jan-2019 |
knakahara |
Fix missing splx in ppp_inproc().
|
#
1.162 |
|
11-Jan-2019 |
knakahara |
Fix missing mutex_exit in ppp_create().
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base
|
#
1.161 |
|
26-Jun-2018 |
msaitoh |
branches: 1.161.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
Revision tags: pgoyette-compat-0625
|
#
1.160 |
|
25-Jun-2018 |
msaitoh |
Remove duplicated inclusion of net/bpf.h.
|
Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
|
#
1.159 |
|
17-Sep-2017 |
christos |
branches: 1.159.2; Add one more not supported error
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
branches: 1.158.8; MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
#
1.169 |
|
06-Jul-2022 |
riastradh |
net/if_ppp.c: Avoid user-controlled overrun in PPPIOCSCOMPRESS.
Reported-by: syzbot+2c7bda7dc2b6c0d4f279@syzkaller.appspotmail.com
|
#
1.168 |
|
06-Jul-2022 |
riastradh |
net/if_ppp.c: Sprinkle KNF. No functional change intended.
|
Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3
|
#
1.167 |
|
29-Jan-2020 |
thorpej |
Adopt <net/if_stats.h>.
|
Revision tags: ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
|
#
1.166 |
|
20-Sep-2019 |
maxv |
branches: 1.166.2; dedup
|
Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
|
#
1.165 |
|
25-Jun-2019 |
msaitoh |
Simplify "LIST_HEAD();" to make the code more understandable. No functional change.
|
Revision tags: phil-wifi-20190609 isaki-audio2-base pgoyette-compat-20190127
|
#
1.164 |
|
25-Jan-2019 |
knakahara |
Add __cacheline_aligned to ppp softc list and its mutex just in case.
|
Revision tags: pgoyette-compat-20190118
|
#
1.163 |
|
11-Jan-2019 |
knakahara |
Fix missing splx in ppp_inproc().
|
#
1.162 |
|
11-Jan-2019 |
knakahara |
Fix missing mutex_exit in ppp_create().
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base
|
#
1.161 |
|
26-Jun-2018 |
msaitoh |
branches: 1.161.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
Revision tags: pgoyette-compat-0625
|
#
1.160 |
|
25-Jun-2018 |
msaitoh |
Remove duplicated inclusion of net/bpf.h.
|
Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
|
#
1.159 |
|
17-Sep-2017 |
christos |
branches: 1.159.2; Add one more not supported error
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
branches: 1.158.8; MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
#
1.167 |
|
29-Jan-2020 |
thorpej |
Adopt <net/if_stats.h>.
|
Revision tags: ad-namecache-base2 ad-namecache-base1 ad-namecache-base phil-wifi-20191119
|
#
1.166 |
|
20-Sep-2019 |
maxv |
dedup
|
Revision tags: netbsd-9-0-RC1 netbsd-9-base
|
#
1.165 |
|
25-Jun-2019 |
msaitoh |
Simplify "LIST_HEAD();" to make the code more understandable. No functional change.
|
Revision tags: phil-wifi-20190609 isaki-audio2-base pgoyette-compat-20190127
|
#
1.164 |
|
25-Jan-2019 |
knakahara |
Add __cacheline_aligned to ppp softc list and its mutex just in case.
|
Revision tags: pgoyette-compat-20190118
|
#
1.163 |
|
11-Jan-2019 |
knakahara |
Fix missing splx in ppp_inproc().
|
#
1.162 |
|
11-Jan-2019 |
knakahara |
Fix missing mutex_exit in ppp_create().
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base
|
#
1.161 |
|
26-Jun-2018 |
msaitoh |
branches: 1.161.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
Revision tags: pgoyette-compat-0625
|
#
1.160 |
|
25-Jun-2018 |
msaitoh |
Remove duplicated inclusion of net/bpf.h.
|
Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
|
#
1.159 |
|
17-Sep-2017 |
christos |
branches: 1.159.2; Add one more not supported error
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
branches: 1.158.8; MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
#
1.166 |
|
20-Sep-2019 |
maxv |
dedup
|
Revision tags: netbsd-9-base
|
#
1.165 |
|
25-Jun-2019 |
msaitoh |
Simplify "LIST_HEAD();" to make the code more understandable. No functional change.
|
Revision tags: phil-wifi-20190609 isaki-audio2-base pgoyette-compat-20190127
|
#
1.164 |
|
25-Jan-2019 |
knakahara |
Add __cacheline_aligned to ppp softc list and its mutex just in case.
|
Revision tags: pgoyette-compat-20190118
|
#
1.163 |
|
11-Jan-2019 |
knakahara |
Fix missing splx in ppp_inproc().
|
#
1.162 |
|
11-Jan-2019 |
knakahara |
Fix missing mutex_exit in ppp_create().
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base
|
#
1.161 |
|
26-Jun-2018 |
msaitoh |
branches: 1.161.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
Revision tags: pgoyette-compat-0625
|
#
1.160 |
|
25-Jun-2018 |
msaitoh |
Remove duplicated inclusion of net/bpf.h.
|
Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
|
#
1.159 |
|
17-Sep-2017 |
christos |
branches: 1.159.2; Add one more not supported error
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
branches: 1.158.8; MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
#
1.165 |
|
25-Jun-2019 |
msaitoh |
Simplify "LIST_HEAD();" to make the code more understandable. No functional change.
|
Revision tags: phil-wifi-20190609 isaki-audio2-base pgoyette-compat-20190127
|
#
1.164 |
|
25-Jan-2019 |
knakahara |
Add __cacheline_aligned to ppp softc list and its mutex just in case.
|
Revision tags: pgoyette-compat-20190118
|
#
1.163 |
|
11-Jan-2019 |
knakahara |
Fix missing splx in ppp_inproc().
|
#
1.162 |
|
11-Jan-2019 |
knakahara |
Fix missing mutex_exit in ppp_create().
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base
|
#
1.161 |
|
26-Jun-2018 |
msaitoh |
branches: 1.161.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
Revision tags: pgoyette-compat-0625
|
#
1.160 |
|
25-Jun-2018 |
msaitoh |
Remove duplicated inclusion of net/bpf.h.
|
Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
|
#
1.159 |
|
17-Sep-2017 |
christos |
branches: 1.159.2; Add one more not supported error
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
branches: 1.158.8; MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
Revision tags: isaki-audio2-base pgoyette-compat-20190127
|
#
1.164 |
|
25-Jan-2019 |
knakahara |
Add __cacheline_aligned to ppp softc list and its mutex just in case.
|
Revision tags: pgoyette-compat-20190118
|
#
1.163 |
|
11-Jan-2019 |
knakahara |
Fix missing splx in ppp_inproc().
|
#
1.162 |
|
11-Jan-2019 |
knakahara |
Fix missing mutex_exit in ppp_create().
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base
|
#
1.161 |
|
26-Jun-2018 |
msaitoh |
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
Revision tags: pgoyette-compat-0625
|
#
1.160 |
|
25-Jun-2018 |
msaitoh |
Remove duplicated inclusion of net/bpf.h.
|
Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202
|
#
1.159 |
|
17-Sep-2017 |
christos |
branches: 1.159.2; Add one more not supported error
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
branches: 1.158.8; MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
#
1.159 |
|
17-Sep-2017 |
christos |
Add one more not supported error
|
Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|
Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004
|
#
1.158 |
|
02-Oct-2016 |
christos |
MFREE -> m_free
|
Revision tags: localcount-20160914
|
#
1.157 |
|
07-Aug-2016 |
christos |
modularize some more drivers and merge the module glue
|
#
1.156 |
|
06-Aug-2016 |
pgoyette |
Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie, module reload) we can end up with a panic "lock already initialized"
|
#
1.155 |
|
06-Aug-2016 |
christos |
make strip and slip modular, and cosmetic for ppp.
|
#
1.154 |
|
06-Aug-2016 |
pgoyette |
Change the internal name of the module to match its external (file system) name. Otherwise "bad things" can happen, such as modload(8) being able to load a second copy!
|
#
1.153 |
|
06-Aug-2016 |
pgoyette |
Modularize the ppp driver, and adjust dependencies of the compressor modules.
For now, this is still included as a built-in module in GENERIC kernels.
|
Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
#
1.152 |
|
10-Jun-2016 |
ozaki-r |
branches: 1.152.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
Revision tags: nick-nhusb-base-20160529
|
#
1.151 |
|
28-Apr-2016 |
ozaki-r |
Constify rtentry of if_output
We no longer need to change rtentry below if_output.
The change makes it clear where rtentries are changed (or not) and helps forthcoming locking (os psrefing) rtentries.
|
Revision tags: nick-nhusb-base-20160422
|
#
1.150 |
|
20-Apr-2016 |
knakahara |
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
|
Revision tags: nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.149 |
|
24-Aug-2015 |
pooka |
sprinkle _KERNEL_OPT
|
#
1.148 |
|
20-Aug-2015 |
uebayasi |
Honor pseudo attach decl generated by config(1).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.147 |
|
20-Apr-2015 |
roy |
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work with RTF_LOCAL. Fixes PR kern/49829.
|
Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base tls-earlyentropy-base tls-maxphys-base
|
#
1.146 |
|
01-Jul-2014 |
msaitoh |
branches: 1.146.4; KNF. No functional change.
|
#
1.145 |
|
30-Jun-2014 |
ozaki-r |
Cleanup ppp_inproc
- Remove unnecessary variable isr - Use pktq instead of rv to switch between inet/inet6 and other protocols
ok msaitoh@ and rmind@
|
#
1.144 |
|
05-Jun-2014 |
rmind |
- Implement pktqueue interface for lockless IP input queue. - Replace ipintrq and ip6intrq with the pktqueue mechanism. - Eliminate kernel-lock from ipintr() and ip6intr(). - Some preparation work to push softnet_lock out of ipintr().
Discussed on tech-net.
|
Revision tags: rmind-smpnet-nbase rmind-smpnet-base
|
#
1.143 |
|
17-May-2014 |
rmind |
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
|
#
1.142 |
|
15-May-2014 |
msaitoh |
Save a NETISR_* value in a variable and call schednetisr() after enqueue a packet for readability and future modification.
|
Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
|
#
1.141 |
|
18-Sep-2013 |
rmind |
branches: 1.141.2; Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was originally to preserve compatibility. Similarly, add bpf_validate_ext() which takes bpf_ctx_t.
|
#
1.140 |
|
30-Aug-2013 |
rmind |
bpf_filter: add a custom argument which can be passed to coprocessor routine.
|
#
1.139 |
|
29-Aug-2013 |
rmind |
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC) which add a capability to call external functions in a predetermined way.
It can be thought as a BPF "coprocessor" -- a generic mechanism to offload more complex packet inspection operations. There is no default coprocessor and this functionality is not targeted to the /dev/bpf. This is primarily targeted to the kernel subsystems, therefore there is no way to set a custom coprocessor at the userlevel.
Discussed on: tech-net@ OK: core@
|
Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
|
#
1.138 |
|
25-Nov-2012 |
mbalmer |
branches: 1.138.2; Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net> via tech-net@NetBSD.org. Thanks!
|
Revision tags: yamt-pagecache-base6
|
#
1.137 |
|
11-Oct-2012 |
christos |
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the change up to the caller.
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.136 |
|
28-Oct-2011 |
dyoung |
branches: 1.136.2; 1.136.8; 1.136.12; For these interfaces, the implementation of SIOCSIFDSTADDR is identical to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.
|
#
1.135 |
|
28-Oct-2011 |
dyoung |
Don't kauth-orize SIOCSIFMTU in pppsioctl() and stf_ioctl(), ifioctl() has already done that for us.
|
#
1.134 |
|
07-Aug-2011 |
rmind |
Convert ppp_list_lock to mutex(9).
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base rmind-uvmplock-base
|
#
1.133 |
|
02-Apr-2011 |
mbalmer |
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.132 |
|
21-Aug-2010 |
pgoyette |
branches: 1.132.2; Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1
|
#
1.131 |
|
05-Apr-2010 |
joerg |
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
Revision tags: yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.130 |
|
19-Jan-2010 |
pooka |
branches: 1.130.2; 1.130.4; Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized.
Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
|
Revision tags: matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 jym-xensuspend-base nick-hppapmap-base
|
#
1.129 |
|
15-Apr-2009 |
elad |
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive alternatives.
Discussed on tech-kern:
http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html
Input from ad@, christos@, dyoung@, tsutsui@.
Okay ad@.
|
Revision tags: nick-hppapmap-base2
|
#
1.128 |
|
19-Jan-2009 |
yamt |
branches: 1.128.2; ppp_get_compressor: take module_lock when trying to load a module. PR/40428
|
Revision tags: mjf-devfs2-base
|
#
1.127 |
|
17-Dec-2008 |
cegger |
kill MALLOC and FREE macros.
|
Revision tags: haad-dm-base2 haad-nbase2 ad-audiomp2-base haad-dm-base
|
#
1.126 |
|
29-Nov-2008 |
cube |
Fix handling of ppp compressor modules, from Andrew Doran's input. - ref count each compressor - allow {un,}registration of several modules at once - une RUN_ONCE to make sure the mutex is initialised, because unfortunately built-in (and bootloader-loaded) modules init functions are run before pseudo-devices attach (reported by Nick Hudson).
|
#
1.125 |
|
25-Nov-2008 |
cube |
Rework the way PPP compmressors are handled and allow them to be automatically loaded when needed.
|
#
1.124 |
|
07-Nov-2008 |
dyoung |
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen.
In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot.
Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this:
switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; }
Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; }
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base wrstuden-revivesa-base
|
#
1.123 |
|
15-Jun-2008 |
christos |
branches: 1.123.2; 1.123.4; - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD) - kill memsets where M_ZERO can be used.
|
Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 yamt-nfs-mp-base
|
#
1.122 |
|
24-Apr-2008 |
ad |
branches: 1.122.2; 1.122.4; 1.122.6; Merge the socket locking patch:
- Socket layer becomes MP safe. - Unix protocols become MP safe. - Allows protocol processing interrupts to safely block on locks. - Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
|
Revision tags: yamt-pf42-baseX yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase mjf-devfs-base hpcarm-cleanup-base
|
#
1.121 |
|
07-Feb-2008 |
dyoung |
branches: 1.121.6; 1.121.8; Start patching up the kernel so that a network driver always has the opportunity to handle an ioctl before generic ifioctl handling occurs. This will ease extending the kernel and sharing of code between drivers.
First steps: Make the signature of ifioctl_common() match struct ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new ifioctl() regime, throughout the kernel.
|
Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
|
#
1.120 |
|
04-Jan-2008 |
ad |
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
|
Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
|
#
1.119 |
|
19-Oct-2007 |
ad |
branches: 1.119.2; 1.119.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
Revision tags: yamt-x86pmap-base4 yamt-x86pmap-base3 vmlocking-base
|
#
1.118 |
|
08-Oct-2007 |
ad |
branches: 1.118.2; Use the softint API.
|
Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base2 yamt-x86pmap-base
|
#
1.117 |
|
01-Sep-2007 |
dyoung |
branches: 1.117.2; Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and sockaddr_copy(). Constify. Compare pointers with NULL, not 0. Don't "test truth" of pointers, but compare with NULL.
|
Revision tags: matt-mips64-base nick-csl-alignment-base
|
#
1.116 |
|
14-Jul-2007 |
ad |
branches: 1.116.2; 1.116.6; 1.116.8; Generic soft interrupts are mandatory.
|
Revision tags: mjf-ufs-trans-base
|
#
1.115 |
|
09-Jul-2007 |
ad |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
|
#
1.114 |
|
07-Mar-2007 |
liamjfoy |
branches: 1.114.2; 1.114.4; Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a ip6flow struct entry, will be created. ether_input and friends will then be able to call ip6flow_fastforward with the packet which will then be passed to if_output (unless an issue is found - in that case the packet is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
|
#
1.113 |
|
04-Mar-2007 |
christos |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
Revision tags: ad-audiomp-base
|
#
1.112 |
|
17-Feb-2007 |
dyoung |
KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous parentheses in return statements.
Cosmetic: don't open-code TAILQ_FOREACH().
Cosmetic: change types of variables to avoid oodles of casts: in in6_src.c, avoid casts by changing several route_in6 pointers to struct route pointers. Remove unnecessary casts to caddr_t elsewhere.
Pave the way for eliminating address family-specific route caches: soon, struct route will not embed a sockaddr, but it will hold a reference to an external sockaddr, instead. We will set the destination sockaddr using rtcache_setdst(). (I created a stub for it, but it isn't used anywhere, yet.) rtcache_free() will free the sockaddr. I have extracted from rtcache_free() a helper subroutine, rtcache_clear(). rtcache_clear() will "forget" a cached route, but it will not forget the destination by releasing the sockaddr. I use rtcache_clear() instead of rtcache_free() in rtcache_update(), because rtcache_update() is not supposed to forget the destination.
Constify:
1 Introduce const accessor for route->ro_dst, rtcache_getdst().
2 Constify the 'dst' argument to ifnet->if_output(). This led me to constify a lot of code called by output routines.
3 Constify the sockaddr argument to protosw->pr_ctlinput. This led me to constify a lot of code called by ctlinput routines.
4 Introduce const macros for converting from a generic sockaddr to family-specific sockaddrs, e.g., sockaddr_in: satocsin6, satocsin, et cetera.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 newlock2-base netbsd-4-base
|
#
1.111 |
|
16-Nov-2006 |
christos |
branches: 1.111.4; __unused removal on arguments; approved by core.
|
#
1.110 |
|
25-Oct-2006 |
elad |
Kill some KAUTH_GENERIC_ISSUSER uses.
|
Revision tags: yamt-splraiseipl-base2
|
#
1.109 |
|
12-Oct-2006 |
christos |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
Revision tags: abandoned-netbsd-4-base yamt-splraiseipl-base yamt-pdpolicy-base9 yamt-pdpolicy-base8 yamt-pdpolicy-base7 rpaulo-netinet-merge-pcb-base
|
#
1.108 |
|
23-Jul-2006 |
ad |
branches: 1.108.4; 1.108.6; Use the LWP cached credentials where sane.
|
Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base chap-midi-base
|
#
1.107 |
|
07-Jun-2006 |
kardel |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
Revision tags: yamt-pdpolicy-base5 simonb-timecounters-base
|
#
1.106 |
|
14-May-2006 |
elad |
branches: 1.106.2; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.105 |
|
02-Jan-2006 |
yamt |
branches: 1.105.2; 1.105.4; 1.105.6; 1.105.8; 1.105.10; ppp_dequeue: fix a mbuf leak/packet loss introduced by rev.1.104.
|
#
1.104 |
|
28-Dec-2005 |
christos |
branches: 1.104.2; PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority. Applied fix, similar to the one suggested in the PR. We use a counter to limit the number of consecutive packets accepted from the fast queue. This number can be set via ioctl, but this has not been implemented. Since there are only 2 queues other proposed solutions such as ALTQ are overkill and they have not been implemented in the past 7 years. Now LCP echos can be used to detect that the line is up.
|
#
1.103 |
|
11-Dec-2005 |
thorpej |
ANSI function decls and application of static.
|
Revision tags: yamt-readahead-base3 ktrace-lwp-base
|
#
1.102 |
|
27-Nov-2005 |
thorpej |
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
|
Revision tags: yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
|
#
1.101 |
|
29-May-2005 |
christos |
branches: 1.101.2; 1.101.8; - sprinkle const - remove unneeded casts - use more mem*() instead of b*() funcs.
|
#
1.100 |
|
17-May-2005 |
christos |
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to implement, xtoa(), but I think defining the samestring 50 times is a bit too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
|
Revision tags: kent-audio2-base
|
#
1.99 |
|
31-Mar-2005 |
christos |
no point in assigning to ifq twice.
|
#
1.98 |
|
31-Mar-2005 |
explorer |
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
|
#
1.97 |
|
31-Mar-2005 |
christos |
factor out the interface queueing code into two functions. One used by the non point-to-point interfaces that has one queue, and one used by the point to point interfaces that has two queues. No functional changes. XXX: The ALTQ stuff makes the code ugly. XXX: More cleanup to come
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.96 |
|
26-Feb-2005 |
perry |
nuke trailing whitespace
|
Revision tags: yamt-km-base2 yamt-km-base kent-audio1-beforemerge kent-audio1-base
|
#
1.95 |
|
05-Dec-2004 |
christos |
branches: 1.95.4; 1.95.6; pasto: simple_lock -> simple_unlock.
|
#
1.94 |
|
05-Dec-2004 |
peter |
Don't forget to call bpfdetach in the clone destroy function. While here, add a missing static and change some spaces to tabs.
|
#
1.93 |
|
05-Dec-2004 |
he |
Fix an obvious typo: scf -> sc. Discovered while compiling for x68k.
|
#
1.92 |
|
05-Dec-2004 |
christos |
void in arg prototype.
|
#
1.91 |
|
05-Dec-2004 |
christos |
Make ppp a cloning device. Based on the work of Quentin Garnier.
|
#
1.90 |
|
03-Jul-2004 |
dyoung |
I changed pppoutput to use M_PREPEND. pppoutput was duplicating the functionality of M_PREPEND, but with a bug: m_pkthdr.len was not updated in pppoutput as it is in M_PREPEND.
Also, replace the loop that measures the length of the mbuf chain with a call to m_length.
This fixes a PR from an anonymous bug reporter. Thank you, anonymous bug reporter. Thanks, Itojun, for bringing the anonymous bug report to my attention.
|
#
1.89 |
|
21-Apr-2004 |
itojun |
kill sprintf, use snprintf
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
#
1.88 |
|
28-Oct-2003 |
mycroft |
Also, if we're going to bail, we should free the memory we just allocated...
|
#
1.87 |
|
28-Oct-2003 |
mycroft |
Previous patch created a dead break.
|
#
1.86 |
|
25-Oct-2003 |
christos |
Fix uninitialized variable warnings
|
#
1.85 |
|
01-Sep-2003 |
christos |
Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the remote site.
|
#
1.84 |
|
02-May-2003 |
itojun |
branches: 1.84.2; KNF
|
#
1.83 |
|
27-Mar-2003 |
christos |
PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM
|
#
1.82 |
|
19-Jan-2003 |
simonb |
Remove variable that is only assigned too but not referenced.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge kqueue-base
|
#
1.81 |
|
02-Oct-2002 |
itojun |
backout previous two - if you use ppp* interface, kernel panics instantly. it is apparent that the change was untested, and severety is high.
|
#
1.80 |
|
25-Sep-2002 |
augustss |
Remove unused variable so the file compiles again.
|
#
1.79 |
|
25-Sep-2002 |
darrenr |
Keep m_pkthdr.len updated correctly and use it rather than a loop to find out the total length of the packet.
|
Revision tags: gehenna-devsw-base
|
#
1.78 |
|
01-Jul-2002 |
itojun |
new copyright boilerplate from CMU. from openbsd
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
#
1.77 |
|
12-May-2002 |
matt |
branches: 1.77.2; Make ppp_softc[] extern and declare in if_ppp.c
|
Revision tags: eeh-devprop-base
|
#
1.76 |
|
17-Mar-2002 |
atatat |
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
Revision tags: newlock-base
|
#
1.75 |
|
05-Mar-2002 |
itojun |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
|
Revision tags: ifpoll-base
|
#
1.74 |
|
14-Jan-2002 |
kleink |
Include <machine/intr.h> unconditionally, instead of only doing so if __HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it otherwise; pointed out by Aymeric Vincent.
|
#
1.73 |
|
13-Nov-2001 |
lukem |
remove unnecessary #if NFOO > 0 .... #endif wrappers
|
#
1.72 |
|
12-Nov-2001 |
lukem |
add RCSIDs
|
Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
|
#
1.71 |
|
05-Aug-2001 |
jdolecek |
use unsigned variable types as appropriate
|
#
1.70 |
|
18-Jul-2001 |
thorpej |
bzero -> memset
|
#
1.69 |
|
14-Jun-2001 |
itojun |
branches: 1.69.2; change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. 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.
|
Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
|
#
1.68 |
|
13-Apr-2001 |
thorpej |
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
|
#
1.67 |
|
17-Jan-2001 |
thorpej |
branches: 1.67.2; Fix a rather annoying problem where the sockaddr_dl which holds the link level name for the interface (ifp->if_sadl) is allocated before ifp->if_addrlen is initialized, which could lead to allocating too little space for the link level address.
Do this by splitting allocation of the link level name out of if_attach() and into if_alloc_sadl(), which is normally called by functions like ether_ifattach(). Network interfaces which don't have a link-specific attach routine must call if_alloc_sadl() themselves (example: gif).
Link level names are freed by if_free_sadl(), which can be called from e.g. ether_ifdetach(). Drivers never need call if_free_sadl() themselves as if_detach() will do it if it is not already done.
While here, add the ability to pass an AF_LINK address to SIOCSIFADDR in ether_ioctl() (this is what caused me to notice the problem that the above fixes).
|
#
1.66 |
|
15-Jan-2001 |
thorpej |
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
|
#
1.65 |
|
18-Dec-2000 |
thorpej |
Fill in if_dlt.
|
#
1.64 |
|
18-Dec-2000 |
thorpej |
Add ALTQ support.
|
#
1.63 |
|
12-Dec-2000 |
thorpej |
Adapt to bpfattach() changes, and further centralize the bpfattach() and bpfdetach() calls into link-type subroutines where possible.
|
#
1.62 |
|
26-Oct-2000 |
wiz |
Fix typo (thinko?), which didn't allow MRU to be set below the default value (instead of the minimum value). Patch supplied by Stephen Degler in PR #9945, and reviewed by Ignatios Souvatzis.
|
#
1.61 |
|
06-Oct-2000 |
onoe |
unique #include opt_inet.h
|
#
1.60 |
|
04-Oct-2000 |
itojun |
need opt_inet.h for #ifdef INET
|
#
1.59 |
|
02-Oct-2000 |
itojun |
enable VJC only with INET
|
Revision tags: netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
#
1.58 |
|
30-Mar-2000 |
augustss |
branches: 1.58.4; Kill some more register declarations.
|
#
1.57 |
|
23-Mar-2000 |
thorpej |
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
#
1.56 |
|
27-Nov-1999 |
hannken |
Fix typo introduced in rev. 1.55. It caused IP6 packets to be sent as AF_UNSPEC instead of AF_INET6.
|
Revision tags: comdex-fall-1999-base fvdl-softdep-base chs-ubc2-base
|
#
1.55 |
|
30-Jul-1999 |
itojun |
branches: 1.55.2; 1.55.8; remove reference to in6_systm.h (file itself will be removed afterwords)
|
#
1.54 |
|
01-Jul-1999 |
itojun |
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628. (Sorry for a big commit, I can't separate this into several pieces...) Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.
- sys/kern: do not assume single mbuf, accept chained mbuf on passing data from userland to kernel (or other way round). - "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ package (ftp://ftp.csl.sony.co.jp/pub/kjc/). - sys/netinet/tcp*: IPv4/v6 dual stack tcp support. - sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those file to be there so we patch it up. - sys/netinet: IPsec additions are here and there. - sys/netinet6/*: most of IPv6 code sits here. - sys/netkey: IPsec key management code - dev/pci/pcidevs: regen
In my understanding no code here is subject to export control so it should be safe.
|
#
1.53 |
|
14-May-1999 |
tron |
Fix compilation problem caused by recent changes to filtering code.
|
#
1.52 |
|
12-May-1999 |
thorpej |
Decouple inbound and outbound filters. Now instead of using "active-filter" and "pass-filter" and "inbound" and "outbound" qualifiers in the filter expression, use new "active-filter-in", "active-filter-out", "pass-filter-in", and "pass-filter-out" without these qualifiers.
This is necessary due to the horrible, awful way "inbound" and "outbound" were specified for the filter programs when a packet was passed through them. Basically, the "address" byte in the serial PPP header was overwritten with a value to indicate the direction. However, the "address" byte doesn't even exist on PPP headers for all other PPP encaps! So, this old method worked only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
|
#
1.51 |
|
11-May-1999 |
thorpej |
* Start out with a data link type of DLT_NULL. When we change an interface to serial encap, change its data link type to DLT_PPP_SERIAL. * Work around some serious bogosity in the filtering code which utterly breaks proper functioning of BPF. The PPP code and pppd(8) WILL be changed to fix this.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
#
1.50 |
|
09-Jan-1999 |
thorpej |
branches: 1.50.4; 1.50.6; Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking 2 bits.
|
#
1.49 |
|
10-Dec-1998 |
christos |
Revert IPX changes that I committed accidentally.
|
#
1.48 |
|
10-Dec-1998 |
christos |
defopt
|
Revision tags: kenh-if-detach-base chs-ubc-base
|
#
1.47 |
|
03-Sep-1998 |
christos |
branches: 1.47.4; PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
|
#
1.46 |
|
02-Aug-1998 |
sommerfe |
Fix PR5898: ppp delays last packet.
|
Revision tags: eeh-paddr_t-base
|
#
1.45 |
|
09-Jul-1998 |
thorpej |
Glue in fast forwarding.
|
#
1.44 |
|
08-Jul-1998 |
sommerfe |
Only run pppasyncstart (sc->sc_start) from the netisr handler. This allows pppoutput to be called from splimp (e.g., when ipflow is in use.) without requiring pppasyncstart to run at splimp. This is believed to fix PR5624.
|
#
1.43 |
|
06-Jul-1998 |
jtk |
use #ifdef INET so this compiles again
|
#
1.42 |
|
05-Jul-1998 |
jonathan |
defopt INET, NETATALK.
|
#
1.41 |
|
02-May-1998 |
christos |
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates zlib. Maybe we can merge our other copy of zlib with this one now and avoid having two copies?
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base thorpej-signal-base marc-pcmcia-bp marc-pcmcia-base
|
#
1.40 |
|
16-Jun-1997 |
christos |
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
|
#
1.39 |
|
17-May-1997 |
christos |
Update to ppp-2.3b5
|
#
1.38 |
|
16-Apr-1997 |
is |
Made pppoutput() public again on behalf of Martin Husemann (PR 3455). Apparently, the BISDN package uses this function.
|
Revision tags: is-newarp-before-merge
|
#
1.37 |
|
12-Mar-1997 |
christos |
Update to ppp-2.3b4; from Paul Mackerras
|
#
1.36 |
|
04-Mar-1997 |
mycroft |
Use splimp() to block interrupts, not splhigh().
|
Revision tags: is-newarp-base
|
#
1.35 |
|
13-Oct-1996 |
christos |
branches: 1.35.4; backout previous kprintf change
|
#
1.34 |
|
10-Oct-1996 |
christos |
- printf -> kprintf, sprintf -> ksprintf
|
#
1.33 |
|
13-Jun-1996 |
cgd |
no need for a local implementation of SIOCGIFMTU; delete it.
|
#
1.32 |
|
22-May-1996 |
mycroft |
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait. Remove SS_PRIV completely.
|
Revision tags: netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
#
1.31 |
|
07-May-1996 |
thorpej |
branches: 1.31.4; Changed struct ifnet to have a pointer to the softc of the underlying device and a printable "external name" (name + unit number), thus eliminating if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)() to take a struct ifnet *, rather than a unit number.
|
#
1.30 |
|
19-Mar-1996 |
paulus |
Make inclusion of the PPP BSD-Compress and Deflate compressors dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration options, respectively.
|
#
1.29 |
|
15-Mar-1996 |
paulus |
Added packet filtering, support for "PPP Deflate" packet compression, trivial multicast support, and support for xon/xoff output flow control to the PPP subsystem. Fixed several bugs, including making the accumulation and resetting of statistics more consistent. State for the VJ compressor is now dynamically allocated.
|
#
1.28 |
|
13-Feb-1996 |
christos |
Net prototypes
|
#
1.27 |
|
07-Feb-1996 |
pk |
wrt. previous change: can't compute `ilen' that early; just do computation separately when logging. Notes: consider using mbuf pkthdr length field in PPP code. condider doing packet log after de-compression.
|
#
1.26 |
|
07-Feb-1996 |
pk |
Init variable before use (PRs 1646 & 2042).
|
#
1.25 |
|
27-Dec-1995 |
mycroft |
Remove old workaround for a bug.
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
#
1.24 |
|
05-Oct-1995 |
mycroft |
Add some missing statistics. From Thorsten Lockert.
|
#
1.23 |
|
12-Aug-1995 |
mycroft |
splnet --> splsoftnet
|
#
1.22 |
|
04-Jul-1995 |
paulus |
Latest version of PPP stuff, with packet compression and other improvements. The PPP kernel code is now split into if_ppp.c, containing generic PPP support, and ppp_tty.c, which specifically supports PPP on async tty devices (as a line discipline). This is so that other devices can be supported without making them look like ttys.
|
#
1.21 |
|
08-Mar-1995 |
cgd |
fixed sized types, where appropriate. when casting pointers to integers to do math on them, cast to long. ioctl commands are u_longs.
|
#
1.20 |
|
30-Oct-1994 |
cgd |
be more careful with types, also pull in headers where necessary.
|
#
1.19 |
|
27-Jul-1994 |
deraadt |
bug 367. paulus says the fix is right & critical.
|
#
1.18 |
|
20-Jul-1994 |
paulus |
The ppp interface now retries the mbuf allocation when it receives a character and it doesn't already have enough space allocated. It still needs cluster mbufs to be able to decompress VJ-compressed packets. It drops packets if it can't allocate mbufs rather than taking the interface down.
|
#
1.17 |
|
20-Jul-1994 |
paulus |
Due to popular revulsion, the ppp interface now drops packets if
|
#
1.16 |
|
18-Jul-1994 |
paulus |
If we can't get mbuf clusters, take the ppp interface down instead of writing beyond the end of ordinary mbufs.
|
Revision tags: netbsd-1-0-base
|
#
1.15 |
|
03-Jul-1994 |
deraadt |
branches: 1.15.2; bug #319. fix from <alasdair@wildcat.demon.co.uk>
|
#
1.14 |
|
29-Jun-1994 |
cgd |
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
#
1.13 |
|
20-Jun-1994 |
paulus |
Some restructuring of the PPP packet input procedure to make it easier to implement PPP over sync lines and PPP compression protocols.
|
#
1.12 |
|
14-Jun-1994 |
paulus |
some minor splx-type bug fixes from christos@deshaw.com.
|
#
1.11 |
|
29-May-1994 |
paulus |
check for escaped char before checking for escape char so if peer escapes 0x5d we interpret it correctly
|
#
1.10 |
|
24-May-1994 |
cgd |
MIN -> min, MAX -> max
|
#
1.9 |
|
13-May-1994 |
mycroft |
Update to 4.4-Lite networking code, with a few local changes.
|
#
1.8 |
|
08-May-1994 |
paulus |
Version from ppp-2.1 release; this version has been restructured to make more of the code usable with sync serial drivers
|
#
1.7 |
|
25-Jan-1994 |
deraadt |
PPP_HEADER_LEN -> PPP_HDRLEN
|
#
1.6 |
|
23-Dec-1993 |
cgd |
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter exists at all, it's supposed to be included by <machine/cpu.h>
|
#
1.5 |
|
18-Dec-1993 |
mycroft |
Canonicalize all #includes.
|
#
1.4 |
|
04-Nov-1993 |
paulus |
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether to call pppstart or not: now we call pppstart for every packet, which should aid recovery from lost transmitter interrupts. Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
|
Revision tags: magnum-base
|
#
1.3 |
|
02-Sep-1993 |
paulus |
branches: 1.3.2; Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
|
#
1.2 |
|
31-Aug-1993 |
paulus |
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive" traffic (done in a similar fashion to if_sl.c), and BPF support.
|
#
1.1 |
|
14-Aug-1993 |
deraadt |
ppp from paul mackerras
|