cvs commit: src/sys/netgraph ng_source.c ng_source.h

[ Available lists | Index of cvs-all | Month of Mar 2007 | Week of 1 Mar 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Ed Maste <emaste@FreeBSD.org>
Date
1 Mar 2007 23:16:18
Subject
cvs commit: src/sys/netgraph ng_source.c ng_source.h
Message-ID
200703012316.l21NGIll025558@repoman.freebsd.org


[ Hide this part ]
emaste      2007-03-01 23:16:17 UTC

FreeBSD src repository

Modified files:
sys/netgraph ng_source.c ng_source.h
Log:
Add "settimestamp" and "gettimestamp" messages, providing the the ability
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

Revision Changes Path
1.28 +122 -5 src/sys/netgraph/ng_source.c
1.8 +17 -0 src/sys/netgraph/ng_source.h


Elapsed time: 0.049 seconds