]> git.proxmox.com Git - ovs.git/blame - lib/netlink-conntrack.h
OF support and translation of generic encap and decap
[ovs.git] / lib / netlink-conntrack.h
CommitLineData
6830a0c0
DDP
1/*
2 * Copyright (c) 2015 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 NETLINK_CONNTRACK_H
18#define NETLINK_CONNTRACK_H
19
20#include "byte-order.h"
21#include "compiler.h"
22#include "ct-dpif.h"
3e8a2ad1 23#include "openvswitch/dynamic-string.h"
ee89ea7b 24#include "openvswitch/hmap.h"
64c96779 25#include "openvswitch/ofpbuf.h"
6830a0c0
DDP
26#include "timeval.h"
27#include "unixctl.h"
28#include "util.h"
29
30enum nl_ct_event_type {
31 NL_CT_EVENT_NEW = 1 << 0,
32 NL_CT_EVENT_UPDATE = 1 << 1,
33 NL_CT_EVENT_DELETE = 1 << 2,
34};
35
36struct nl_ct_dump_state;
37
ded30c74
FA
38int nl_ct_dump_start(struct nl_ct_dump_state **, const uint16_t *zone,
39 int *ptot_bkts);
6830a0c0
DDP
40int nl_ct_dump_next(struct nl_ct_dump_state *, struct ct_dpif_entry *);
41int nl_ct_dump_done(struct nl_ct_dump_state *);
42
43int nl_ct_flush(void);
44int nl_ct_flush_zone(uint16_t zone);
45
46bool nl_ct_parse_entry(struct ofpbuf *, struct ct_dpif_entry *,
47 enum nl_ct_event_type *);
48void nl_ct_format_event_entry(const struct ct_dpif_entry *,
49 enum nl_ct_event_type, struct ds *,
50 bool verbose, bool print_stats);
51
52#endif /* NETLINK_CONNTRACK_H */