10b873931SAntonio Quartulli /* Copyright (C) 2009-2013 B.A.T.M.A.N. contributors: 2c6c8fea2SSven Eckelmann * 3c6c8fea2SSven Eckelmann * Marek Lindner 4c6c8fea2SSven Eckelmann * 5c6c8fea2SSven Eckelmann * This program is free software; you can redistribute it and/or 6c6c8fea2SSven Eckelmann * modify it under the terms of version 2 of the GNU General Public 7c6c8fea2SSven Eckelmann * License as published by the Free Software Foundation. 8c6c8fea2SSven Eckelmann * 9c6c8fea2SSven Eckelmann * This program is distributed in the hope that it will be useful, but 10c6c8fea2SSven Eckelmann * WITHOUT ANY WARRANTY; without even the implied warranty of 11c6c8fea2SSven Eckelmann * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12c6c8fea2SSven Eckelmann * General Public License for more details. 13c6c8fea2SSven Eckelmann * 14c6c8fea2SSven Eckelmann * You should have received a copy of the GNU General Public License 15c6c8fea2SSven Eckelmann * along with this program; if not, write to the Free Software 16c6c8fea2SSven Eckelmann * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17c6c8fea2SSven Eckelmann * 02110-1301, USA 18c6c8fea2SSven Eckelmann */ 19c6c8fea2SSven Eckelmann 20c6c8fea2SSven Eckelmann #ifndef _NET_BATMAN_ADV_GATEWAY_COMMON_H_ 21c6c8fea2SSven Eckelmann #define _NET_BATMAN_ADV_GATEWAY_COMMON_H_ 22c6c8fea2SSven Eckelmann 23cd646ab1SSven Eckelmann enum batadv_gw_modes { 24cd646ab1SSven Eckelmann BATADV_GW_MODE_OFF, 25cd646ab1SSven Eckelmann BATADV_GW_MODE_CLIENT, 26cd646ab1SSven Eckelmann BATADV_GW_MODE_SERVER, 27c6c8fea2SSven Eckelmann }; 28c6c8fea2SSven Eckelmann 29414254e3SMarek Lindner /** 30414254e3SMarek Lindner * enum batadv_bandwidth_units - bandwidth unit types 31414254e3SMarek Lindner * @BATADV_BW_UNIT_KBIT: unit type kbit 32414254e3SMarek Lindner * @BATADV_BW_UNIT_MBIT: unit type mbit 33414254e3SMarek Lindner */ 34414254e3SMarek Lindner enum batadv_bandwidth_units { 35414254e3SMarek Lindner BATADV_BW_UNIT_KBIT, 36414254e3SMarek Lindner BATADV_BW_UNIT_MBIT, 37414254e3SMarek Lindner }; 38414254e3SMarek Lindner 3997ea4ba1SSven Eckelmann #define BATADV_GW_MODE_OFF_NAME "off" 4097ea4ba1SSven Eckelmann #define BATADV_GW_MODE_CLIENT_NAME "client" 4197ea4ba1SSven Eckelmann #define BATADV_GW_MODE_SERVER_NAME "server" 42c6c8fea2SSven Eckelmann 4384d5e5e0SSven Eckelmann ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, 4484d5e5e0SSven Eckelmann size_t count); 45414254e3SMarek Lindner void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv); 46414254e3SMarek Lindner void batadv_gw_init(struct batadv_priv *bat_priv); 47414254e3SMarek Lindner void batadv_gw_free(struct batadv_priv *bat_priv); 48c6c8fea2SSven Eckelmann 49c6c8fea2SSven Eckelmann #endif /* _NET_BATMAN_ADV_GATEWAY_COMMON_H_ */ 50