Re: How to provide DHCP on a technology

2015-10-21 Thread John Ernberg
Hi Patrik, On 10/19/2015 09:29 AM, Patrik Flykt wrote: > On Thu, 2015-10-15 at 09:26 +, John Ernberg wrote: > >>> USB Host USB Gadget >>> +--+ +--+ >>> | eth0| | | >>> |ES|USB cable |

Re: How to provide DHCP on a technology

2015-10-19 Thread Patrik Flykt
On Thu, 2015-10-15 at 09:26 +, John Ernberg wrote: > > USB Host USB Gadget > > +--+ +--+ > > | eth0| | | > > |ES|USB cable |Dev | > > | usb0|--|usb0 | > >

Re: How to provide DHCP on a technology

2015-10-15 Thread John Ernberg
Hi Patrik, On 10/14/2015 03:20 PM, Patrik Flykt wrote: > Hi, > > On Wed, 2015-10-14 at 13:09 +, John Ernberg wrote: >> All I know is that cdc_ether interfaces shows up as usb0, the eth0 >> ethernet is a real ethernet port. When looking in /sys/class/net/usb0 >> it indeed shows up as a

Re: How to provide DHCP on a technology

2015-10-15 Thread John Ernberg
Hi again Patrik, I decided to tcpdump the connection, just in case that would help. Attached the output below. Best regards // John Ernberg On 10/15/2015 09:57 AM, John Ernberg wrote: > Hi Patrik, > > On 10/14/2015 03:20 PM, Patrik Flykt wrote: > >> Hi, >> >> On Wed, 2015-10-14 at 13:09

Re: How to provide DHCP on a technology

2015-10-14 Thread John Ernberg
Hi Patrik, On 10/13/2015 11:32 AM, Patrik Flykt wrote: > Hi, > > On Tue, 2015-10-13 at 08:49 +, John Ernberg wrote: > >> ConnMan runs on the embedded system, which is the USB host side. >> And when an USB gadget connects, I want to start a DHCP server on the >> interface provided by

Re: How to provide DHCP on a technology

2015-10-14 Thread Patrik Flykt
On Wed, 2015-10-14 at 06:40 +, John Ernberg wrote: > I made a ramdisk out of /var/ when I made the file system read only. > Nothing is however preserved after a reboot, and that has not been > problem for me yet. That's actually a problem, as /var (especially /var/lib) is the only location

Re: How to provide DHCP on a technology

2015-10-14 Thread John Ernberg
Hi Patrik On 10/14/2015 10:21 AM, Patrik Flykt wrote: > On Wed, 2015-10-14 at 06:40 +, John Ernberg wrote: > >> I made a ramdisk out of /var/ when I made the file system read only. >> Nothing is however preserved after a reboot, and that has not been >> problem for me yet. > That's actually

Re: How to provide DHCP on a technology

2015-10-14 Thread Patrik Flykt
Hi, On Wed, 2015-10-14 at 13:09 +, John Ernberg wrote: > All I know is that cdc_ether interfaces shows up as usb0, the eth0 > ethernet is a real ethernet port. When looking in /sys/class/net/usb0 > it indeed shows up as a gadget in the uevent file. This now looks like you are

Re: How to provide DHCP on a technology

2015-10-13 Thread John Ernberg
Hi Patrik, On 10/13/2015 10:21 AM, Patrik Flykt wrote: > Hi, > > On Mon, 2015-10-12 at 14:26 +, John Ernberg wrote: > >> I'm using Connman in an embedded environment where a device will connect >> to us over USB, this device will provide an ethernet interface on the >> USB port, and

Re: How to provide DHCP on a technology

2015-10-13 Thread Patrik Flykt
Hi, On Mon, 2015-10-12 at 14:26 +, John Ernberg wrote: > I'm using Connman in an embedded environment where a device will connect > to us over USB, this device will provide an ethernet interface on the > USB port, and the device will be in gadget mode. > Thus when they connect to

Re: How to provide DHCP on a technology

2015-10-13 Thread Patrik Flykt
Hi, On Tue, 2015-10-13 at 08:49 +, John Ernberg wrote: > ConnMan runs on the embedded system, which is the USB host side. > And when an USB gadget connects, I want to start a DHCP server on the > interface provided by cdc_ether so that the USB gadget that connects > can receive an

How to provide DHCP on a technology

2015-10-12 Thread John Ernberg
Hi, I'm using Connman in an embedded environment where a device will connect to us over USB, this device will provide an ethernet interface on the USB port, and the device will be in gadget mode. Thus when they connect to us we load the cdc_ether driver and create an Ethernet interface over