Skip to content
Commit 47335eee authored by Cédric Le Goater's avatar Cédric Le Goater Committed by Samuel Thibault
Browse files

slirp/ncsi: add checksum support



The checksum field of a NC-SI packet contains a value that may be
included in each command and response. The verification is optional
but the Linux driver does so when a non-zero value is provided. Let's
extend the model to compute the checksum value and exercise a little
more the Linux driver.

See section "8.2.2.3 - 2's Complement Checksum Compensation" in the
Network Controller Sideband Interface (NC-SI) Specification for more
details.

Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: default avatarJoel Stanley <joel@jms.id.au>
Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
parent b2d1678f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment