#19 cannot start if ipv6 module is not loaded

closed-fixed
nobody
None
5
2013-01-30
2013-01-29
michube
No

error:
pi@raspberrypi ~/ser2net-2.8-rc3 $ sudo ser2net -n -d -u -p 333
ser2net[2563]: Error on line 3, Unable to create TCP socket
ser2net[2563]: Unable to create TCP socket: Address family not supported by protocol
Unable to open control port, see syslog: 333

i found a similar issue here: http://www.spinics.net/lists/linux-nfs/msg21046.html

workarround: i inserted the ipv6 module, then it works.

Discussion

  • Corey Minyard
    Corey Minyard
    2013-01-29

    I just pushed a fix to git that will hopefully handle this issue. If the socket() call fails with EAFNOSUPPORT, it now retries using AF_INET for the domain when looking up the address.

    Can you try this change?

     
  • michube
    michube
    2013-01-29

    wow that was fast!

    I'll try it tomorrow and let you know if this fixed the issue. Thanks for your work!

    Cheers

     
  • michube
    michube
    2013-01-30

    great, that fixed the issue:

    @raspberrypi ~/ser2net $ ser2net -d -n
    ser2net[6005]: Error on line 1, Unable to create TCP socket

    pi@raspberrypi ~/ser2net $ ./ser2net -d -n
    <listen>

    thanks for the quick fix!

     
  • Corey Minyard
    Corey Minyard
    2013-01-30

    Thank you for reporting the problem. It was an easy fix, but important.

     
  • Corey Minyard
    Corey Minyard
    2013-01-30

    • status: open --> closed-fixed