X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fbfd.c;h=740f4fc1aa2e3098831970d290f1a0888a5aa05e;hb=6fc681f896785e355c7f174364b375080e0daf81;hp=115053beea84d418ffb81ad50c52214c53b214e7;hpb=88e4462e611540ce57554dcbb6794df57f7bf7b7;p=sliver-openvswitch.git diff --git a/lib/bfd.c b/lib/bfd.c index 115053bee..740f4fc1a 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -639,8 +639,10 @@ bfd_process_packet(struct bfd *bfd, const struct flow *flow, msg = ofpbuf_at(p, (uint8_t *)p->l7 - (uint8_t *)p->data, BFD_PACKET_LEN); if (!msg) { - VLOG_INFO_RL(&rl, "%s: Received unparseable BFD control message.", - bfd->name); + VLOG_INFO_RL(&rl, "%s: Received too-short BFD control message (only " + "%td bytes long, at least %d required).", + bfd->name, (uint8_t *) ofpbuf_tail(p) - (uint8_t *) p->l7, + BFD_PACKET_LEN); goto out; }