summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
Commit message (Collapse)AuthorAgeFilesLines
* Use the <sys/bitstring.h> rather than <bitstring.h>phk2003-06-135-5/+5
|
* fix a cut-n-paste error.julian2003-05-151-1/+1
| | | | | | | | in the case where the bridge node was closed down but a timeout still applied to it, the final reference to the node was freeing the private data structure using the wrong malloc type. Approved by: re@
* Last commit of the bluetooth upgrade. (this patch was forgotten in the firstjulian2003-05-101-2/+2
| | | | | | | commit) Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com> Approved by: re@
* Part one of undating the bluetooth code to the newest versionjulian2003-05-1053-1472/+7187
| | | | | Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com> Approved by: re@
* Deprecate machine/limits.h in favor of new sys/limits.h.kan2003-04-292-3/+2
| | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Add missing braces.archie2003-04-281-1/+2
| | | | Submitted by: Andrew Lankford <arlankfo@141.com>
* Remove extraneous reference to intrq.h, which broke the kernel build.rwatson2003-04-211-1/+0
|
* KASSERT that NG_MKMESSAGE() is not called with mbuf flags.phk2003-04-181-0/+4
|
* Introduce an M_ASSERTPKTHDR() macro which performs the very common taskdes2003-04-083-7/+4
| | | | | | | of asserting that an mbuf has a packet header. Use it instead of hand- rolled versions wherever applicable. Submitted by: Hiten Pandya <hiten@unixdaemons.com>
* Don't use ovbcopy().des2003-04-042-2/+2
|
* Include correct opt_* headers for supported address families. Dike outjlemon2003-03-081-10/+5
| | | | | | the unused ATM cases. Sponsored by: DARPA, NAI Labs
* Fix a use-after-free bug that could cause multi-link fragment reassembly toarchie2003-03-051-2/+4
| | | | | | | fail for a long time (until the incoming sequence numbers wrapped around). Reported by: Matthew Impett <mimpett@Glue.umd.edu> MFC after: 3 days
* Finish driving a stake through the heart of netns and the associatedpeter2003-03-054-9/+0
| | | | | | ifdefs scattered around the place - its dead Jim! The SMB stuff had stolen AF_NS, make it official.
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-043-6/+50
| | | | | | | | | | 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-031-13/+8
| | | | | | | | | | | | | 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)
* Add two loader tuneables that allow one to change the maximum number ofharti2003-03-021-1/+11
| | | | | | | | | | | | | | | | | | queue items that can be allocated by netgraph and the number of free queue items that are cached on a private list. Netgraph places an upper limit on the number of queue items it may allocate. When there is a large number of netgraph messages travelling through the system (100k/sec and more) there is a high probability, that messages get queued at the nodes and netgraph runs out of queue items. In this case the data flow through netgraph gets blocked. The tuneable for the number of free items lets one trade memory for performance. The tunables are also available as read-only sysctls. PR: kern/47393 Reviewed by: julian Approved by: jake (mentor)
* Some more updates for the new world order:wpaul2003-02-261-24/+37
| | | | | | | | | | | | | | | | | | | | - Make transmission of packets work again. This stopped working because ether_ifattach() was forcing ifp->if_output to be ether_output() and clobbering our attempt to override this vector with a pointer to ng_fec_output(). Move the overriding of ifp->if_output to after ether_ifattach(). - Abandon the use of the netgraph ng_ether_input_p hook for snagging incoming frames, and instead override the ifp->if_input vector for interfaces that have been aggregated into our bundle. (I would have loved to have written things this way in the first place, but I didn't want to have to be the one to implement the if_input hook and change all the drivers.) This avoids collisions with the ng_ether module, which uses the same hook. Each aggregated device now calls ng_fec_input() directly, which then fakes up the rcvif pointer before invoking ifp->if_input itself. This module should actually work now.
* Attempt to make the ng_fec module play nice with BPF again. Things havewpaul2003-02-261-16/+6
| | | | | | | | | | | | | | | changed since this code was written: - The ng_ether_input_p hook only accepts two arguments now: the pointer to the ether header structure is gone. - It's no longer necessary to cons up a fake ether header before passing incoming packets to BPF_MTAP(). ng_fec_input() has been modified to account for these two changes. Running tcpdump on fec0 should work now. PR: kern/46720
* Introduce a new taskqueue that runs completely free of Giant, and inscottl2003-02-263-7/+7
| | | | | | | turns runs its tasks free of Giant too. It is intended that as drivers become locked down, they will move out of the old, Giant-bound taskqueue and into this new one. The old taskqueue has been renamed to taskqueue_swi_giant, and the new one keeps the name taskqueue_swi.
* Back out M_* changes, per decision of the TRB.imp2003-02-1933-91/+91
| | | | Approved by: trb
* Take the rc4 code out of ng_mppc module so we don't fail to load whenambrisko2003-02-051-0/+5
| | | | | | | we have the rc4 code already in the kernel (via wlan stuff or awi). Add a dependency on the rc4 module so if it doesn't exist then load it. Reviewed by: archie
* Catch more uses of MIN().alfred2003-02-021-3/+0
|
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-2133-91/+91
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Bow to the whining masses and change a union back into void *. Retaindillon2003-01-131-1/+1
| | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it.
* Change struct file f_data to un_data, a union of the correct structdillon2003-01-121-1/+1
| | | | | | | | | | pointer types, and remove a huge number of casts from code using it. Change struct xfile xf_data to xun_data (ABI is still compatible). If we need to add a #define for f_data and xf_data we can, but I don't think it will be necessary. There are no operational changes in this commit.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-013-5/+5
| | | | especially in troff files.
* Make ng_fec.c compile again since Sam's changes.julian2002-12-231-5/+8
| | | | Submitted by: Hiten Pandya (hiten@unixdaemons.com)
* SMP locking for ifnet list.hsu2002-12-223-0/+6
|
* o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} andbmilekic2002-12-199-15/+15
| | | | | | | | | | the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}. o Fix a bpf_compat issue where malloc() was defined to just call bpf_alloc() and pass the 'canwait' flag(s) along. It's been changed to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT flag (and only one of those two). Submitted by: Hiten Pandya <hiten@unixdaemons.com> (hiten->commit_count++)
* Fix two bugs:archie2002-12-141-12/+27
| | | | | | | | (a) Save control message return address only if NGM_MPPC_CONFIG_DECOMP (b) Properly count the number of required re-key operations when we loose synchronization and have to resync MFC after: 3 days
* fixes for this driver:julian2002-11-261-2/+38
| | | | | | | | 1) "ubt" driver did not work when system is booted with the device attached 2) missing "break;" in ubt_rcvmsg() function; Submitted by: Maksim Yevmenkin <Maksim.Yevmenkin@cw.com> Approved by: re (jhb)
* The second try a committing the bluetooth codejulian2002-11-2050-0/+26141
| | | | | | | | | | | | | | | | Has been seen to work on several cards and communicating with several mobile phones to use them as modems etc. We are still talking with 3com to try get them to allow us to include the firmware for their pccard in the driver but the driver is here.. In the mean time it can be downloaded from the 3com website and loaded using the utility bt3cfw(8) (supplied) (instructions in the man page) Not yet linked to the build Submitted by: Maksim Yevmenkin <myevmenk@exodus.net> Approved by: re
* o track changes to ethernet input packet handlingsam2002-11-143-96/+22
| | | | | | | | o track changes to bpf o track changes to make ng hooks more private Reviewed by: many Approved by: re
* Use intptr_t to fix various sizeof(int) != sizeof(void *) warnings.jhb2002-11-084-12/+12
|
* Use %z to print a size_t value.jhb2002-11-081-1/+1
|
* Slight redesign for fitting in with -current.julian2002-11-051-27/+50
|
* The easy part of converting the ng_source node to -current.julian2002-11-021-54/+50
| | | | More to come.. does not compile (deliberatly.. logic broken)
* Whitespace fixesjulian2002-11-021-47/+28
|
* ifnet_addrs doesn;t exist any more so usejulian2002-11-011-3/+3
| | | | | | | TAILQ_FIRST(&ifp->if_addrhead) to find the link layer ifaddr. (it's always first I believe) Allows this to compile on -current. .. need testers with FEC capable switches..
* Add the netgraph 'source' module.julian2002-10-312-0/+776
| | | | | | | | | | | | | This is NOT YET CONVERTED TO -current. This node is a source for preprogrammed packets at a known rate for testing. I will convert it to -current "in place" but will MFC teh original pre-conversion variant as that is what is originally submitted. Man page my me, info from Dave's README. Submitted by: Dave Chapeskie <dchapeskie@SANDVINE.com> Obtained from: Sandvine inc. MFC after: 1 week
* Finally get around to committing Bill Paul's FEC netgraph nodes.julian2002-10-292-0/+1311
| | | | | | | | | These are really only partly netgraph nodes as they do not use the netgraph interfaces for many of the functions for which they could be used, however they represent important functionality. Submitted by: wpaul MFC after: 2 days
* Use if_printf(ifp, "blah") instead ofbrooks2002-10-211-1/+1
| | | | printf("%s%d: blah", ifp->if_name, ifp->if_xname).
* use __packed.alfred2002-09-232-5/+5
|
* Reference the socket we're accepting.benno2002-09-141-0/+2
|
* Relax checking of incoming PPTP GRE packets a bit: ignore a bogus payloadarchie2002-09-141-1/+1
| | | | | length field when there's no payload indicated by the header 'S' bit. This works around semi-brokenness in the Mac OS X PPTP client.
* Remember who asked for a connect or accept operation so we can actually tellbenno2002-09-111-2/+2
| | | | | | them when it's done. Reviewed by: archie
* Don't use "NULL" when "0" is really meant.archie2002-08-228-18/+18
|
* New L2TP netgraph node type.archie2002-08-202-0/+1640
| | | | Obtained from: Packet Design
* When declaring local variables in macros, always use "_name" insteadarchie2002-08-201-33/+34
| | | | | of "name" to avoid ugly problems when the containing code already has a variable named "name".
* Make the consumers of the linker_load_file() function usemux2002-08-021-1/+1
| | | | | | | | | | | | | linker_load_module() instead. This fixes a bug where the kernel was unable to properly locate and load a kernel module in vfs_mount() (and probably in the netgraph code as well since it was using the same function). This is because the linker_load_file() does not properly search the module path. Problem found by: peter Reviewed by: peter Thanks to: peter
OpenPOWER on IntegriCloud