diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2005-03-10 21:50:50 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2005-03-10 21:50:50 +0000 |
commit | adcc57692defe8d294ef02cf7225cbcd2c64aa73 (patch) | |
tree | 359dfcb9ab9efa5fbc0f19a003c7de31d143743f /sys/netgraph | |
parent | 4f7458d738bc1025dfa80d71f480c7e6165da681 (diff) | |
download | FreeBSD-src-adcc57692defe8d294ef02cf7225cbcd2c64aa73.zip FreeBSD-src-adcc57692defe8d294ef02cf7225cbcd2c64aa73.tar.gz |
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."
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_source.c | 12 | ||||
-rw-r--r-- | sys/netgraph/ng_source.h | 27 |
2 files changed, 14 insertions, 25 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c index 63ee52c..13635eb 100644 --- a/sys/netgraph/ng_source.c +++ b/sys/netgraph/ng_source.c @@ -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 }, diff --git a/sys/netgraph/ng_source.h b/sys/netgraph/ng_source.h index fa54e1f..1f3fc96 100644 --- a/sys/netgraph/ng_source.h +++ b/sys/netgraph/ng_source.h @@ -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 |