dev: Add a version of EtherTap which uses the tap driver.
authorGabe Black <gabeblack@google.com>
Sat, 3 Jun 2017 14:23:05 +0000 (07:23 -0700)
committerGabe Black <gabeblack@google.com>
Sat, 3 Jun 2017 15:24:02 +0000 (15:24 +0000)
commitc58537ca206f2fb3829050a4a0e342edef0bd64b
treeb0813e58558ed89290b11cf9aa4561f19e0ffddc
parent2ce045341b73166cad2ef95b37c87d8d4c590d80
dev: Add a version of EtherTap which uses the tap driver.

The object is called EtherTap (as opposed to EtherTapStub, what the former
EtherTap was renamed to), and its existance is gated on the linux/if_tun.h
header file existing. That's probably overly strict, but it will hopefully
be minimally likely to break the build for other systems.

Change-Id: Ie03507fadf0d843a4d4d52f283c44a416c6f2a74
Reviewed-on: https://gem5-review.googlesource.com/3646
Reviewed-by: Nathan Binkert <nate@binkert.org>
Maintainer: Nathan Binkert <nate@binkert.org>
SConstruct
src/dev/net/Ethernet.py
src/dev/net/ethertap.cc
src/dev/net/ethertap.hh