~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to ofproto/netflow.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc.
 
2
 * Copyright (c) 2008, 2009, 2010, 2011, 2013 Nicira, Inc.
3
3
 *
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
38
38
    bool add_id_to_iface;
39
39
};
40
40
 
41
 
enum netflow_output_ports {
42
 
    NF_OUT_FLOOD = UINT16_MAX,
43
 
    NF_OUT_MULTI = UINT16_MAX - 1,
44
 
    NF_OUT_DROP = UINT16_MAX - 2
45
 
};
 
41
#define NF_OUT_FLOOD OFP_PORT_C(UINT16_MAX)
 
42
#define NF_OUT_MULTI OFP_PORT_C(UINT16_MAX - 1)
 
43
#define NF_OUT_DROP  OFP_PORT_C(UINT16_MAX - 2)
46
44
 
47
45
struct netflow_flow {
48
46
    long long int last_expired;   /* Time this flow last timed out. */
51
49
    uint64_t packet_count_off;    /* Packet count at last time out. */
52
50
    uint64_t byte_count_off;      /* Byte count at last time out. */
53
51
 
54
 
    uint16_t output_iface;        /* Output interface index. */
 
52
    ofp_port_t output_iface;      /* Output interface index. */
55
53
    uint8_t tcp_flags;            /* Bitwise-OR of all TCP flags seen. */
56
54
};
57
55
 
64
62
bool netflow_run(struct netflow *);
65
63
void netflow_wait(struct netflow *);
66
64
 
 
65
void netflow_mask_wc(struct flow *, struct flow_wildcards *);
 
66
 
67
67
void netflow_flow_init(struct netflow_flow *);
68
68
void netflow_flow_clear(struct netflow_flow *);
69
69
void netflow_flow_update_time(struct netflow *, struct netflow_flow *,