diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2008-01-27 08:52:41 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2008-01-27 08:52:41 +0000 |
| commit | f704a24b2069ca76101dc240b324d7f6f009fd7c (patch) | |
| tree | ccd925da2d59675aaf6f77f89c61ca1cc81d9837 /sys/netgraph/netflow | |
| parent | 6edc218ea191735b4dddff1f31cc868fa69f0037 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph/netflow')
| -rw-r--r-- | sys/netgraph/netflow/netflow.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c index f6ea16f35bad..74b84b89283f 100644 --- a/sys/netgraph/netflow/netflow.c +++ b/sys/netgraph/netflow/netflow.c @@ -631,13 +631,8 @@ export_add(item_p item, struct flow_entry *fle) struct netflow_v5_header *header = &dgram->header; struct netflow_v5_record *rec; - if (header->count == 0 ) { /* first record */ - rec = &dgram->r[0]; - header->count = 1; - } else { /* continue filling datagram */ - rec = &dgram->r[header->count]; - header->count ++; - } + rec = &dgram->r[header->count]; + header->count ++; KASSERT(header->count <= NETFLOW_V5_MAX_RECORDS, ("ng_netflow: export too big")); |
