Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 1998 01:44:33 -0700 (PDT)
From:      Julian Elischer <julian@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-share@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/share/man/man4 divert.4 src/sys/netinet ip_divert.c
Message-ID:  <199805250844.BAA03548@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
julian      1998/05/25 01:44:32 PDT

  Modified files:
    share/man/man4       divert.4 
    sys/netinet          ip_divert.c 
  Log:
  Hide the interface name in the sin_zero section of the sockaddr_in
  passed to the user process for incoming packets. When the sockaddr_in
  is passed back to the divert socket later, use thi sas the primary
  interface lookup and only revert to the IP address when the name fails.
  This solves a long standing bug with divert sockets:
  When two interfaces had the same address (P2P for example) the interface
  "assigned" to the reinjected packet was sometimes incorect.
  Probably we should define a "sockaddr_div" to officially hold this
  extended information in teh same manner as sockaddr_dl.
  
  Revision  Changes    Path
  1.11      +11 -3     src/share/man/man4/divert.4
  1.25      +50 -8     src/sys/netinet/ip_divert.c



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