<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/netgraph/ng_source.c, branch releng/7.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F7.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F7.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2007-03-02T14:36:19Z</updated>
<entry>
<title>Ensure message passed to "settimestamp" and "setcounter" is the right</title>
<updated>2007-03-02T14:36:19Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2007-03-02T14:36:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ab2e868cc1b46e1c75f40dd881b8f02a76a0a849'/>
<id>urn:sha1:ab2e868cc1b46e1c75f40dd881b8f02a76a0a849</id>
<content type='text'>
length.  Use NULL instead of 0.

Submitted by: glebius, ru
</content>
</entry>
<entry>
<title>Add "setcounter" and "getcounter" messages, providing the the ability</title>
<updated>2007-03-02T01:44:04Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2007-03-02T01:44:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=577421ebc5d23cfe109278eb493aa668195d1e70'/>
<id>urn:sha1:577421ebc5d23cfe109278eb493aa668195d1e70</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Add "settimestamp" and "gettimestamp" messages, providing the the ability</title>
<updated>2007-03-01T23:16:17Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2007-03-01T23:16:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f87dd698c09408e51e4cc31946117003debf270'/>
<id>urn:sha1:5f87dd698c09408e51e4cc31946117003debf270</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Simplify ng_source_send() removing temporary queue and merging two</title>
<updated>2006-01-23T10:28:04Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2006-01-23T10:28:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=205aefa36347d7d9f9d59e46694b00032d81e7aa'/>
<id>urn:sha1:205aefa36347d7d9f9d59e46694b00032d81e7aa</id>
<content type='text'>
cycles into one.
</content>
</entry>
<entry>
<title>Implement an upper limit for packets per second sent by node.</title>
<updated>2005-12-23T19:14:38Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-12-23T19:14:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=72235857719ffee76b1a620edf1c2a68570af007'/>
<id>urn:sha1:72235857719ffee76b1a620edf1c2a68570af007</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Major overhaul and cleanup of ng_source node.</title>
<updated>2005-04-05T17:22:05Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-04-05T17:22:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d8f5d037f88964232fecf59e885843bbe22aa77c'/>
<id>urn:sha1:d8f5d037f88964232fecf59e885843bbe22aa77c</id>
<content type='text'>
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 -&gt; uintXX.
- Dots at ends of comments.

Sponsored by:   Rambler
</content>
</entry>
<entry>
<title>Make some basic grammar and style fixes to ng_source.c and ng_source.h.</title>
<updated>2005-03-10T21:50:50Z</updated>
<author>
<name>Bosko Milekic</name>
<email>bmilekic@FreeBSD.org</email>
</author>
<published>2005-03-10T21:50:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2b0ffc021625d5703be58d172f5cbf461d53de11'/>
<id>urn:sha1:2b0ffc021625d5703be58d172f5cbf461d53de11</id>
<content type='text'>
The latter was particularly violated by someone's editor in the past, due
to an effect I like to call "premature linewrapping."
</content>
</entry>
<entry>
<title>Fallout from the ALTQ import.</title>
<updated>2005-02-12T17:03:01Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-02-12T17:03:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0572dfac4bb5d3969d00e3c837d6808379400757'/>
<id>urn:sha1:0572dfac4bb5d3969d00e3c837d6808379400757</id>
<content type='text'>
</content>
</entry>
<entry>
<title>/* -&gt; /*- for license, minor formatting changes</title>
<updated>2005-01-07T01:45:51Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-07T01:45:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c398230b64aea809cb7c5cea8db580af7097920c'/>
<id>urn:sha1:c398230b64aea809cb7c5cea8db580af7097920c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.</title>
<updated>2004-12-01T11:56:32Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2004-12-01T11:56:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f9d9e1b4ecea993a101005af130bd4db9fa2b010'/>
<id>urn:sha1:f9d9e1b4ecea993a101005af130bd4db9fa2b010</id>
<content type='text'>
This is done to keep both versions in RELENG_5 and support both APIs.

Reviewed by:	scottl
Approved by:	julian (mentor), implicitly
</content>
</entry>
</feed>
