diff options
author | melifaro <melifaro@FreeBSD.org> | 2012-06-16 13:53:14 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2012-06-16 13:53:14 +0000 |
commit | c197631fe7333a387e0af2f2680e4d53eb4c7f01 (patch) | |
tree | 21bcb77c8f0261b110d2ccc214c2dfe50b7b4ff8 /sys/netgraph | |
parent | 74fbb78fa0d794554e0eecb654bef18029e63997 (diff) | |
download | FreeBSD-src-c197631fe7333a387e0af2f2680e4d53eb4c7f01.zip FreeBSD-src-c197631fe7333a387e0af2f2680e4d53eb4c7f01.tar.gz |
Set netflow v9 observation domain value to fib number instead of node id.
This fixes multi-fib netflow v9 export.
Reviewed by: glebius
Approved by: kib(mentor)
MFC after: 1 week
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/netflow/netflow_v9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/netflow_v9.c b/sys/netgraph/netflow/netflow_v9.c index 31304d7..e10157c 100644 --- a/sys/netgraph/netflow/netflow_v9.c +++ b/sys/netgraph/netflow/netflow_v9.c @@ -222,7 +222,7 @@ export9_send(priv_p priv, fib_export_p fe, item_p item, struct netflow_v9_packet header->unix_secs = htonl(ts.tv_sec); header->seq_num = htonl(atomic_fetchadd_32(&fe->flow9_seq, 1)); header->count = htons(t->count); - header->source_id = htonl(NG_NODE_ID(priv->node)); + header->source_id = htonl(fe->domain_id); if (priv->export9 != NULL) NG_FWD_ITEM_HOOK_FLAGS(error, item, priv->export9, flags); |