Synopsis
========
Fixes PR 216908 - RHEL4:Server fails to start on IP Binding
to all IPv6 addresses
Branches: SERVER_12_1, SERVER_CURRENT (HEAD)
Suggested Reviewer(s): Dean, Atin
Description
===========
Problem: The server (on Linux) failed to start if
"::" (the IPv6 equivalent of 0.0.0.0) was added to
'IPBindings' on the admin page.
Cause: When binding to "::", the server has to set
the IPV6_V6ONLY socket option. Due to a mismatch in offsets
of the socket options
in HXSockOpt (hxnet.h) and g_hxopttbl (netdrv.cpp), the
server was wrongly setting the IPV6_UNICAST_HOPS option
instead of IPV6_V6ONLY
option.
Solution: Added a dummy option in g_hxopttbl in netdrv.cpp
to match offsets with HXSockOpt in hxnet.cpp
Files Affected
==============
/common/include/hxnet.h (just added a comment)
/common/netio/platform/posix/netdrv.cpp
Testing Performed
=================
Unit Tests:
- None
Integration Tests:
- Bind "::" from IPBindings in Admin Page
- Bind "0.0.0.0" from IPBindings in Admin Page
Leak Tests:
- None
Performance Tests:
- None
Platforms Tested: linux-rhel4-i686, win32-i386-vc7,
sunos-5.10-sparc-server
Build verified: linux-rhel4-i686, win32-i386-vc7,
sunos-5.10-sparc-server
QA Hints
========
- Add "::" to the IPBindings section on the Admin
page and try restarting the server (with server, browser
client on IPv6 compatible network).
_______________________________________________
Common-dev mailing list
Common-dev helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/comm
on-dev
|