Re: natd broken for days

From: Mark Santcroos <marks_at_ripe.net>
Date: Thu, 11 Nov 2004 17:36:38 +0100
On Thu, Nov 11, 2004 at 05:25:23AM -0800, Sean McNeil wrote:
> It has been reported that both amd64 and i386 architectures will panic
> in natd by jumping to address 0.  There has been no discussion since the
> reports, however, and I was wondering if anyone is looking into it.

This should fix it.

--- sys/netinet/ip_divert.c	Mon Nov  8 15:44:53 2004
+++ sys/netinet/ip_divert.c	Thu Nov 11 17:24:07 2004
_at__at_ -671,6 +671,9 _at__at_
 	.pru_send =		div_send,
 	.pru_shutdown =		div_shutdown,
 	.pru_sockaddr =		div_sockaddr,
+	.pru_sosend =		sosend,
+	.pru_soreceive = 	soreceive,
+	.pru_sopoll =		sopoll,
 	.pru_sosetlabel		in_pcbsosetlabel
 };

-- 
RIPE NCC - Delft University of Technology - The FreeBSD Project
marks_at_ripe.net - m.a.santcroos_at_ewi.tudelft.nl - marks_at_freebsd.org
Received on Thu Nov 11 2004 - 15:36:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC