summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
Commit message (Collapse)AuthorAgeFilesLines
* 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
* NUL terminate the ACNAME passed to userland.brian2002-06-221-3/+4
|
* A node that creates a device entry in /dev (yay devfs)julian2002-06-182-0/+681
| | | | | | | | | | so that /dev/mumble can be the entrypoint to some networking graph, e.g. a tunnel or a remote tape drive or whatever... Not fully tested (by me) yet. Submitted by: Mark Santcroos <marks@ripe.net> MFC after: 3 weeks
* if you have taken the mbuf out of the message object, then if you passjulian2002-06-091-1/+3
| | | | the object to someone else, you need to put the mbuf back into it first..
* Const'ify variables to make it clear we're not writing to the mbuf data.archie2002-06-055-49/+53
| | | | | Reviewed by: julian, brian MFC after: 1 week
* Fix bug where an mbuf was being written to without checking M_WRITABLE().archie2002-06-051-57/+24
| | | | | | | | Eliminate some of the unnecessary complexity of ng_ether_glueback_header(). Simplify two functions a bit by doing the NG_FREE_META(meta) earlier. Reviewed by: julian, brian MFC after: 1 week
* Fix bugs where mbuf data was being accessed without m_pullup().archie2002-06-051-7/+43
| | | | | Reviewed by: julian, brian MFC after: 1 week
* Declare a variable sized array within a structure using [] rather than [0]alfred2002-06-011-1/+1
| | | | to silence warnings.
* Fix GCC warnings caused by initializing a zero length array. In the process,archie2002-05-3133-257/+159
| | | | | | | simply things a bit by getting rid of 'struct ng_parse_struct_info' which was useless because it only contained one field. MFC after: 2 weeks
* Back out my lats commit of locking down a socket, it conflicts with hsu's work.tanimura2002-05-312-65/+11
| | | | Requested by: hsu
* Fix warnings: deprecated use of label at end of compound statementpeter2002-05-242-1/+2
|
* Lock down a socket, milestone 1.tanimura2002-05-202-11/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a socket buffer. The mutex in the receive buffer also protects the data in struct socket. o Determine the lock strategy for each members in struct socket. o Lock down the following members: - so_count - so_options - so_linger - so_state o Remove *_locked() socket APIs. Make the following socket APIs touching the members above now require a locked socket: - sodisconnect() - soisconnected() - soisconnecting() - soisdisconnected() - soisdisconnecting() - sofree() - soref() - sorele() - sorwakeup() - sotryfree() - sowakeup() - sowwakeup() Reviewed by: alfred
* Add a NGM_PPPOE_SESSIONID message to the ng_pppoe node.brian2002-05-142-1/+21
| | | | | | | This message is sent to the control socket when the SessionID is established. Approved by: archie (after a very cursory glance)
* Don't send packets out an interface unless it is IFF_UP|IFF_RUNNING.archie2002-05-091-2/+10
| | | | | | | This fixes panics with certain Ethernet drivers when doing bridging, PPPoE, etc. before the driver has been fully brought up. MFC after: 1 week
* Revert the change of #includes in sys/filedesc.h and sys/socketvar.h.tanimura2002-04-301-3/+5
| | | | | | | | | | Requested by: bde Since locking sigio_lock is usually followed by calling pgsigio(), move the declaration of sigio_lock and the definitions of SIGIO_*() to sys/signalvar.h. While I am here, sort include files alphabetically, where possible.
* Use 'struct callout' instead of 'struct callout_handle' to avoidarchie2002-04-141-25/+81
| | | | | | | | | | | exhausting the kernel timeout table. Perform the usual gymnastics to avoid race conditions between node shutdown and timeouts occurring. Also fix a bug in handling ack delays < PPTP_MIN_ACK_DELAY. Before, we were ack'ing immediately. Instead, just impose a minimum ack delay time, like the name of the macro implies. MFC after: 1 week
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-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-012-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@
* Fix bugs where the ng_ppp node could transmit PPP frames whose lengtharchie2002-03-151-4/+18
| | | | | | exceeded the peer's configured MRU or MRRU. MFC after: 1 week
* Official timeout routines for netgraph nodes that know how tojulian2002-03-052-0/+66
| | | | | | use (and abuse) the node locking system. MFC after: 1 week
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-1/+1
| | | | reference.
* Send a NGM_PPPOE_ACNAME message to userland when a node is connected.brian2002-02-202-2/+25
| | | | | | Submitted by: Andre Albsmeier <andre@albsmeier.net> Shuffled about by: brian Approved by: julian
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
OpenPOWER on IntegriCloud