Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1624967
| From | Gavin Shan <gwshan@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] net/ncsi: fix checksum validation in response packet |
| Date | 2017-04-18 02:10 +0200 |
| Message-ID | <txoSu-7uv-3@gated-at.bofh.it> (permalink) |
| References | <tw9LP-1Gq-11@gated-at.bofh.it> <txiN3-3w9-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Apr 17, 2017 at 01:36:19PM -0400, David Miller wrote: >From: Cédric Le Goater <clg@kaod.org> >Date: Fri, 14 Apr 2017 10:56:37 +0200 > >> htonl was used instead of ntohl. Surely a typo. >> >> Signed-off-by: Cédric Le Goater <clg@kaod.org> > >I don't think so, "checksum" is of type "u32" thus is in host byte >order. Therefore "htonl()" is correct. > Yeah, "htonl()" is correct here. "*pchecksum" is in big-endian. I want to know how Cédric thinks it's a problem. I guess he might encounter the issue on the emulated NCSI channel by QEMU. On BCM5718 or BCM5719, the checksum in AEN and response packet are zero'd, meaning the software shouldn't validate it at all. Thanks, Gavin
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] net/ncsi: fix checksum validation in response packet Cédric Le Goater <clg@kaod.org> - 2017-04-14 15:50 +0200
Re: [PATCH] net/ncsi: fix checksum validation in response packet David Miller <davem@davemloft.net> - 2017-04-17 19:40 +0200
Re: [PATCH] net/ncsi: fix checksum validation in response packet Gavin Shan <gwshan@linux.vnet.ibm.com> - 2017-04-18 02:10 +0200
Re: [PATCH] net/ncsi: fix checksum validation in response packet Cédric Le Goater <clg@kaod.org> - 2017-04-18 12:00 +0200
csiph-web