IPv6 - sobind fails with 49

2013-06-27 Thread Sreenivasa Honnur
I am writing a kernel socket program which binds to a IPv6 address, so bind always fails with 49. Below is the code snippet I am using, is something wrong here? roundhay# uname -a FreeBSD roundhay 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Mon Apr 8 16:15:06 IST 2013 root@roundhay:/usr/obj/ho

RE: PV6 bind fails with 49 (#define EADDRNOTAVAIL 49 /* Can't assign requested address */)

2013-04-19 Thread Sreenivasa Honnur
R status: no carrier -Original Message- From: Andrey V. Elsukov [mailto:bu7c...@yandex.ru] 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 assign requested a

RE: IPV6 bind fails with 49 (#define EADDRNOTAVAIL 49 /* Can't assign requested address */)

2013-04-19 Thread Sreenivasa Honnur
R status: no carrier -Original Message- From: Andrey V. Elsukov [mailto:bu7c...@yandex.ru] 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 assign requested addr

IPv6 bind fails with 49 (#define EADDRNOTAVAIL 49 /* Can't assign requested address */)

2013-04-18 Thread Sreenivasa Honnur
I have a ipv6 interface(ping6 to a remove ipv6 works) when I try to bind to this address through a socket program "sobind" fails with "49" as return value. If I give "saddr6.sin6_addr = in6addr_any;" sobind works. Any idea what could be going wrong here? roundhay# ifconfig cxgbe1 cxgbe1:

PV6 bind fails with 49 (#define EADDRNOTAVAIL 49 /* Can't assign requested address */)

2013-04-18 Thread Sreenivasa Honnur
I have a ipv6 interface(ping6 to a remove ipv6 works) when I try to bind to this address through a socket program "sobind" fails with "49" as return value. If I give "saddr6.sin6_addr = in6addr_any;" sobind works. Any idea what could be going wrong here? roundhay# ifconfig cxgbe1 cxgbe1: