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

« back to all changes in this revision

Viewing changes to ofproto/ofproto-dpif-ipfix.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
/*
 
2
 * Copyright (c) 2012 Nicira, Inc.
 
3
 *
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at:
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
#ifndef OFPROTO_DPIF_IPFIX_H
 
18
#define OFPROTO_DPIF_IPFIX_H 1
 
19
 
 
20
#include <stddef.h>
 
21
#include <stdint.h>
 
22
 
 
23
struct flow;
 
24
struct ofpbuf;
 
25
struct ofproto_ipfix_bridge_exporter_options;
 
26
struct ofproto_ipfix_flow_exporter_options;
 
27
 
 
28
struct dpif_ipfix *dpif_ipfix_create(void);
 
29
struct dpif_ipfix *dpif_ipfix_ref(const struct dpif_ipfix *);
 
30
void dpif_ipfix_unref(struct dpif_ipfix *);
 
31
 
 
32
uint32_t dpif_ipfix_get_bridge_exporter_probability(const struct dpif_ipfix *);
 
33
void dpif_ipfix_set_options(
 
34
    struct dpif_ipfix *,
 
35
    const struct ofproto_ipfix_bridge_exporter_options *,
 
36
    const struct ofproto_ipfix_flow_exporter_options *, size_t);
 
37
 
 
38
void dpif_ipfix_bridge_sample(struct dpif_ipfix *, struct ofpbuf *,
 
39
                              const struct flow *);
 
40
void dpif_ipfix_flow_sample(struct dpif_ipfix *, struct ofpbuf *,
 
41
                            const struct flow *, uint32_t, uint16_t, uint32_t,
 
42
                            uint32_t);
 
43
 
 
44
#endif /* ofproto/ofproto-dpif-ipfix.h */