| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Approved by: julian (mentor)
MFC after: 3 days
Notes:
svn path=/head/; revision=183225
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
virtualization work done by Marko Zec (zec@).
This is the first in a series of commits over the course
of the next few weeks.
Mark all uses of global variables to be virtualized
with a V_ prefix.
Use macros to map them back to their global names for
now, so this is a NOP change only.
We hope to have caught at least 85-90% of what is needed
so we do not invalidate a lot of outstanding patches again.
Obtained from: //depot/projects/vimage-commit2/...
Reviewed by: brooks, des, ed, mav, julian,
jamie, kris, rwatson, zec, ...
(various people I forgot, different versions)
md5 (with a bit of help)
Sponsored by: NLnet Foundation, The FreeBSD Foundation
X-MFC after: never
V_Commit_Message_Reviewed_By: more people than the patch
Notes:
svn path=/head/; revision=181803
|
| |
|
|
|
|
|
|
|
| |
length. Use NULL instead of 0.
Submitted by: glebius, ru
Notes:
svn path=/head/; revision=167168
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to embed up to four counters in outgoing packets. The message specifies
the offset at which the counter should be inserted as well as the
parameters of the counter.
Example usage:
ngctl msg src0: setcounter \
'{ index=0 offset=0x40 flags=1 width=4 increment=1 max_val=12345 }'
Sponsored by: Sandvine Incorporated
Notes:
svn path=/head/; revision=167160
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to embed a timestamp (struct timeval) in outgoing packets. The message
specifies the offset at which the timestamp should be inserted.
NG_SOURCE(4) gives an example usage that queues an ICMP packet. Using that
example, the following command will insert a timestamp in the ICMP's data
payload:
ngctl msg src0: settimestamp '{ offset=0x2a flags=1 }'
Sponsored by: Sandvine Incorporated
Notes:
svn path=/head/; revision=167156
|
| |
|
|
|
|
|
| |
cycles into one.
Notes:
svn path=/head/; revision=154707
|
| |
|
|
| |
Notes:
svn path=/head/; revision=153690
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Functional changes:
- Cut struct source_hookinfo. Just use hook_p pointer.
- Remove "start_now" command. "start" command now requires number of
packets to send as argument. "start" command actually starts sending.
Move the code that actually starts sending from ng_source_rcvmsg()
to ng_source_start().
- Remove check for NG_SOURCE_ACTIVE in ng_source_stop(). We can be called
with flag cleared (see begin of ng_source_intr()).
- If NG_SEND_DATA_ONLY() use log(LOG_DEBUG) instead of printf(). Otherwise
we will *flood* console.
- Add ng_connect_t method, which sends NGM_ETHER_GET_IFNAME command
to "output" hook. Cut ng_source_request_output_ifp(). Refactor
ng_source_store_output_ifp() to use ifunit() and don't muck through
interface list.
- Add "setiface" command, which gives ability to configure interface
in case when ng_source_connect() failed. This happens, when we are not
connected directly to ng_ether(4) node.
- Remove KASSERTs, which can never fire.
- Don't check for M_PKTHDR in rcvdata method. netgraph(4) does this
for us.
Style:
- Assign sc_p = NG_NODE_PRIVATE(node) in declaration, to be
consistent with style of other nodes.
- Sort variables.
- u_intXX -> uintXX.
- Dots at ends of comments.
Sponsored by: Rambler
Notes:
svn path=/head/; revision=144674
|
| |
|
|
|
|
|
|
| |
The latter was particularly violated by someone's editor in the past, due
to an effect I like to call "premature linewrapping."
Notes:
svn path=/head/; revision=143387
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141745
|
| |
|
|
| |
Notes:
svn path=/head/; revision=139823
|
| |
|
|
|
|
|
|
|
|
| |
This is done to keep both versions in RELENG_5 and support both APIs.
Reviewed by: scottl
Approved by: julian (mentor), implicitly
Notes:
svn path=/head/; revision=138268
|
| |
|
|
|
|
|
|
|
|
| |
- Remove callout-hacking from ng_untimeout().
Approved by: julian (mentor)
MFC after: 1 month
Notes:
svn path=/head/; revision=137138
|
| |
|
|
|
|
|
| |
Approved by: julian (mentor)
Notes:
svn path=/head/; revision=137136
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=132464
|
| |
|
|
|
|
|
|
|
|
|
| |
Should make no binary difference.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Reviewed by: Harti Brandt <harti@freebsd.org>
MFC after: 1 week
Notes:
svn path=/head/; revision=129823
|
| |
|
|
|
|
|
|
| |
that we can get rid of of all the spl*() calls, because ng_timeout
handles the locking issues.
Notes:
svn path=/head/; revision=125243
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125078
|
| |
|
|
|
|
|
|
| |
correct some indendation, change __FUNCTION__ to __func__ and remove
a local KASSERT definition.
Notes:
svn path=/head/; revision=125077
|
| |
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=125033
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125032
|
| |
|
|
|
|
|
|
|
| |
fiddle around with private queues, because their mutex is not
needed. All this processing should be protected by the netgraph
locking.
Notes:
svn path=/head/; revision=125031
|
| |
|
|
|
|
|
| |
malloc().
Notes:
svn path=/head/; revision=125030
|
| |
|
|
|
|
|
|
|
|
| |
the netgraph version.
Correct the return type of a function: it wants to return an error
code, so it cannot be void.
Notes:
svn path=/head/; revision=125029
|
| |
|
|
|
|
|
| |
Approved by: trb
Notes:
svn path=/head/; revision=111119
|
| |
|
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Notes:
svn path=/head/; revision=109623
|
| |
|
|
| |
Notes:
svn path=/head/; revision=108172
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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++)
Notes:
svn path=/head/; revision=108107
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106435
|
| |
|
|
|
|
|
| |
More to come.. does not compile (deliberatly.. logic broken)
Notes:
svn path=/head/; revision=106321
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106319
|
|
|
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
Notes:
svn path=/head/; revision=106266
|