adapted ethernet sample