[uml-user] uml_switch tun/tap support broken

Hi Jeff,
the new tun/tap support in the latest uml_switch is broken because it
doesn't set the "raw packet" flag while opening the tap interface. This
causes uml_switch to receive extra bytes before every frame and anything
passing through the tap interface is mangled.
The interface should be opened with the IFF_NO_PI flag: see attached
one-line patch.
I must say I really tore my hair out on this one. :-)
Regards,
Lorenzo Colitti

Thread view

Hi Jeff,
the new tun/tap support in the latest uml_switch is broken because it
doesn't set the "raw packet" flag while opening the tap interface. This
causes uml_switch to receive extra bytes before every frame and anything
passing through the tap interface is mangled.
The interface should be opened with the IFF_NO_PI flag: see attached
one-line patch.
I must say I really tore my hair out on this one. :-)
Regards,
Lorenzo Colitti