From owner-freebsd-net Mon Aug 7 7:11:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from wireless.net (wireless.net [207.137.156.159]) by hub.freebsd.org (Postfix) with ESMTP id 66C9037B5AF for ; Mon, 7 Aug 2000 07:11:54 -0700 (PDT) (envelope-from bad@wireless.net) Received: from localhost (bad@localhost) by wireless.net (8.9.3/8.9.3) with SMTP id HAA08266 for ; Mon, 7 Aug 2000 07:11:56 -0700 (PDT) Date: Mon, 7 Aug 2000 07:11:55 -0700 (PDT) From: Bernie Doehner To: net@freebsd.org Subject: Restoring old IPv4 raw socket behavior under 4.1-RELEASE Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi All: 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? I tried replacing AF_INET with AF_INET6, but then I got host unreachable from the sendto(), because I don't have IPv6 routes set up. Thanks, Bernie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message