device: renew dhcp leases on awake for software devices
[NetworkManager.git] / libnm-core / nm-setting-vxlan.h
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
3 /*
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301 USA.
18  *
19  * Copyright 2015 Red Hat, Inc.
20  */
21
22 #ifndef __NM_SETTING_VXLAN_H__
23 #define __NM_SETTING_VXLAN_H__
24
25 #if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
26 #error "Only <NetworkManager.h> can be included directly."
27 #endif
28
29 #include "nm-setting.h"
30
31 G_BEGIN_DECLS
32
33 #define NM_TYPE_SETTING_VXLAN            (nm_setting_vxlan_get_type ())
34 #define NM_SETTING_VXLAN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_VXLAN, NMSettingVxlan))
35 #define NM_SETTING_VXLAN_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_VXLANCONFIG, NMSettingVxlanClass))
36 #define NM_IS_SETTING_VXLAN(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_VXLAN))
37 #define NM_IS_SETTING_VXLAN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_VXLAN))
38 #define NM_SETTING_VXLAN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_VXLAN, NMSettingVxlanClass))
39
40 #define NM_SETTING_VXLAN_SETTING_NAME       "vxlan"
41
42 #define NM_SETTING_VXLAN_PARENT             "parent"
43 #define NM_SETTING_VXLAN_ID                 "id"
44 #define NM_SETTING_VXLAN_LOCAL              "local"
45 #define NM_SETTING_VXLAN_REMOTE             "remote"
46 #define NM_SETTING_VXLAN_SOURCE_PORT_MIN    "source-port-min"
47 #define NM_SETTING_VXLAN_SOURCE_PORT_MAX    "source-port-max"
48 #define NM_SETTING_VXLAN_DESTINATION_PORT   "destination-port"
49 #define NM_SETTING_VXLAN_TOS                "tos"
50 #define NM_SETTING_VXLAN_TTL                "ttl"
51 #define NM_SETTING_VXLAN_AGEING             "ageing"
52 #define NM_SETTING_VXLAN_LIMIT              "limit"
53 #define NM_SETTING_VXLAN_PROXY              "proxy"
54 #define NM_SETTING_VXLAN_LEARNING           "learning"
55 #define NM_SETTING_VXLAN_RSC                "rsc"
56 #define NM_SETTING_VXLAN_L2_MISS            "l2-miss"
57 #define NM_SETTING_VXLAN_L3_MISS            "l3-miss"
58
59 struct _NMSettingVxlan {
60         NMSetting parent;
61 };
62
63 typedef struct {
64         NMSettingClass parent;
65
66         /*< private >*/
67         gpointer padding[4];
68 } NMSettingVxlanClass;
69
70 NM_AVAILABLE_IN_1_2
71 GType       nm_setting_vxlan_get_type             (void);
72 NM_AVAILABLE_IN_1_2
73 NMSetting  *nm_setting_vxlan_new                  (void);
74 NM_AVAILABLE_IN_1_2
75 const char *nm_setting_vxlan_get_parent           (NMSettingVxlan *setting);
76 NM_AVAILABLE_IN_1_2
77 guint       nm_setting_vxlan_get_id               (NMSettingVxlan *setting);
78 NM_AVAILABLE_IN_1_2
79 const char *nm_setting_vxlan_get_local            (NMSettingVxlan *setting);
80 NM_AVAILABLE_IN_1_2
81 const char *nm_setting_vxlan_get_remote           (NMSettingVxlan *setting);
82 NM_AVAILABLE_IN_1_2
83 guint       nm_setting_vxlan_get_source_port_min  (NMSettingVxlan *setting);
84 NM_AVAILABLE_IN_1_2
85 guint       nm_setting_vxlan_get_source_port_max  (NMSettingVxlan *setting);
86 NM_AVAILABLE_IN_1_2
87 guint       nm_setting_vxlan_get_destination_port (NMSettingVxlan *setting);
88 NM_AVAILABLE_IN_1_2
89 guint       nm_setting_vxlan_get_tos              (NMSettingVxlan *setting);
90 NM_AVAILABLE_IN_1_2
91 guint       nm_setting_vxlan_get_ttl              (NMSettingVxlan *setting);
92 NM_AVAILABLE_IN_1_2
93 guint       nm_setting_vxlan_get_ageing           (NMSettingVxlan *setting);
94 NM_AVAILABLE_IN_1_2
95 guint       nm_setting_vxlan_get_limit            (NMSettingVxlan *setting);
96 NM_AVAILABLE_IN_1_2
97 gboolean    nm_setting_vxlan_get_proxy            (NMSettingVxlan *setting);
98 NM_AVAILABLE_IN_1_2
99 gboolean    nm_setting_vxlan_get_learning         (NMSettingVxlan *setting);
100 NM_AVAILABLE_IN_1_2
101 gboolean    nm_setting_vxlan_get_rsc              (NMSettingVxlan *setting);
102 NM_AVAILABLE_IN_1_2
103 gboolean    nm_setting_vxlan_get_l2_miss          (NMSettingVxlan *setting);
104 NM_AVAILABLE_IN_1_2
105 gboolean    nm_setting_vxlan_get_l3_miss          (NMSettingVxlan *setting);
106
107 G_END_DECLS
108
109 #endif /* __NM_SETTING_VXLAN_H__ */