The reason can be found in 
http://man7.org/linux/man-pages/man7/ipv6.7.html

       IPV6_V6ONLY (since Linux 2.4.21 and 2.6)
              If this flag is set to true (nonzero), then the socket is re
‐
              stricted to sending and receiving IPv6 packets only.  In 
this
              case, an IPv4 and an IPv6 application can bind to a single
              port at the same time.

              If this flag is set to false (zero), then the socket can be
              used to send and receive packets to and from an IPv6 address
              or an IPv4-mapped IPv6 address.

              The argument is a pointer to a boolean value in an integer.

              The default value for this flag is defined by the contents 
of
              the file /proc/sys/net/ipv6/bindv6only.  The default value 
for
              that file is 0 (false).



IO::Socket::IP forces 1 for IPV6_V6ONLY, if any of AF_INET6 or PF_INET6 is 
defined for the socket domain/family and  IPV6_V6ONLY can be set (override 
the OS system default).
IO::Socket::INET6 does not touch the IPV6_V6ONLY flag , which forces the 
usage of the OS level setting.

The overall recommendation is to use the system default - so 
IO::Socket::INET6 does nothing wrong.

Binding to the universal IPv6 [::] with disabled  IPV6_V6ONLY, enables 
IPv6 and IPv4 connection at this listener - binding IPv4 explicit to 
0.0.0.0 to the same port after this, will fail.

The next release of assp V2 will take care of the system setting of 
IPV6_V6ONLY for security reasons. If this system flag is set to 1, nothing 
is changed. If this system flag is set to zero, assp will try to switch it 
to 1 for each defined universal IPv6 listener. How ever, a system can be 
build in a way, that does not allow to change this flag any way - so the 
system default will take place.

Thomas





Von:    "William L. Thomson Jr." <w...@o-sinc.com>
An:     assp-user@lists.sourceforge.net
Datum:  27.06.2015 17:24
Betreff:        Re: [Assp-user] Unable to log into web admin interface



On Saturday, June 27, 2015 04:57:15 PM Thomas Eckardt wrote:
> The running PP (pure perl) code is on all OS the same. It works on any
> BSD, MSWIN, OS/2, OS/400, OSX ....
> If it does not work, bind to specific IP's.

Its not the same on all OS, I would assume it can properly bind to IPv4 
and IPv6 
wildcards on other OS other than Linux. Then again it should be consistent 
for any 
Posix platform, providing the module is coded to Posix and not specific 
*nix variants.

> >it confuses itself and generates the error "Address already in use".
> 
> This is an OS error - from the C-LIB!

NO its from how the library is being used.... The OS raises an error 
because of the 
code, change the code and it will work like other things. Again an issue 
in the 
IO::Socket::INET6 modules code, but you still do not want to  admit or 
believe such. 
Despite all the facts and proof.

Again do the same thing with Perl 5.14 IO::Socket::IP and see the 
difference for 
yourself.  Then you can see how the different Perl modules 
operate/function 
differently on the same OS, using the same libraries...

-- 
William L. Thomson Jr.
Obsidian-Studios, Inc.
http://www.obsidian-studios.com
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user






DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to