| .. | .. |
|---|
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | | -/* Copyright (C) 2011-2018 B.A.T.M.A.N. contributors: |
|---|
| 2 | +/* Copyright (C) 2011-2020 B.A.T.M.A.N. contributors: |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Antonio Quartulli |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of version 2 of the GNU General Public |
|---|
| 8 | | - * License as published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 11 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 13 | | - * General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|---|
| 17 | 5 | */ |
|---|
| 18 | 6 | |
|---|
| 19 | 7 | #ifndef _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_ |
|---|
| .. | .. |
|---|
| 23 | 11 | |
|---|
| 24 | 12 | #include <linux/compiler.h> |
|---|
| 25 | 13 | #include <linux/netdevice.h> |
|---|
| 14 | +#include <linux/netlink.h> |
|---|
| 15 | +#include <linux/seq_file.h> |
|---|
| 16 | +#include <linux/skbuff.h> |
|---|
| 26 | 17 | #include <linux/types.h> |
|---|
| 27 | 18 | #include <uapi/linux/batadv_packet.h> |
|---|
| 28 | 19 | |
|---|
| 29 | 20 | #include "originator.h" |
|---|
| 30 | | - |
|---|
| 31 | | -struct netlink_callback; |
|---|
| 32 | | -struct seq_file; |
|---|
| 33 | | -struct sk_buff; |
|---|
| 34 | 21 | |
|---|
| 35 | 22 | #ifdef CONFIG_BATMAN_ADV_DAT |
|---|
| 36 | 23 | |
|---|
| .. | .. |
|---|
| 46 | 33 | struct sk_buff *skb); |
|---|
| 47 | 34 | bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv, |
|---|
| 48 | 35 | struct sk_buff *skb, int hdr_size); |
|---|
| 36 | +void batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv, |
|---|
| 37 | + struct sk_buff *skb, |
|---|
| 38 | + __be16 proto, |
|---|
| 39 | + unsigned short vid); |
|---|
| 40 | +void batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv, |
|---|
| 41 | + struct sk_buff *skb, int hdr_size); |
|---|
| 49 | 42 | bool batadv_dat_drop_broadcast_packet(struct batadv_priv *bat_priv, |
|---|
| 50 | 43 | struct batadv_forw_packet *forw_packet); |
|---|
| 51 | 44 | |
|---|
| .. | .. |
|---|
| 140 | 133 | return false; |
|---|
| 141 | 134 | } |
|---|
| 142 | 135 | |
|---|
| 136 | +static inline void |
|---|
| 137 | +batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv, |
|---|
| 138 | + struct sk_buff *skb, __be16 proto, |
|---|
| 139 | + unsigned short vid) |
|---|
| 140 | +{ |
|---|
| 141 | +} |
|---|
| 142 | + |
|---|
| 143 | +static inline void |
|---|
| 144 | +batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv, |
|---|
| 145 | + struct sk_buff *skb, int hdr_size) |
|---|
| 146 | +{ |
|---|
| 147 | +} |
|---|
| 148 | + |
|---|
| 143 | 149 | static inline bool |
|---|
| 144 | 150 | batadv_dat_drop_broadcast_packet(struct batadv_priv *bat_priv, |
|---|
| 145 | 151 | struct batadv_forw_packet *forw_packet) |
|---|
| .. | .. |
|---|
| 154 | 160 | |
|---|
| 155 | 161 | static inline void batadv_dat_init_own_addr(struct batadv_priv *bat_priv, |
|---|
| 156 | 162 | struct batadv_hard_iface *iface) |
|---|
| 157 | | -{ |
|---|
| 158 | | -} |
|---|
| 159 | | - |
|---|
| 160 | | -static inline void batadv_arp_change_timeout(struct net_device *soft_iface, |
|---|
| 161 | | - const char *name) |
|---|
| 162 | 163 | { |
|---|
| 163 | 164 | } |
|---|
| 164 | 165 | |
|---|