Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2002 08:46:13 -0800 (PST)
From:      Bill Fenner <fenner@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet in.h ip_divert.c raw_ip.c
Message-ID:  <200210291646.g9TGkDVV031343@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
fenner      2002/10/29 08:46:13 PST

  Modified files:
    sys/netinet          in.h ip_divert.c raw_ip.c 
  Log:
  Renumber IPPROTO_DIVERT out of the range of valid IP protocol numbers.
  This allows socket() to return an error when the kernel is not built
  with IPDIVERT, and doesn't prevent future applications from using the
  "borrowed" IP protocol number.  The sysctl net.inet.raw.olddiverterror
  controls whether opening a socket with the "borrowed" IP protocol
  fails with an accompanying kernel printf; this code should last only a
  couple of releases.
  
  Approved by:    re
  
  Revision  Changes    Path
  1.73      +5 -2      src/sys/netinet/in.h
  1.70      +2 -2      src/sys/netinet/ip_divert.c
  1.104     +12 -0     src/sys/netinet/raw_ip.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?200210291646.g9TGkDVV031343>