diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-10-07 04:16:44 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-10-07 04:16:44 +0200 |
commit | 5daeb1fc6f5a85f09e8b99b5008cd2661c1fc270 (patch) | |
tree | 49e54c40296111cc81198a19285fb804f78d2550 | |
parent | 8cc84b1edb86875fd341e2198aa8ff36b3f5a0f5 (diff) | |
download | ffd-5daeb1fc6f5a85f09e8b99b5008cd2661c1fc270.tar ffd-5daeb1fc6f5a85f09e8b99b5008cd2661c1fc270.zip |
Fix sending of packets with single updates
-rw-r--r-- | ffd/send.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -213,11 +213,11 @@ 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"); - } + if (packet->len) { + if (!send_eth(addr, iface->ifindex, packet, sizeof(ffd_packet_t)+ntohs(packet->len))) + fprintf(stderr, "send_eth: %m\n"); } } |