[En-Nut-Discussion] IP forwarding added
ole.reinhardt at embedded-it.de
Thu Sep 20 13:25:52 CEST 2012
> Yes, in my test environment I forwarded IP packets between PPP and
> Ethernet. Actually I didn't change anything regarding multiple
> interfaces, it worked out of the box. I didn't expect any problems when
> using two (or more) Ethernet ports.
> > We definitely will have adapt the PHY registration in a way that a PHY
> > is assigned to each Ethernet driver instance and not handled global (as
> > it currently is).
> You mean the latest changes that had been taken over from the CM3 development branch?
Exactly. Ulrichs PHY implementation allows generic PHY access and in my
eyes should be used for all ethernet chips with external phys. (AFAIK we
implemented it for all such drivers yet).
But we need to modify it a little to bind it to the ethernet driver e.g.
using an entry in the ethernet dcb and to pass the PHY device struct to
each PHY call.
Also just a little bookkeeping.
> > PS: Do you have an idea, how much effort and resources would be needed
> > to implement NAT?
> Some bookkeeping will be required. The required memory space will
> mainly depend on the number of connections that need to be handled. In
> addition, the header checksums need to be recalculated. But I think
> that even an 8-bit CPU can do this.
Sounds good! This way we can start to build our own routers :)
Thermotemp GmbH, Embedded-IT
Embedded Hard-/ Software and Open Source Development,
Integration and Consulting
Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen -
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97
Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280
More information about the En-Nut-Discussion