]>
git.proxmox.com Git - mirror_ovs.git/blob - lib/conntrack-tp.h
2 * Copyright (c) 2020 VMware, Inc.
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:
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef CONNTRACK_TP_H
18 #define CONNTRACK_TP_H 1
20 #define CT_DPIF_NETDEV_TP_MIN 30
22 void timeout_policy_init(struct conntrack
*ct
);
23 int timeout_policy_update(struct conntrack
*ct
, struct timeout_policy
*tp
);
24 int timeout_policy_delete(struct conntrack
*ct
, uint32_t tp_id
);
25 struct timeout_policy
*timeout_policy_get(struct conntrack
*ct
, int32_t tp_id
);
26 void conn_init_expiration(struct conntrack
*ct
, struct conn
*conn
,
27 enum ct_timeout tm
, long long now
);
28 void conn_update_expiration(struct conntrack
*ct
, struct conn
*conn
,
29 enum ct_timeout tm
, long long now
);