fix device_lock/device_unlock imbalance in the hotplug device handling
[project/netifd.git] / system.h
index 05fbcae..5e275ca 100644 (file)
--- a/system.h
+++ b/system.h
@@ -1,3 +1,16 @@
+/*
+ * netifd - network interface daemon
+ * Copyright (C) 2012 Felix Fietkau <nbd@openwrt.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation
+ *
+ * This program 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 General Public License for more details.
+ */
 #ifndef __NETIFD_SYSTEM_H
 #define __NETIFD_SYSTEM_H
 
@@ -11,6 +24,8 @@ enum tunnel_param {
        TUNNEL_ATTR_REMOTE,
        TUNNEL_ATTR_LOCAL,
        TUNNEL_ATTR_TTL,
+       TUNNEL_ATTR_6RD_PREFIX,
+       TUNNEL_ATTR_6RD_RELAY_PREFIX,
        __TUNNEL_ATTR_MAX
 };
 
@@ -51,6 +66,7 @@ int system_if_check(struct device *dev);
 int system_if_dump_info(struct device *dev, struct blob_buf *b);
 int system_if_dump_stats(struct device *dev, struct blob_buf *b);
 struct device *system_if_get_parent(struct device *dev);
+bool system_if_force_external(const char *ifname);
 
 int system_add_address(struct device *dev, struct device_addr *addr);
 int system_del_address(struct device *dev, struct device_addr *addr);