network-speed: add lanspeed generic

change implementation to a more generic version

Signed-off-by: Eik Binschek <binschek@dresearch-fe.de>