summary refs log tree commit diff
path: root/libnm-core/nm-setting-vxlan.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-01-20 16:26:51 +0100
committerMichael Biebl <biebl@debian.org>2016-01-20 16:26:51 +0100
commit494f296a3baab08522617b24b1f126d8f9a17502 (patch)
treec8ef32fb0dd1c4ff35a0b38e787abb58692de0cd /libnm-core/nm-setting-vxlan.h
parent54f6333410ffd570e62717d9e77c5c987175e397 (diff)
Imported Upstream version 1.1.90 upstream/1.1.90
Diffstat (limited to 'libnm-core/nm-setting-vxlan.h')
-rw-r--r--libnm-core/nm-setting-vxlan.h109
1 files changed, 109 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-vxlan.h b/libnm-core/nm-setting-vxlan.h
new file mode 100644
index 00000000..c410338e
--- /dev/null
+++ b/libnm-core/nm-setting-vxlan.h
@@ -0,0 +1,109 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2015 Red Hat, Inc.
+ */
+
+#ifndef __NM_SETTING_VXLAN_H__
+#define __NM_SETTING_VXLAN_H__
+
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
+#include "nm-setting.h"
+
+G_BEGIN_DECLS
+
+#define NM_TYPE_SETTING_VXLAN            (nm_setting_vxlan_get_type ())
+#define NM_SETTING_VXLAN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_VXLAN, NMSettingVxlan))
+#define NM_SETTING_VXLAN_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_VXLANCONFIG, NMSettingVxlanClass))
+#define NM_IS_SETTING_VXLAN(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_VXLAN))
+#define NM_IS_SETTING_VXLAN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_VXLAN))
+#define NM_SETTING_VXLAN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_VXLAN, NMSettingVxlanClass))
+
+#define NM_SETTING_VXLAN_SETTING_NAME       "vxlan"
+
+#define NM_SETTING_VXLAN_PARENT             "parent"
+#define NM_SETTING_VXLAN_ID                 "id"
+#define NM_SETTING_VXLAN_LOCAL              "local"
+#define NM_SETTING_VXLAN_REMOTE             "remote"
+#define NM_SETTING_VXLAN_SOURCE_PORT_MIN    "source-port-min"
+#define NM_SETTING_VXLAN_SOURCE_PORT_MAX    "source-port-max"
+#define NM_SETTING_VXLAN_DESTINATION_PORT   "destination-port"
+#define NM_SETTING_VXLAN_TOS                "tos"
+#define NM_SETTING_VXLAN_TTL                "ttl"
+#define NM_SETTING_VXLAN_AGEING             "ageing"
+#define NM_SETTING_VXLAN_LIMIT              "limit"
+#define NM_SETTING_VXLAN_PROXY              "proxy"
+#define NM_SETTING_VXLAN_LEARNING           "learning"
+#define NM_SETTING_VXLAN_RSC                "rsc"
+#define NM_SETTING_VXLAN_L2_MISS            "l2-miss"
+#define NM_SETTING_VXLAN_L3_MISS            "l3-miss"
+
+struct _NMSettingVxlan {
+	NMSetting parent;
+};
+
+typedef struct {
+	NMSettingClass parent;
+
+	/*< private >*/
+	gpointer padding[4];
+} NMSettingVxlanClass;
+
+NM_AVAILABLE_IN_1_2
+GType       nm_setting_vxlan_get_type             (void);
+NM_AVAILABLE_IN_1_2
+NMSetting  *nm_setting_vxlan_new                  (void);
+NM_AVAILABLE_IN_1_2
+const char *nm_setting_vxlan_get_parent           (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_id               (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+const char *nm_setting_vxlan_get_local            (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+const char *nm_setting_vxlan_get_remote           (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_source_port_min  (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_source_port_max  (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_destination_port (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_tos              (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_ttl              (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_ageing           (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+guint       nm_setting_vxlan_get_limit            (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+gboolean    nm_setting_vxlan_get_proxy            (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+gboolean    nm_setting_vxlan_get_learning         (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+gboolean    nm_setting_vxlan_get_rsc              (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+gboolean    nm_setting_vxlan_get_l2_miss          (NMSettingVxlan *setting);
+NM_AVAILABLE_IN_1_2
+gboolean    nm_setting_vxlan_get_l3_miss          (NMSettingVxlan *setting);
+
+G_END_DECLS
+
+#endif /* __NM_SETTING_VXLAN_H__ */