Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2001 09:19:28 -0800 (PST)
From:      Brian Somers <brian@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/ppp ncpaddr.c route.c
Message-ID:  <200111231719.fANHJS821442@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
brian       2001/11/23 09:19:27 PST

  Modified files:
    usr.sbin/ppp         ncpaddr.c route.c 
  Log:
  Be paranoid about non-zero netmasks being associated with INET addresses
  of 0.0.0.0.
  
  The OpenBSD PF_ROUTE/NET_RT_DUMP sysctl is sending back routes with
  RTAX_NETMASK set, but the corresponding sockaddr being 4 zero bytes
  (with an address family of zero).  ppp was getting confused by this
  and ending up interpreting it as a 0.0.0.0/32 routing table
  destination and subsequently failing to do anything with the route.
  
  Specifically, after this fix, ppp under OpenBSD can successfully
  change and delete the default route again !
  
  Revision  Changes    Path
  1.6       +18 -5     src/usr.sbin/ppp/ncpaddr.c
  1.80      +2 -0      src/usr.sbin/ppp/route.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111231719.fANHJS821442>