|
@@ -165,7 +165,7 @@ static void send_packet(struct forw_packet *forw_packet)
|
|
|
struct bat_priv *bat_priv;
|
|
|
struct batman_packet *batman_packet =
|
|
|
(struct batman_packet *)(forw_packet->skb->data);
|
|
|
- unsigned char directlink = (batman_packet->flags & DIRECTLINK ? 1 : 0);
|
|
|
+ int directlink = (batman_packet->flags & DIRECTLINK ? 1 : 0);
|
|
|
|
|
|
if (!forw_packet->if_incoming) {
|
|
|
pr_err("Error - can't forward packet: incoming iface not "
|
|
@@ -307,12 +307,12 @@ void schedule_own_packet(struct hard_iface *hard_iface)
|
|
|
void schedule_forward_packet(struct orig_node *orig_node,
|
|
|
const struct ethhdr *ethhdr,
|
|
|
struct batman_packet *batman_packet,
|
|
|
- uint8_t directlink, int tt_buff_len,
|
|
|
+ int directlink, int tt_buff_len,
|
|
|
struct hard_iface *if_incoming)
|
|
|
{
|
|
|
struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface);
|
|
|
struct neigh_node *router;
|
|
|
- unsigned char in_tq, in_ttl, tq_avg = 0;
|
|
|
+ uint8_t in_tq, in_ttl, tq_avg = 0;
|
|
|
unsigned long send_time;
|
|
|
|
|
|
if (batman_packet->ttl <= 1) {
|