From: Lieven H. <li...@li...> - 2011-12-27 13:11:51
|
Hi, Op 27-dec.-2011, om 05:45 heeft Michael Stovenour het volgende geschreven: > > Thanks for the feedback. I'll add these to mh.ini. > Thank you. >> I do find it a bit strange that it is required to set ip_address_xpl. Is > there anybody who knows why that is required? It should default to the ip > address of the machine where MH is running on if it is not set (with the > option to override it of course on machines with multiple network > interfaces). > > I haven't had this experience. I double-checked this. I forgot my MH machine has two network interfaces: a wired and a wireless one (I'm not using the wireless, hence I forgot about it). This is probably the reason I had to specify the interface to use. So I take back my statement. > I don't need to specify the ipaddress_xpl > parameter but in Windows I "do" need to specify the broadcast address. This > has to do with MH using 255.255.255.255 for the broadcast address. Windows > does not send a broadcast message onto the wire when using that address. > Other xPL implementations I've seen (e.g. xPL-Perl) use the network > broadcast (e.g. 192.168.1.255) when sending. That seems to work for both > Linux and Windows. I'm experiencing problems using 255.255.255.255 on Mac OS X also, so the problem might not be Windows-only :-) > However finding the network broadcast or even the > network mask can be a real pain. The xPL-perl library is written only for > Linux and parses the output from `ifconfig` to get the broadcast address. I > modified that code to work under windows (and Cygwin) using `ipconfig` but > it is fragile; (e.g. windows vista/7 broke my parsing logic requiring > updates). I think it is ok to require manual configuration of the broadcast > address. There were a few Linux-specific things in the xpl-perl code, but the author (beanz) is very open to modifications that make the library more cross-platform (you can submit patches through github). I'm using xpl-perl on OS X as my main xPL-related code base with only minor changes to the official release. Regards, Lieven. |