summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ksocket.h
Commit message (Collapse)AuthorAgeFilesLines
* Use variable-sized arrays where appropriate.ru2005-10-281-1/+1
|
* When netgraph(4) was converted to use mbuf_tags(9) instead of meta-dataglebius2005-02-121-0/+1
| | | | | | | | | | | | | a definite setup was broken: two ng_ksockets are connected to each other, connect()ed to different remote hosts, and bind()ed to different local interfaces. In this case one ng_ksocket is fooled with tag from the other one. Put node id into tag. In rcvdata method utilize tag only if it has our own id inside or id equals zero. The latter case is added to support packets send by some third, not ng_ksocket node. MFC after: 1 week
* /* -> /*- for license, minor formatting changesimp2005-01-071-2/+3
|
* oops from Gleb..julian2004-06-251-0/+3
| | | | | | This shouldn't be visible from userland. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
* Convert Netgraph to use mbuf tags to pass its meta information around.julian2004-06-251-2/+8
| | | | | | | | Thanks to Sam for importing tags in a way that allowed this to be done. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Also allow the sr and ar drivers to create netgraph versions of their modules. Document the change to the ksocket node.
* Use a single style of multiple inclusion protection for Netgraph headers.ru2003-11-111-3/+3
| | | | Reviewed by: archie, harti, emax
* Fix GCC warnings caused by initializing a zero length array. In the process,archie2002-05-311-5/+1
| | | | | | | 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
* When a socket is not connected, allow the peer "struct sockaddr"archie2001-11-281-0/+3
| | | | | | | | to be included in the meta information that is associated with incoming and outgoing packets. Reviewed by: julian MFC after: 1 week
* First pass at porting John's "accept" changes tojulian2001-09-071-0/+17
| | | | | | | | | | | | allow an in-kernel webserver (or similar) to accept and handle incoming connections using netgraph without ever leaving the kernel. (allows incoming tunnel requests to be handled totally within the kernel for example) Needs work, but shouldn't break existing functionality. Submitted by: John Polstra <jdp@polstra.com> MFC after: 2 weeks
* Since neither archie nor I work at Whistle any more, change our emailjulian2000-10-241-1/+1
| | | | | | addresses to be the more usefu @freebsd.org ones so we can keep getting bug-reports. - man pages to follow..
* "u_int32_t" should have been "int32_t".archie2000-08-101-2/+2
|
* Add two new generic control messages, NGM_ASCII2BINARY andarchie1999-11-301-0/+22
| | | | | | | | | | | | | | | | | | | | | | | 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
* New netgraph node type "ksocket".archie1999-11-161-0/+62
Obtained from: Whistle source tree
OpenPOWER on IntegriCloud