summaryrefslogtreecommitdiffstats
path: root/sys/i4b/driver
Commit message (Collapse)AuthorAgeFilesLines
* Use __FBSDID().obrien2003-06-107-21/+21
|
* Fix systematic off-by-one errors in unit number range checks.phk2003-05-311-1/+1
| | | | Found by: FlexeLint
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-041-1/+1
| | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-034-52/+29
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-023-25/+25
|
* NODEVFS cleanup:phk2003-02-264-64/+0
| | | | | Don't call cdevsw_{add,remove}() Remove remnants of the previous DEVFS.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Fix another typo in a comment which I noticed while doing the MFC.gj2003-02-061-1/+1
|
* Fix some typos in 3 comments.gj2003-02-011-4/+5
| | | | Reported by: marius@alchemy.franken.de
* Add a fix for the case where the dialout fails. In this case the ispgj2003-01-301-0/+13
| | | | | | | | | | | | interface was left in an active, but not connected, state, which resulted in data being sent to it and the transmit queue filling up. This happened because the driver never informed sppp that it shoulkd clean up the connection. This fix informs sppp that it should clean things up. The fix was actually developed and tested under -stable, so a short MFC period seems appropriate, say 2 days. Contributed by: Ari Suutari <ari.suutari@syncrontech.com>
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* network interface and link layer changes:sam2002-11-152-6/+4
| | | | | | | | | | | | o on input don't strip the Ethernet header from packets o input packet handling is now done with if_input o track changes to ether_ifattach/ether_ifdetach API o track changes to bpf tapping o call ether_ioctl for default handling of ioctl's o use constants from net/ethernet.h where possible Reviewed by: many Approved by: re
* Don't include the depricated "bpf.h" and always compile in bpf supportbrooks2002-10-212-21/+1
| | | | as per current practice.
* Continue de-counting i4b. Devices i4bctl, i4bcapi, iavc, i4bq921,brooks2002-09-027-34/+0
| | | | | | | | i4bq931, i4b, isic, iwic, ifpi, ifpi2, ifpnp, ihfc, and itjc are no longer count devices. Also remove a few other instances of N<DEVICE> being used to control compilation of whole files. Reviewed by: hm
* Bugfix to enable dialer "connected" response.hm2002-08-271-3/+12
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-1/+1
|
* Unbreak LINT by compensating for thealfred2002-06-011-4/+3
| | | | ng_parse_struct_info -> ng_parse_struct_field change.
* Oops, I missed this warning. Comment out extra junk after #endifpeter2002-05-241-1/+1
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-044-6/+6
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-2/+2
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,hm2002-03-177-955/+95
| | | | | OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's, remove #if(def)s and respective code for FreeBSD versions < 5 .
* remove BSD/OS specific ppp-interface file since the FreeBSD-BSD/OS mergerhm2002-03-091-562/+0
| | | | is IMHO likely not to happen anymore ...
* After joergs merge of i4b's sppp with the main sppp, remove obsolete file.hm2002-03-091-4687/+0
|
* Remove unused includes.joerg2001-12-311-7/+0
|
* Fix two typos in previous commit.joerg2001-12-301-1/+1
|
* Remove references to i4b/driver/i4b_ispppsubr.c, now thatjoerg2001-12-301-41/+0
| | | | | | | | net/if_spppsubr.c has all its features. Hooray, it's gone! MFC after: 1 month
* Protect mtx_init() invocations with mtx_intialized() checks to avoid agj2001-12-305-8/+16
| | | | | | | reported panic. Submitted by: Alexander Leidinger <Alexander@Leidinger.net> (partly) MFC after: 4 weeks
* fix kvprintf panic in attach routinehm2001-10-241-6/+1
|
* Add experimental support for sending keypad facility messages.hm2001-10-181-94/+13
| | | | MFC after: 2 months
* sppp rewrites the interface's ip address directly; this breaks when thejlemon2001-10-011-1/+7
| | | | | | | address is looked up via a hash table. Add a hack to move the entry to a new hash bucket when the address changes. Submitted by: tmm
* KSE Milestone 2julian2001-09-124-48/+48
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Submitted by: Juha-Matti Liukkonen, Cubical Solutions Ltd (jml@cubical.fi)hm2001-05-211-4/+4
| | | | | | | | | | | Reviewed by: hm Bug in i4btel driver read routine corrected. The conditions in the while() clause caused the receive queue to be referenced before checking if a channel is connected, leading to kernel panic (do a 'dd if=/dev/i4btel0 of=/dev/null' on an unconnected tel device, panic will follow). Correction was to reorder the while clause conditions to check for connectedness first.
* pseudo-device -> device in kernel config.schweikh2001-05-011-1/+1
| | | | Reviewed by: joerg, dd
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-264-4/+0
| | | | the bit-bucket.
* (MFC candidate since this is already a merge from /sys/net only.)joerg2001-03-251-2/+16
| | | | | | | | | | Merge rev's 1.65 and 1.66 from sys/net/if_spppsubr.c (implement the `restart' option, and fix a blatant bug with PAP authentication). The i4b implementation of this file should be merged back, but for now, we need this here as well. Reviewed by: gj
* Mechanical change to use <sys/queue.h> macro API instead ofphk2001-02-041-4/+4
| | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
* Stop counting sppp interfaces, we were just testing its presence to givepeter2001-01-291-4/+0
| | | | a warning if it was missing.
* Remove useless variable vjlen.hm2001-01-231-2/+2
| | | | Submitted by: Sergio de Souza Prallon <prallon@tmp.com.br>
* it seems that a commit to i4b/drivers/i4b_ispppsubr.c on 2000-01-12 hashm2001-01-151-2/+2
| | | | | | | broken the handling of uncompressed VJ packets. The attached diff should hopefully fix that. Submitted by: Thomas Moestl <tmoestl@gmx.net> Reviewed by: Sergio de Souza Prallon <prallon@tmp.com.br>
* Reenable support for FreeBSD 4.x and possibly the other supported BSD'shm2001-01-155-159/+243
|
* Fix a bug overwriting random data when Van Jacobsen header compressionhm2001-01-121-11/+21
| | | | | was used with the isp/isppp driver. Submitted by: Sergio de Souza Prallon <prallon@tmp.com.br>
* When queueing a packet, call the output start routine. I botched thisjlemon2001-01-091-1/+1
| | | | | | during the initial ifqueue conversion. Submitted by: Thomas Moestl <tmoestl@gmx.net>
* Part 2 of the netgraph rewrite.julian2001-01-081-16/+15
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-061-30/+50
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-181-1/+1
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* Change initialiser to match new structure layout.julian2000-12-121-1/+0
| | | | | forgotten by: Me Found by: GCC
* Reviewed by: Archie@freebsd.orgjulian2000-12-121-2/+5
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Make log(-1, ...) do what addlog(...) did.phk2000-11-261-97/+97
| | | | | | | | Replace all uses of addlog(...) with log(-1, ...) Remove bogus "register" keywords in subr_prf.c Make log() return void.
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-258-173/+98
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Fix i4b netgraph interface to not kernel panic at boot timehm2000-11-091-2/+13
| | | | | Make code compile and work for FreeBSD 4.x as well as FreeBSD 5.x Submitted by: Michael Reifenberger <root@nihil.plaut.de>
OpenPOWER on IntegriCloud