#
f036d408 |
| 20-Aug-2004 |
Julian Elischer <julian@FreeBSD.org> |
Align netgraph message fields ready for 64-bit (and 128 bit :-) machines. requires a recompile of netgraph users. Also change the size of a field in the bluetooth code that was waiting for the next c
Align netgraph message fields ready for 64-bit (and 128 bit :-) machines. requires a recompile of netgraph users. Also change the size of a field in the bluetooth code that was waiting for the next change that needed recompiles so it could piggyback its way in.
Submitted by: jdp, maksim MFC after: 2 days
show more ...
|
#
7610f574 |
| 27-Jul-2004 |
Gleb Smirnoff <glebius@FreeBSD.org> |
When making a peer of unknown type framework tries to load module using linker_load_module(). This works OK if NGM_MKPEER message came from userland and we have process associated with thread. But wh
When making a peer of unknown type framework tries to load module using linker_load_module(). This works OK if NGM_MKPEER message came from userland and we have process associated with thread. But when NGM_MKPEER was queued because target node was busy, linker_load_module() is called from netisr thread leading to panic. To workaround that we do not load modules by framework, instead ng_socket loads module (if this is required) before sending NGM_MKPEER. However, the race condition between return from NgSendMsg() and actual creation of node still exist and needs to be solved.
PR: kern/62789 Approved by: julian
show more ...
|
#
be4252b3 |
| 20-Jul-2004 |
Julian Elischer <julian@FreeBSD.org> |
Slight cosmetic changes. Also introduce a macro to be called by persistent nodes to signal their persistence during shutdown to hide this mechanism from the node author.
Make node flags have a consi
Slight cosmetic changes. Also introduce a macro to be called by persistent nodes to signal their persistence during shutdown to hide this mechanism from the node author.
Make node flags have a consistent style in naming.
Document the change.
show more ...
|
#
8ed370fd |
| 01-Jul-2004 |
Julian Elischer <julian@FreeBSD.org> |
Remove the home-grown metadata facility in favour of the now generic mbuf tags facility. Netgraph modules will all need a recompile.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
|
#
327b288e |
| 25-Jun-2004 |
Julian Elischer <julian@FreeBSD.org> |
Convert Netgraph to use mbuf tags to pass its meta information around. Thanks to Sam for importing tags in a way that allowed this to be done.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Also
Convert Netgraph to use mbuf tags to pass its meta information around. 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.
show more ...
|
#
991fc65a |
| 29-May-2004 |
Julian Elischer <julian@FreeBSD.org> |
Add a new netgraph method to allow restoration of some behaviour lost in the change from 4.x style netgraph tee nodes. Alter the tee node to use the new method. Document the behaviour.
Step the ABI
Add a new netgraph method to allow restoration of some behaviour lost in the change from 4.x style netgraph tee nodes. Alter the tee node to use the new method. Document the behaviour.
Step the ABI version number... old netgraph klds will refuse to load. Better than just crashing.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
show more ...
|
Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1 |
|
#
2c858ebe |
| 26-Jan-2004 |
Hartmut Brandt <harti@FreeBSD.org> |
Get rid of the deprecated *LEN constants and use the new *SIZ (that include the trailing \0) constants instead.
|
Revision tags: release/5.2.0_cvs, release/5.2.0 |
|
#
387ebc6d |
| 12-Nov-2003 |
Hartmut Brandt <harti@FreeBSD.org> |
Double length of node names, hook names, command strings and types. Add defines for these constants that include the trailing NUL byte. These new constants have SIZ in their name instead of LEN. As s
Double length of node names, hook names, command strings and types. Add defines for these constants that include the trailing NUL byte. These new constants have SIZ in their name instead of LEN. As soon as all consumers in the tree are converted to use the new defines the old defines will be put under BURN_BRIDGES.
Reviewed by: archie, julian, ru Approved by: re (in principle)
show more ...
|
#
e20480bf |
| 11-Nov-2003 |
Ruslan Ermilov <ru@FreeBSD.org> |
Use a single style of multiple inclusion protection for Netgraph headers.
Reviewed by: archie, harti, emax
|
Revision tags: release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
facfd889 |
| 22-Aug-2002 |
Archie Cobbs <archie@FreeBSD.org> |
Don't use "NULL" when "0" is really meant.
|
#
0157ee22 |
| 20-Aug-2002 |
Archie Cobbs <archie@FreeBSD.org> |
When declaring local variables in macros, always use "_name" instead of "name" to avoid ugly problems when the containing code already has a variable named "name".
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
d2ca21a9 |
| 05-Mar-2002 |
Julian Elischer <julian@FreeBSD.org> |
Official timeout routines for netgraph nodes that know how to use (and abuse) the node locking system.
MFC after: 1 week
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
c31b4a53 |
| 23-Jul-2001 |
Julian Elischer <julian@FreeBSD.org> |
Add an external function to unlink a netgraph type from the types list.
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
f34fa851 |
| 28-Mar-2001 |
John Baldwin <jhb@FreeBSD.org> |
Catch up to header include changes: - <sys/mutex.h> now requires <sys/systm.h> - <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
|
#
5951069a |
| 10-Mar-2001 |
Julian Elischer <julian@FreeBSD.org> |
netgraph.h: Change a prototype. Add a function version of ng_ref_node() when debugging so a breakpoint can be set on it. ng_base.c: add 'node' as an argument to ng_apply_item so that it is up
netgraph.h: Change a prototype. Add a function version of ng_ref_node() when debugging so a breakpoint can be set on it. ng_base.c: add 'node' as an argument to ng_apply_item so that it is up to the caller to take over and release the item's reference on the node. If the release reports back that the node went away due to the reference going to 0, the caller should cease referencing the now defunct node. (e.g. the item was a 'kill node' message). Alter ng_unref_node to report back the residual references as a result. ng_pptpgre.c: Don't reference a node after we dropped a reference to it. (What if it was the last?) Fixes a node leak reported by Harti Brandt <brandt@fokus.gmd.de> which was due to an incorrect earlier attempt to fix the "accessing node after dropping the last reference" problem.
show more ...
|
#
87142103 |
| 03-Mar-2001 |
Julian Elischer <julian@FreeBSD.org> |
Cleanups to Macros for sending data between netgraph nodes.
|
#
e7af56e5 |
| 03-Mar-2001 |
Julian Elischer <julian@FreeBSD.org> |
Add parenthesis to a macro. This took me 2 whole days to track down. (bleah)
|
#
bfa7e882 |
| 23-Feb-2001 |
Julian Elischer <julian@FreeBSD.org> |
Shuffle sysctls a bit (thankyou whoever made them dynamic for modules) and add a sysctl to pppoe to activate non standard ethertypes so that idiot ISPs (apparently in France) who use equipment from i
Shuffle sysctls a bit (thankyou whoever made them dynamic for modules) and add a sysctl to pppoe to activate non standard ethertypes so that idiot ISPs (apparently in France) who use equipment from idiot suppliers (rumour says 3com) who use nonstandard ethertypes can still connect.
"yep, sure we do pppoe, we use a different identifier to that dictated in the standard, but sure it's pppoe!"
sysctl -w net.graph.stupid_isp=1 enables the changeover.
show more ...
|
#
9d72a7a3 |
| 05-Feb-2001 |
Julian Elischer <julian@FreeBSD.org> |
Make netgraph modules refuse to link with modules of a different ABI version. also try implement teh documented behaviour in socket nodes so that when there is only one hook, an unaddressed write/sen
Make netgraph modules refuse to link with modules of a different ABI version. also try implement teh documented behaviour in socket nodes so that when there is only one hook, an unaddressed write/send will DTRT and send the data to that hook.
show more ...
|
#
f7109125 |
| 01-Feb-2001 |
Julian Elischer <julian@FreeBSD.org> |
Change the kernel internal ABI number as the HOOK structure has changed. Forgotten by: me
|
#
c4b5eea4 |
| 31-Jan-2001 |
Julian Elischer <julian@FreeBSD.org> |
Add the ability to declare ore-ride methods on a per-hook basis for the rcvdata() and rcvmsg() methods.
Also bring the man page up to sync with my last commit. (and this one)
|
#
1acb27c6 |
| 30-Jan-2001 |
Julian Elischer <julian@FreeBSD.org> |
Implement direct support for semipersistant nodes. (e.g. ethernet nodes are persistent until you rip out the hardware) Use this support in the ethernet and sample nodes. Add some more abstraction on
Implement direct support for semipersistant nodes. (e.g. ethernet nodes are persistent until you rip out the hardware) Use this support in the ethernet and sample nodes. Add some more abstraction on the 'item's so that node and hook reference counting can be checked easier. Slight man page correction. Make pppoe type dependent on ethernet type. Clean up node shutdown a little. Move a mutex from MTX_SPIN to MTX_DEF (oops) Fix small ref-counting bug. remove warning on one2many type.
show more ...
|
#
6b795970 |
| 15-Jan-2001 |
Julian Elischer <julian@FreeBSD.org> |
Add a generic "queued function callin" mechanism Use it to implement (hopefully) SMP safe node/hook addition and removal. Fix some debug stuff.
|
#
954c4772 |
| 11-Jan-2001 |
Julian Elischer <julian@FreeBSD.org> |
Add an exported function ng_rmhook_self() that removes a hook from a node, but does it via the locking queue, thus ensuring that the node is locked when it's hook is removed.
Add 'deadnode' and 'dea
Add an exported function ng_rmhook_self() that removes a hook from a node, but does it via the locking queue, thus ensuring that the node is locked when it's hook is removed.
Add 'deadnode' and 'deadhook' structures for when a node or hook is invalidated but not yet freed. (not yet freed)
show more ...
|
#
ce5e5f99 |
| 11-Jan-2001 |
Archie Cobbs <archie@FreeBSD.org> |
Unbreak compilation.
|