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 | 46409442bea479ed98ce48adf0e48da54677fa7c (patch) | |
tree | b1e72cfb56a2d476c53228e79d870ef5113e57ef /slirp.c | |
parent | 94ac81372b358bfa083e4e916690c786be31eede (diff) | |
download | slirp-46409442bea479ed98ce48adf0e48da54677fa7c.zip slirp-46409442bea479ed98ce48adf0e48da54677fa7c.tar.gz slirp-46409442bea479ed98ce48adf0e48da54677fa7c.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 'slirp.c')
-rw-r--r-- | slirp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -863,6 +863,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; } |