From owner-freebsd-stable@FreeBSD.ORG Tue Mar 9 10:28:59 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E203F16A4D4 for ; Tue, 9 Mar 2004 10:28:59 -0800 (PST) Received: from 153-bem-1.acn.waw.pl (153-bem-1.acn.waw.pl [62.121.80.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 00EFF43D1F for ; Tue, 9 Mar 2004 10:28:59 -0800 (PST) (envelope-from lukasz.stelmach@k.telmark.waw.pl) Received: (qmail 838 invoked by uid 1000); 9 Mar 2004 18:28:57 -0000 Date: Tue, 9 Mar 2004 19:28:57 +0100 From: Lukasz Stelmach To: freebsd-stable@freebsd.org Message-ID: <20040309182857.GA818@tygrys.k.telmark.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Mail-Editor: nvi X-GPG-Fingerprint: 68B8 6D4F 0C5E 291F C4E0 BBF4 35DC D8F2 C9BD 2BDC X-GPG-Key: http://www.ee.pw.edu.pl/~stelmacl/gpg_key.txt Subject: sockaddr_(in|in6) compatiblity X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Lukasz Stelmach List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 18:29:00 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings All. Tell me please is it normal what i get? 1. I open socket AF_INET6/SOCK_DGRAM... OK 2. bind it to ::ffff:127.0.0.1/53... OK 3. recvfrom() data from the socket... OK 4. *from (the 5th parameter to recvfrom) gets filled in like it was a sockaddr_in (ipv4) structure which means that senders address is in sin6_flowinfo instead of sin6_addr. Now this makes somehow more difficult to use inet_ntop since first one has to check sin6_family and decide wether to pass sin6_addr or sin6_flowinfo as an address to print. Did I miss something in manual? Cheers. PS. I use 4.9-RC from begining of October. --=20 |/ |_, _ .- --, Ju=BF z ka=BFdej strony pe=B3zn=B1, potworne =BF= =B1dze |__ |_|. | \ |_|. ._' /_. B=EAd=EA uprawia=B3 nierz=B1d, za pieni= =B1ze ----- End forwarded message ----- --=20 |/ |_, _ .- --, Ju=BF z ka=BFdej strony pe=B3zn=B1, potworne =BF= =B1dze |__ |_|. | \ |_|. ._' /_. B=EAd=EA uprawia=B3 nierz=B1d, za pieni= =B1ze --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFATgzpNdzY8sm9K9wRAgxbAKCZBW/vT/4nmk8IQXrvTrooZ4ABmgCfSKFA msR1UP2Od7Yq9S944zpKWCc= =toTV -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--