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

Ed Maste emaste at FreeBSD.org
Thu Mar 1 23:16:18 UTC 2007


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


More information about the cvs-src mailing list