Date: Fri, 19 Apr 2013 04:36:32 +0000 From: Sreenivasa Honnur <shonnur@chelsio.com> To: "Andrey V. Elsukov" <bu7cher@yandex.ru> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: RE: PV6 bind fails with 49 (#define EADDRNOTAVAIL 49 /* Can't assign requested address */) Message-ID: <F2BBBB6E0068844991318A316F34795C349637@nice.asicdesigners.com> In-Reply-To: <516FF9E1.5030303@yandex.ru> References: <F2BBBB6E0068844991318A316F34795C349141@nice.asicdesigners.com> <516FF961.5070100@yandex.ru> <516FF9E1.5030303@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
roundhay# sysctl -a | grep jailed
security.jail.jailed: 0
Oh, of course, I mean, what do you have in td->td_ucred?
[Sreenivas] not sure, I referred to socreate() usage in the kernel source a=
nd used it.
One more observation. Interface "cxgbe1" has a IPv6 interface and an IPv4 i=
nterface, print in ifa_ifwithaddr_internal () shows like below
ifp->xname:cxgbe1 ifp->dname:cxgbe
ifa->ifa_addr->sa_family:18 addr->sa_family:28 =3D=3D> this is for AF_LINK
ifa->ifa_addr->sa_family:2 addr->sa_family:28 =3D=3D> for AF_INET
Though cxgbe1 has a IPv6 interface there is no entry for AF_INET6
Interface "cxgbe3" is not configured with any IP, print in ifa_ifwithaddr_i=
nternal () shows like below
ifp->xname:cxgbe3 ifp->dname:cxgbe
ifa->ifa_addr->sa_family:18 addr->sa_family:28 =3D=3D> for AF_LINK
roundhay# ifconfig cxgbe1
cxgbe1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1=
500
options=3D6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VL=
AN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:07:43:11:89:88
inet6 2010::102 prefixlen 64
inet6 fe80::207:43ff:fe11:8988%cxgbe1 prefixlen 64 scopeid 0xd
inet 16.1.1.154 netmask 0xff000000 broadcast 16.255.255.255
nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-SR <full-duplex>
status: active
roundhay# iscsictl -S target=3DALL
Failed to start Target iqn.2004-05.com.chelsio.target1
roundhay# ifconfig cxgbe3
cxgbe3: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=3D6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VL=
AN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:07:43:11:89:98
nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-SR <full-duplex>
status: no carrier
-----Original Message-----
From: Andrey V. Elsukov [mailto:bu7cher@yandex.ru]=20
Sent: Thursday, April 18, 2013 7:19 PM
To: Sreenivasa Honnur
Cc: freebsd-hackers@freebsd.org
Subject: Re: PV6 bind fails with 49 (#define EADDRNOTAVAIL 49 /* Can't assi=
gn requested address */)
On 18.04.2013 17:47, Andrey V. Elsukov wrote:
> On 18.04.2013 15:37, Sreenivasa Honnur wrote:
>> I have a ipv6 interface(ping6 to a remove ipv6 works) when I try to=20
>> bind to this address through a socket program "sobind" fails with=20
>> "49" as return value. If I give "saddr6.sin6_addr =3D in6addr_any;"
>> sobind works.
>>
>> Any idea what could be going wrong here?
>=20
> What value has the sysctl variable security.jail.jailed?
Oh, of course, I mean, what do you have in td->td_ucred?
--
WBR, Andrey V. Elsukov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F2BBBB6E0068844991318A316F34795C349637>
