Revision 7e5f769d proto/bgp/packets.c

View differences:

proto/bgp/packets.c
217 217
  struct bgp_af_caps *ac;
218 218
  uint any_ext_next_hop = 0;
219 219
  uint any_add_path = 0;
220
  byte *buf_head = buf;
220 221
  byte *data;
221 222

  
222 223
  /* Prepare bgp_caps structure */
......
394 395
    data[-1] = buf - data;
395 396
  }
396 397

  
398
  caps->length = buf - buf_head;
399

  
397 400
  return buf;
398 401
}
399 402

  
......
405 408
  int i, cl;
406 409
  u32 af;
407 410

  
411
  caps->length += len;
412

  
408 413
  while (len > 0)
409 414
  {
410 415
    if (len < 2 || len < (2 + pos[1]))

Also available in: Unified diff