mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Compilation fixes
This commit is contained in:
parent
eeb0f545a8
commit
7e26499c4f
|
@ -233,6 +233,8 @@ int cc20_crypt (unsigned char *out, const unsigned char *in, size_t in_len,
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -965,11 +965,11 @@ static int build_gratuitous_arp(n2n_edge_t * eee, char *buffer, uint16_t buffer_
|
||||||
/** Called from update_supernode_reg to periodically send gratuitous ARP
|
/** Called from update_supernode_reg to periodically send gratuitous ARP
|
||||||
* broadcasts. */
|
* broadcasts. */
|
||||||
static void send_grat_arps(n2n_edge_t * eee) {
|
static void send_grat_arps(n2n_edge_t * eee) {
|
||||||
char buffer[48];
|
uint8_t buffer[48];
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
traceEvent(TRACE_DEBUG, "Sending gratuitous ARP...");
|
traceEvent(TRACE_DEBUG, "Sending gratuitous ARP...");
|
||||||
len = build_gratuitous_arp(eee, buffer, sizeof(buffer));
|
len = build_gratuitous_arp(eee, (char*)buffer, sizeof(buffer));
|
||||||
|
|
||||||
edge_send_packet2net(eee, buffer, len);
|
edge_send_packet2net(eee, buffer, len);
|
||||||
edge_send_packet2net(eee, buffer, len); /* Two is better than one :-) */
|
edge_send_packet2net(eee, buffer, len); /* Two is better than one :-) */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user