diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2007-03-01 23:16:17 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2007-03-01 23:16:17 +0000 |
| commit | 5f87dd698c09408e51e4cc31946117003debf270 (patch) | |
| tree | 8e31afcbd1d06f5221f742419922b9fbd8578693 /sys/netgraph/ng_source.h | |
| parent | b6f6e672f75b51865a3f54d7f1a05323309fa976 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph/ng_source.h')
| -rw-r--r-- | sys/netgraph/ng_source.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/netgraph/ng_source.h b/sys/netgraph/ng_source.h index fcfb151d0c78..b3db2cf3815c 100644 --- a/sys/netgraph/ng_source.h +++ b/sys/netgraph/ng_source.h @@ -78,6 +78,21 @@ extern const struct ng_parse_type ng_source_timeval_type; { NULL } \ } +/* Packet embedding info for NGM_SOURCE_GET/SET_TIMESTAMP */ +struct ng_source_embed_info { + uint16_t offset; /* offset from ethernet header */ + uint8_t flags; + uint8_t spare; +}; +#define NGM_SOURCE_EMBED_ENABLE 0x01 /* enable embedding */ + +/* Keep this in sync with the above structure definition. */ +#define NG_SOURCE_EMBED_TYPE_INFO { \ + { "offset", &ng_parse_hint16_type }, \ + { "flags", &ng_parse_hint8_type }, \ + { NULL } \ +} + /* Netgraph commands */ enum { NGM_SOURCE_GET_STATS = 1, /* get stats */ @@ -88,6 +103,8 @@ enum { NGM_SOURCE_CLR_DATA, /* clear the queued data */ NGM_SOURCE_SETIFACE, /* configure downstream iface */ NGM_SOURCE_SETPPS, /* rate-limiting packets per second */ + NGM_SOURCE_SET_TIMESTAMP, /* embed xmit timestamp */ + NGM_SOURCE_GET_TIMESTAMP, }; #endif /* _NETGRAPH_NG_SOURCE_H_ */ |
