From 47bb83cad45eb7ce194a8ffd18f73c98edb46aec Mon Sep 17 00:00:00 2001 From: Cédric Le Goater Date: Fri, 14 Apr 2017 10:35:03 +0200 Subject: 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 comes from mainline Linux and was untabified. Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Acked-by: Samuel Thibault Signed-off-by: Jason Wang --- slirp/slirp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'slirp/slirp.c') diff --git a/slirp/slirp.c b/slirp/slirp.c index 5a94b06f5e..9a50918346 100644 --- a/slirp/slirp.c +++ b/slirp/slirp.c @@ -870,6 +870,10 @@ void slirp_input(Slirp *slirp, const uint8_t *pkt, int pkt_len) } break; + case ETH_P_NCSI: + ncsi_input(slirp, pkt, pkt_len); + break; + default: break; } -- cgit v1.2.3-55-g7522