diff options
author | Cédric Le Goater <clg@kaod.org> | 2017-04-14 10:35:03 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2017-04-25 19:17:25 +0800 |
commit | 47bb83cad45eb7ce194a8ffd18f73c98edb46aec (patch) | |
tree | 7d6d36f8d73b0c280d6f9aba732551efbdbad32a /include/net | |
parent | ea337c654906c053da45c461d91df76a7b84429c (diff) | |
download | qemu-47bb83cad45eb7ce194a8ffd18f73c98edb46aec.zip qemu-47bb83cad45eb7ce194a8ffd18f73c98edb46aec.tar.gz qemu-47bb83cad45eb7ce194a8ffd18f73c98edb46aec.tar.bz2 |
slirp: add a fake NC-SI backend
NC-SI (Network Controller Sideband Interface) enables a BMC to manage
a set of NICs on a system. This model takes the simplest approach and
reverses the NC-SI packets to pretend a NIC is present and exercise
the Linux driver.
The NCSI header file <ncsi-pkt.h> comes from mainline Linux and was
untabified.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/eth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/eth.h b/include/net/eth.h index afeb45b..09054a5 100644 --- a/include/net/eth.h +++ b/include/net/eth.h @@ -209,6 +209,7 @@ struct tcp_hdr { #define ETH_P_IPV6 (0x86dd) #define ETH_P_VLAN (0x8100) #define ETH_P_DVLAN (0x88a8) +#define ETH_P_NCSI (0x88f8) #define ETH_P_UNKNOWN (0xffff) #define VLAN_VID_MASK 0x0fff #define IP_HEADER_VERSION_4 (4) |