Fix sending of packets with single updates
This commit is contained in:
parent
8cc84b1edb
commit
5daeb1fc6f
1 changed files with 4 additions and 4 deletions
|
@ -213,13 +213,13 @@ void ffd_send_update(ffd_iface_t *iface, ffd_neigh_t *neigh, ffd_announce_t *ann
|
|||
packet->len = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (packet->len) {
|
||||
if (!send_eth(addr, iface->ifindex, packet, sizeof(ffd_packet_t)+ntohs(packet->len)))
|
||||
fprintf(stderr, "send_eth: %m\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ffd_send_announce_request(ffd_iface_t *iface, ffd_neigh_t *neigh, ffd_node_id_t node, uint16_t type, uint16_t key, bool with_data) {
|
||||
ffd_packet_t *packet = alloca(sizeof(ffd_packet_t)+FFD_PACKET_MAX);
|
||||
|
|
Reference in a new issue