Revision fe9f1a6d proto/ospf/iface.c

View differences:

proto/ospf/iface.c
67 67
int
68 68
ospf_iface_assure_bufsize(struct ospf_iface *ifa, uint plen)
69 69
{
70
  plen += SIZE_OF_IP_HEADER;
70
  struct ospf_proto *p = ifa->oa->po;
71

  
72
  plen += ospf_is_v2(p) ? IP4_HEADER_LENGTH : IP6_HEADER_LENGTH;
71 73

  
72 74
  /* This is relevant just for OSPFv2 */
73 75
  if (ifa->autype == OSPF_AUTH_CRYPT)

Also available in: Unified diff