From phk@critter.freebsd.dk  Mon Mar 24 08:11:46 2008
Return-Path: <phk@critter.freebsd.dk>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D4431106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Mar 2008 08:11:46 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222])
	by mx1.freebsd.org (Postfix) with ESMTP id A4FA58FC16
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Mar 2008 08:11:46 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from critter.freebsd.dk (unknown [192.168.64.3])
	by phk.freebsd.dk (Postfix) with ESMTP id 475F417105
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Mar 2008 07:53:28 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1])
	by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m2O7rST0009925
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Mar 2008 07:53:28 GMT
	(envelope-from phk@critter.freebsd.dk)
Received: (from phk@localhost)
	by critter.freebsd.dk (8.14.2/8.14.2/Submit) id m2O7rRvK009924;
	Mon, 24 Mar 2008 07:53:27 GMT
	(envelope-from phk)
Message-Id: <200803240753.m2O7rRvK009924@critter.freebsd.dk>
Date: Mon, 24 Mar 2008 07:53:27 GMT
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
Reply-To: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: IP_RECVDSTADDR not IPv6 compatible
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         122039
>Category:       kern
>Synopsis:       [ip6] IP_RECVDSTADDR not IPv6 compatible
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnn
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 24 08:20:00 UTC 2008
>Closed-Date:    Sat Jan 31 14:45:37 UTC 2009
>Last-Modified:  Sat Jan 31 15:02:22 UTC 2009
>Originator:     Poul-Henning Kamp
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD critter.freebsd.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #17: Sat Mar 22 16:38:12 UTC 2008 root@critter.freebsd.dk:/freebsd/src/sys/i386/compile/C5 i386


>Description:
	If one sets IP_RECVDSTADDR on a socket (see ip(4)), it
	returns a "struct in_addr" in the cmsg along with the
	packets.

	That is not IPv6 compatible.

	Similar issues may hold for IP_SENDSRCADDR

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gnn 
Responsible-Changed-By: phk 
Responsible-Changed-When: Mon Mar 24 08:23:20 UTC 2008 
Responsible-Changed-Why:  
Over to gnn@ per request 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122039 

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, phk@critter.freebsd.dk
Cc:  
Subject: Re: kern/122039: IP_RECVDSTADDR not IPv6 compatible
Date: Mon, 24 Mar 2008 13:04:09 +0000 (UTC)

 Hi,
 
 Do you want to use IP_RECVDSTADDR on an AF_INET6 socket?
 
 The proper interface for an IPv6 socket is defined in RFC 3542
 [ http://www.rfc-editor.org/rfc/rfc3542.txt ].
 See Paragraph 6. Packet Information for what you are trying to achive.
 
 If you mean that it is possible to use IP_RECVDSTADDR on an IPv6
 socket that might sound bogus. I am unsure what the correct semantics
 for an v4 mapped v6 address would be but that might be a reason to
 permit this on a limited number of sockets.
 
 If we are trying to return an IPv6 address when IP_RECVDSTADDR was set
 on an IPv6 socket, that sounds like a bug and should be fixed.
 
 Unfortunately your PR is not very precise about your actual problem.
 I guess gnn knows;-)
 
 -- 
 Bjoern A. Zeeb                                 bzeeb at Zabbadoz dot NeT
 Software is harder than hardware  so better get it right the first time.
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Sat Jan 31 14:44:58 UTC 2009 
State-Changed-Why:  
closing this PR in favour of kern/118880 - content migrated 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122039 
>Unformatted:

