Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2013 11:59:48 +0000
From:      Sreenivasa Honnur <shonnur@chelsio.com>
To:        current <current@freebsd.org>
Subject:   IPv6 bind fails with 49 (#define EADDRNOTAVAIL 49 /* Can't assign requested address */)
Message-ID:  <F2BBBB6E0068844991318A316F34795C34917D@nice.asicdesigners.com>
In-Reply-To: <516FA5B1.2040202@freebsd.org>
References:  <CAPjTQNFOkxK=Qj%2BCrpTk1Xg9AmRs_oUXEMmPqWZA=iHKvqY7zg@mail.gmail.com> <516FA5B1.2040202@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
SSBoYXZlIGEgaXB2NiBpbnRlcmZhY2UocGluZzYgdG8gYSByZW1vdmUgaXB2NiB3b3Jrcykgd2hl
biBJIHRyeSB0byBiaW5kIHRvIHRoaXMgYWRkcmVzcyB0aHJvdWdoIGEgc29ja2V0IHByb2dyYW0g
InNvYmluZCIgZmFpbHMgd2l0aCAiNDkiIGFzIHJldHVybiB2YWx1ZS4gSWYgSSBnaXZlICJzYWRk
cjYuc2luNl9hZGRyID0gIGluNmFkZHJfYW55OyIgc29iaW5kIHdvcmtzLg0KDQpBbnkgaWRlYSB3
aGF0IGNvdWxkIGJlIGdvaW5nIHdyb25nIGhlcmU/IA0KDQpyb3VuZGhheSMgaWZjb25maWcgY3hn
YmUxDQpjeGdiZTE6IGZsYWdzPTg4NDM8VVAsQlJPQURDQVNULFJVTk5JTkcsU0lNUExFWCxNVUxU
SUNBU1Q+IG1ldHJpYyAwIG10dSAxNTAwDQogICAgICAgIG9wdGlvbnM9NmMwN2JiPFJYQ1NVTSxU
WENTVU0sVkxBTl9NVFUsVkxBTl9IV1RBR0dJTkcsSlVNQk9fTVRVLFZMQU5fSFdDU1VNLFRTTzQs
VFNPNixMUk8sVkxBTl9IV1RTTyxMSU5LU1RBVEUsUlhDU1VNX0lQVjYsVFhDU1VNX0lQVjY+DQog
ICAgICAgIGV0aGVyIDAwOjA3OjQzOjExOj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WFkLCBpZmFfbGluaykgew0KICAgICAgICAgICAgICAgICAgICAgICAgaWYg
KGlmYS0+aWZhX2FkZHItPnNhX2ZhbWlseSAhPSBhZGRyLT5zYV9mYW1pbHkpIO+DqCAgaWZhLT5p
ZmFfYWRkci0+c2FfZmFtaWx5PTE4ICYgYWRkci0+c2FfZmFtaWx5PTI4LiBFdmVuIHRob3VnaCB0
aGUgaW50ZXJmYWNlIGlzIGluIElQVjYgbW9kZSBpdHMgc2FfZmFtaWx5IGlzIG5vdCAgc2V0IHBy
b3Blcmx5LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgY29udGludWU7DQp9DQpJZmEgPSBOVUxMOw0K4oCm4oCmLi4NCuKApuKApi4uDQoN
Cn0NCg0K



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F2BBBB6E0068844991318A316F34795C34917D>