Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2000 10:25:02 -0700 (PDT)
From:      Bernie Doehner <bad@wireless.net>
To:        itojun@iijlab.net
Cc:        net@freebsd.org
Subject:   Re: Restoring old IPv4 raw socket behavior under 4.1-RELEASE 
Message-ID:  <Pine.BSF.3.95.1000807101002.8801A-100000@wireless.net>
In-Reply-To: <21905.965666902@coconut.itojun.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 8 Aug 2000 itojun@iijlab.net wrote:

> 
> >Just upgraded from 4.0-RELEASE to 4.1-RELEASE, and now a custom
> >application of ours that used to do:
> >
> >socket(AF_INET, SOCK_RAW, 4); 
> >
> >No longer works with:
> >Protocol not supported opening socket.
> >
> >As far as I can tell, this is because SOCK_RAW sockets now default to
> >IPv6. Is there a SIMPLE way to restore old ipv4 SOCK_RAW
> >socket() behavior, so that I don't need to have any IPv6 routes at all?
> 
> 	no, the observation is incorrect.  we simply need rip_{output,ctloutput}
> 	family listed in protosw.
> 
> itojun
> 

Hi Itojun:

Thanks for responding..  This all seems to be new. I don't remmember any
rip_ functions. Is there documentation somewhere on how to do this? 
It's the first time I have ever seen this.

I see the { SOCK_RAW, &inetdomain, IPPROTO_IPV4, PR_ATOMIC|PR_ADDR,
encap4_input, 0, 0, rip_ctloutput, .... } entry in in_proto.c. 

Isn't that what sets up the binding between AF_INET and SOCK_RAW and
protocol 4?

Thanks for unconfusing me.

Bernie



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.1000807101002.8801A-100000>