]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 342925:
authorae <ae@FreeBSD.org>
Fri, 18 Jan 2019 09:57:03 +0000 (09:57 +0000)
committerae <ae@FreeBSD.org>
Fri, 18 Jan 2019 09:57:03 +0000 (09:57 +0000)
commitc5dfd88a4c44ee9233092414cace6685eae924af
tree8c0b3b38f6bbad0bc72696e3cf996c2b3f70d49e
parentb9e76fbb26f626c0da23523141e543cb2b1101f5
MFC 342925:
  Relax requirement to packet size of CARP protocol and remove version check.

  CARP shares protocol number 112 with VRRP (RFC 5798). And the size of
  VRRP packet may be smaller than CARP. ipfw_chk() does m_pullup() to at
  least sizeof(struct carp_header) and can fail when packet is VRRP. This
  leads to packet drop and message about failed pullup attempt.
  Also, RFC 5798 defines version 3 of VRRP protocol, this version number
  also unsupported by CARP and such check leads to packet drop.

  carp_input() does its own checks for protocol version and packet size,
  so we can remove these checks to be able pass VRRP packets.

  PR: 234207
sys/netpfil/ipfw/ip_fw2.c