Make some basic grammar and style fixes to ng_source.c and ng_source.h.
The latter was particularly violated by someone's editor in the past, due to an effect I like to call "premature linewrapping."
This commit is contained in:
parent
74e620476c
commit
2b0ffc0216
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143387
@ -42,17 +42,17 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* This node is used for high speed packet geneneration. It queues
|
||||
* all data recieved on it's 'input' hook and when told to start via
|
||||
* a control message it sends the packets out it's 'output' hook. In
|
||||
* this way this node can be preloaded with a packet stream which is
|
||||
* continuously sent.
|
||||
* all data recieved on its 'input' hook and when told to start via
|
||||
* a control message it sends the packets out its 'output' hook. In
|
||||
* this way this node can be preloaded with a packet stream which it
|
||||
* can then send continuously as fast as possible.
|
||||
*
|
||||
* Currently it just copies the mbufs as required. It could do various
|
||||
* tricks to try and avoid this. Probably the best performance would
|
||||
* be achieved by modifying the appropriate drivers to be told to
|
||||
* self-re-enqueue packets (e.g. the if_bge driver could reuse the same
|
||||
* transmit descriptors) under control of this node; perhaps via some
|
||||
* flag in the mbuf or some such. The node would peak at an appropriate
|
||||
* flag in the mbuf or some such. The node could peek at an appropriate
|
||||
* ifnet flag to see if such support is available for the connected
|
||||
* interface.
|
||||
*/
|
||||
@ -75,7 +75,6 @@ __FBSDID("$FreeBSD$");
|
||||
#define NG_SOURCE_INTR_TICKS 1
|
||||
#define NG_SOURCE_DRIVER_IFQ_MAXLEN (4*1024)
|
||||
|
||||
|
||||
/* Per hook info */
|
||||
struct source_hookinfo {
|
||||
hook_p hook;
|
||||
@ -116,7 +115,6 @@ static int ng_source_send (sc_p, int, int *);
|
||||
static int ng_source_store_output_ifp(sc_p sc,
|
||||
struct ng_mesg *msg);
|
||||
|
||||
|
||||
/* Parse type for timeval */
|
||||
static const struct ng_parse_struct_field ng_source_timeval_type_fields[] = {
|
||||
{ "tv_sec", &ng_parse_int32_type },
|
||||
|
@ -8,34 +8,25 @@
|
||||
*
|
||||
* Subject to the following obligations and disclaimer of warranty, use and
|
||||
* redistribution of this software, in source or object code forms, with or
|
||||
* without modifications are expressly permitted by Sandvine Inc.;
|
||||
provided,
|
||||
* without modifications are expressly permitted by Sandvine Inc.; provided,
|
||||
* however, that:
|
||||
* 1. Any and all reproductions of the source or object code must include
|
||||
the
|
||||
* copyright notice above and the following disclaimer of warranties;
|
||||
and
|
||||
* 1. Any and all reproductions of the source or object code must include the
|
||||
* copyright notice above and the following disclaimer of warranties; and
|
||||
* 2. No rights are granted, in any manner or form, to use Sandvine Inc.
|
||||
* trademarks, including the mark "SANDVINE" on advertising,
|
||||
endorsements,
|
||||
* or otherwise except as such appears in the above copyright notice or
|
||||
in
|
||||
* trademarks, including the mark "SANDVINE" on advertising, endorsements,
|
||||
* or otherwise except as such appears in the above copyright notice or in
|
||||
* the software.
|
||||
*
|
||||
* THIS SOFTWARE IS BEING PROVIDED BY SANDVINE "AS IS", AND TO THE MAXIMUM
|
||||
* EXTENT PERMITTED BY LAW, SANDVINE MAKES NO REPRESENTATIONS OR
|
||||
WARRANTIES,
|
||||
* EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE, INCLUDING WITHOUT
|
||||
LIMITATION,
|
||||
* ANY AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
PARTICULAR
|
||||
* EXTENT PERMITTED BY LAW, SANDVINE MAKES NO REPRESENTATIONS OR WARRANTIES,
|
||||
* EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE, INCLUDING WITHOUT LIMITATION,
|
||||
* ANY AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
* PURPOSE, OR NON-INFRINGEMENT. SANDVINE DOES NOT WARRANT, GUARANTEE, OR
|
||||
* MAKE ANY REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE
|
||||
* USE OF THIS SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY
|
||||
* OR OTHERWISE. IN NO EVENT SHALL SANDVINE BE LIABLE FOR ANY DAMAGES
|
||||
* RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING
|
||||
* WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY,
|
||||
* WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
* PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
|
Loading…
Reference in New Issue
Block a user