summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_source.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the official ng_timeout function to trigger sending. This means,harti2004-01-301-22/+14
| | | | | that we can get rid of of all the spl*() calls, because ng_timeout handles the locking issues.
* Don't confuse NULL and 0, use 0 where an integer is expected.harti2004-01-271-2/+2
|
* Style: add __FBSDID, relocate some { that were on the wrong line,harti2004-01-271-36/+24
| | | | | correct some indendation, change __FUNCTION__ to __func__ and remove a local KASSERT definition.
* Make ng_source to work with non-ethernet interfaces. We do this byharti2004-01-261-2/+37
| | | | | | | introducing a START_NOW command. This command does not send and GET_IFINDEX message downstream (to wait for the response from the ETHERNET node), but directly starts the sending process. This allows one to generate traffic as input for any hook on any node.
* Declare a function to silence a warning.harti2004-01-261-0/+2
|
* Should use the non-locking versions of the ifqueue macros toharti2004-01-261-7/+7
| | | | | | fiddle around with private queues, because their mutex is not needed. All this processing should be protected by the netgraph locking.
* Replace a call to bzero() with an M_ZERO flag. Replace the MALLOC() withharti2004-01-261-2/+1
| | | | malloc().
* The version in the type description must be the ABI version, notharti2004-01-261-3/+3
| | | | | | | the netgraph version. Correct the return type of a function: it wants to return an error code, so it cannot be void.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* SMP locking for ifnet list.hsu2002-12-221-0/+2
|
* o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} andbmilekic2002-12-191-1/+1
| | | | | | | | | | 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++)
* 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
|
* Add the netgraph 'source' module.julian2002-10-311-0/+682
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
OpenPOWER on IntegriCloud