[Freeciv-Dev] [bug #22792] LAN scan has never worked for me on Ubuntu Linux

2015-08-15 Thread Zakri Kneebone
Follow-up Comment #4, bug #22792 (project freeciv):

I remember Ubuntu LAN working once upon a time. LAN scan stopped working for
me on Ubuntu circa freeciv 2.3.1, about the same time ipv6 scanning was
introduced. I have the feeling from tinkering that there is more than one
issue.

I remember this discussion: https://gna.org/bugs/?18922
about difficulty with net lookup having unexpected failure. 
Also, about that time Ubuntu started using usb_modeswitch function to lookup
wifi drivers on login and hotplug the wifi/gsm driver, otherwise Ubuntu would
continue reading usb multi-device on dev/bus/usb ${root}:000 (as a flash
drive) and fail device mapping to interface. usb_modeswitch is now installed
by default. 
If your device is not in the official list you have to edit the tabulated file
in /etc with a device-id, mode number and wifi kernel driver, sometimes even
blacklisting is needed.
wpa2 security functionality became standardized around that time and the
wpa_supplicant package went a major revision. Another idea for test.

Test ideas: 1) alias or link ppp0 to eth0. 2) NAT bridge ppp0 to eth0. I'm
sure it would take me hours to figure how to do that. (Also my PPP are in the
landfill.)
Anycase, I had tons of issues on Ubuntu with multimode usb iface handling and
suspect that is a contributing factor in protocol issues since then.
I haven't tried playing LAN in many other games on Ubuntu for comparison.

___

Reply to this item at:

  http://gna.org/bugs/?22792

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #22792] LAN scan has never worked for me on Ubuntu Linux

2014-11-09 Thread Marko Lindqvist
Follow-up Comment #3, bug #22792 (project freeciv):

The interface selection lines are

mreq6.ipv6mr_interface = 0; /* TODO: Interface selection */

when ANNOUNCE_IPV6 used, and

mreq4.imr_interface.s_addr = htonl(INADDR_ANY);

otherwise.

___

Reply to this item at:

  http://gna.org/bugs/?22792

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #22792] LAN scan has never worked for me on Ubuntu Linux

2014-10-12 Thread Jacob Nevins
URL:
  http://gna.org/bugs/?22792

 Summary: LAN scan has never worked for me on Ubuntu Linux
 Project: Freeciv
Submitted by: jtn
Submitted on: Sun 12 Oct 2014 14:15:00 BST
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: S2_4 r26761
 Discussion Lock: Any
Operating System: GNU/Linux
 Planned Release: 

___

Details:

I don't recall seeing the LAN scan feature working with any version of
Freeciv, on Linux, ever (or at least since I've been using Ubuntu).

My current Ubuntu version is 12.04 (but I've used older LTS versions such as
10.04). Testing with Freeciv head-of-S2_4 r26761 (but as I say, I've never
seen it work with an older or newer version).

This may well be something peculiar to my configuration, so some details:
* I believe network stack is IPv6-capable but it certainly has no connectivity
(so only link-local/localhost stuff should work?)
* I use two machines, both currently running Ubuntu 12.04:
** one (desktop) which may or may not have a local network interface (eth0),
and basically always has a ppp0 Internet connection and is running a
forwarding firewall (and has been this way forever). (THis is an unusual
configuration; most people have a router to manage their Internet
connection.)
** one (netbook) which is in a classic client setup, usually with wired or
wireless network connectivity (including firewall)

Normally client and server run on the same machine (am I right to expect this
case to work?), but I can't get any joy even if they don't.

(Disclaimer: I know little about broadcast/multicast/UDP and how it's meant to
be used.)



Here's what I see when I follow the steps in patch #5361. (I believe udp/4555
and udp/4556 are the relevant ports for this feature, and
default_multicast_group_ipv4 is 225.1.1.1.)
FAOD, this was all on the desktop machine, with ppp0 but without eth0
connectivity; but adding eth0 or doing it on the netbook or putting
client/server on different machines seems to make little difference.

 1. Start server

No error messages on server console. netstat -a --ip -n shows:


udp0  0 0.0.0.0:45550.0.0.0:* 



netstat -g -n gains this additional line on the desktop:


ppp01  225.1.1.1


(Hmm. Only joining multicast group on a single interface, and that being an
unhelpful one? On my netbook this line mentions eth0.)

 2. Start client

No change.

 3. Connect to Network Game
 4. Wait a couple of seconds for server to appear in Local Area Network
-tab (open by default) 

Step 4 never happens. No error messages from client.


udp0  0 0.0.0.0:45550.0.0.0:* 

udp0  0 0.0.0.0:45560.0.0.0:* 




ppp02  225.1.1.1


(similar but with eth0 on the netbook)



Vague theory (just formed):

We're somehow attaching the LAN-scan magic to a single random interface when
maybe we should be attaching it to more.

On my desktop machine it ends up on the Internet interface, ppp0. On my
netbook it ends up on eth0. Maybe that explains why they can't see each other?
Perhaps if my setup were more conventional (both machines only having eth0)
it would happen to work?

Maybe not attaching it to lo explains why client/server on the same machine
can't see each other?




___

Reply to this item at:

  http://gna.org/bugs/?22792

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #22792] LAN scan has never worked for me on Ubuntu Linux

2014-10-12 Thread Marko Lindqvist
Follow-up Comment #1, bug #22792 (project freeciv):

Indeed, the IPv6 side even has a TODO comment: /* TODO: Interface selection */

___

Reply to this item at:

  http://gna.org/bugs/?22792

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #22792] LAN scan has never worked for me on Ubuntu Linux

2014-10-12 Thread Jacob Nevins
Follow-up Comment #2, bug #22792 (project freeciv):

I tried getting rid of the ppp0 interface on my desktop machine to see if the
desktop and laptop could find each other, but the desktop started exhibiting
bug #19840 despite having local connectivity via eth0. (IP_ADD_MEMBERSHIP
(225.1.1.1) failed / lanserver scan sendto failed)

Is it trying to use the interface which has the default route, or something?
(Still not looked at the code.)

___

Reply to this item at:

  http://gna.org/bugs/?22792

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev