On 12/8/07, Ochal Christophe <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On Thu, 2007-12-06 at 10:26 +0000, John Carr wrote:
> > On 12/6/07, Mark Ellis <[EMAIL PROTECTED]> wrote:
>
> > > DHCP has been mentioned a few times, so ok run a dhcp server on the
> > > linux box, set the device to use dhcp, but what about an ip for the
> > > linux box's end of the connection. Couldn't just get any other dhcp ip
> > > and claculate a netmask, surely there would be routing chaos ! Anybody
> > > have any idea how this is supposed to work ?
> >
> > Isn't the DHCP server on the phone? For the moto q's you had to
> > dhclient rndis0, so yes I think the device is packing DHCP. And yes, I
> > fear the utter chaos too.
>
> Actually, no.
> What you need is a fixed interface on the linux machine (this is the
> serial/bluetooth/whatchawantit interface) that listens to connecting
> devices. This side *HAS* a fixed ip that's different from your other ip
> address (on the interface facing your network), you *will* need to use
> iptables for routing if you want your PDA to get to the internet this
> way, but if not, all you need to do is run a dhcp server on the linux
> machine that's binding to the fixed ip address of the serial/bluetooth
> interface.
Well thats obviously the logical choice. So far we force a device to
use an IP of our choice, however that breaks for at least the Moto Q.
This has an IP that seems to change randomly. Odccm has been modded to
let a user choose an IP, allowing the Moto Q to work.
Its also worth noting that if you want the PDA to get the internet
some apps will work with standard routing. Others need DTPT.py to
supply the Desktop Passthrough Proxy. Joy.
> No WM device i have seen sofar comes with a dhcp-server, only with a dhcp
> client.
Are you absolutely certain?
[EMAIL PROTECTED]:~/Projects/synce/usb-rndis-lite$ sudo ifconfig eth3
eth3 Link encap:Ethernet HWaddr 80:00:60:0f:e8:00
UP BROADCAST RUNNING MULTICAST MTU:8050 Metric:1
RX packets:7 errors:6 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:340 (340.0 B) TX bytes:134 (134.0 B)
[EMAIL PROTECTED]:~/Projects/synce/usb-rndis-lite$ sudo dhclient eth3
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth3/80:00:60:0f:e8:00
Sending on LPF/eth3/80:00:60:0f:e8:00
Sending on Socket/fallback
DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 169.254.2.1
DHCPREQUEST on eth3 to 255.255.255.255 port 67
DHCPACK from 169.254.2.1
bound to 169.254.2.2 -- renewal in 1260637 seconds.
[EMAIL PROTECTED]:~/Projects/synce/usb-rndis-lite$ sudo ifconfig eth3
eth3 Link encap:Ethernet HWaddr 80:00:60:0f:e8:00
inet addr:169.254.2.2 Bcast:169.254.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:8050 Metric:1
RX packets:9 errors:8 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:944 (944.0 B) TX bytes:3971 (3.8 KiB)
eth3 is the WM6 device i just plugged in. It's the same with my WM5
device. What the hell is responding to the DHCP request???
Normally odccm forces the IP to the very ones that DHCP has offered.
Its always .2.1 and .2.2... But for the moto q it seems to reply with
general weirdness. If you do not comply with its wishes then you will
be beaten down... Or rather, odccm won't work.
One thought I have is that the phone has some kind of fake DHCP thing
going on so that windows can auto configure the device with an IP when
you plug it in - the values it returns might come from the registry,
rather than a traditional DHCP server. (This fits with some keys that
we have been able to change in the past I think).
John
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
SynCE-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synce-devel