summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ppp.c
Commit message (Collapse)AuthorAgeFilesLines
* 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..
* Fix GCC warnings caused by initializing a zero length array. In the process,archie2002-05-311-13/+13
| | | | | | | 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
* 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
* Fix another bug in handling of multi-link sequence numbers.archie2002-02-131-3/+4
| | | | MFC after: 1 week
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-11/+11
| | | | also don't use ANSI string concatenation.
* Fix some memory leaksjulian2001-01-101-9/+15
| | | | Add memory leak detection assitance.
* Part 2 of the netgraph rewrite.julian2001-01-081-51/+51
| | | | | | 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-95/+139
| | | | | | | | 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)
* Use "node->ID" for the node's ID, instead of "(long)node".archie2000-12-181-5/+1
| | | | Reported by: julian
* Reviewed by: Archie@freebsd.orgjulian2000-12-121-7/+9
| | | | | | | | | | | | | 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 :-)
* Add the use of M_ZERO to netgraph.dwmalone2000-11-181-2/+1
| | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Submitted by: archie Approved by: archie
* In preparation for deprecating CIRCLEQ macros in favor of TAILQmckusick2000-11-151-35/+34
| | | | | | | macros which provide the same functionality and are a bit more efficient, convert use of CIRCLEQ's in netgraph PPP code to TAILQ's. Reviewed by: Archie Cobbs <archie@dellroad.org>
* More complete fix for multi-link sequence number handling bugs.archie2000-10-061-39/+81
| | | | Add a new control message for querying the sequence number state.
* Fix bug in handling of multi-link sequence numbers.archie2000-10-061-2/+4
| | | | Reported by: Becca Anderson <becca@worldint.com>
* Remove unnecessary #include's as reported by phk's script.archie2000-09-221-1/+0
|
* Allocate all memory (including within node constructors) with M_NOWAITarchie2000-09-211-1/+1
| | | | instead of M_WAITOK, to allow for maximum flexibility.
* Oops, previous commit fixed a bug that was already fixed before.archie2000-08-101-2/+0
| | | | Back it out.
* Fix bug where bundle-level receive statistics were not getting updated.archie2000-08-091-0/+2
|
* Fix bug where receive statistics for the bundle were not getting updated.archie2000-06-011-0/+4
|
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Fix broken multi-link fragment reassembly algorithm.archie2000-05-021-230/+666
| | | | | | Add hook for IPv6. Misc cleanups. PR: kern/16335
* Two simple changes to the kernel internal API for netgraph modules,julian2000-04-281-3/+6
| | | | | | | to support future work in flow-control and 'packet reject/replace' processing modes. reviewed by: phk, archie
* Fix a few obscure memory leaks.archie2000-01-051-5/+11
|
* Fix bugs in the MP fragment reassembly code that can cause a panic.archie1999-12-171-26/+32
|
* Remove a bunch of un-needed includes.julian1999-12-071-2/+0
| | | | Submitted by: phk@freebsd.org
* Add two new generic control messages, NGM_ASCII2BINARY andarchie1999-11-301-2/+76
| | | | | | | | | | | | | | | | | | | | | | | NGM_BINARY2ASCII, which convert control messages to ASCII and back. This allows control messages to be sent and received in ASCII form using ngctl(8), which makes ngctl a lot more useful. This also allows all the type-specific debugging code in libnetgraph to go away -- instead, we just ask the node itself to do the ASCII translation for us. Currently, all generic control messages are supported, as well as messages associated with the following node types: async, cisco, ksocket, and ppp. See /usr/share/examples/netgraph/ngctl for an example of using this. Also give ngctl(8) the ability to print out incoming data and control messages at any time. Eventually nghook(8) may be subsumed. Several other misc. bug fixes. Reviewed by: julian
* Change the prototype of the strto* routines to make the secondarchie1999-11-241-1/+2
| | | | | | | | | | | parameter a char ** instead of a const char **. This make these kernel routines consistent with the corresponding libc userland routines. Which is actually 'correct' is debatable, but consistency and following the spec was deemed more important in this case. Reviewed by (in concept): phk, bde
* Fix bug where hook pointers were not getting updated on disconnection.archie1999-11-191-4/+18
|
* More bug fixes.archie1999-11-101-17/+21
|
* Move handling of the address and control fields into the PPP node;archie1999-11-101-64/+83
| | | | | they belong there because they are device independent. Also some other misc. fixes.
* Fix several bugs found in the first bit of testing.archie1999-11-061-35/+52
|
* Move isfoo() and friends to the newly created sys/ctype.h.phk1999-11-031-0/+1
| | | | Urged by: bde
* Simplify checking/parsing of strings using strtoul(), isdigit(), etc.archie1999-11-021-19/+10
|
* Fix some bugs in MP allocation routine when links are non-equivalent.archie1999-11-011-12/+29
|
* Add typedefs for node methodsjulian1999-11-011-8/+7
| | | | Suggested by phk.
* Revamped and more useful PPP node type, supporting multi-link PPP directly.archie1999-10-291-155/+1153
| | | | | | | | | | | This is one piece of the grand unified PPP daemon concept, whereby using netgraph nodes enables PPP data to be handled completely in kernel land, while leaving negotiation/control to be handled by a single user land daemon, no matter what the link type(s). This is a safety checkin only; it compiles, but is utterly untested. Concept reviewed by: julian, brian
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-211-0/+406
Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
OpenPOWER on IntegriCloud