aboutsummaryrefslogtreecommitdiff
path: root/net/checksum.c
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2023-07-14 14:33:49 +0300
committerMichael Tokarev <mjt@tls.msk.ru>2023-09-08 13:08:52 +0300
commit0a19d8799557f4644cbad76a6e496946166892b2 (patch)
tree9685167c2776ca291ee03a257af700f81e15df46 /net/checksum.c
parent01dc06511d679263505fadd84fd55f4955c6902b (diff)
downloadqemu-0a19d8799557f4644cbad76a6e496946166892b2.zip
qemu-0a19d8799557f4644cbad76a6e496946166892b2.tar.gz
qemu-0a19d8799557f4644cbad76a6e496946166892b2.tar.bz2
misc/other: spelling fixes
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'net/checksum.c')
-rw-r--r--net/checksum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/checksum.c b/net/checksum.c
index 68245fd..1a957e4 100644
--- a/net/checksum.c
+++ b/net/checksum.c
@@ -74,7 +74,7 @@ void net_checksum_calculate(uint8_t *data, int length, int csum_flag)
return;
}
- /* Handle the optionnal VLAN headers */
+ /* Handle the optional VLAN headers */
switch (lduw_be_p(&PKT_GET_ETH_HDR(data)->h_proto)) {
case ETH_P_VLAN:
mac_hdr_len = sizeof(struct eth_header) +
@@ -96,7 +96,7 @@ void net_checksum_calculate(uint8_t *data, int length, int csum_flag)
length -= mac_hdr_len;
- /* Now check we have an IP header (with an optionnal VLAN header) */
+ /* Now check we have an IP header (with an optional VLAN header) */
if (length < sizeof(struct ip_header)) {
return;
}