]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/checksum.c
migration: Use VMSTATE_INSTANCE_ID_ANY for slirp
[mirror_qemu.git] / net / checksum.c
index 68245fd74841b52b7eeb03e77178fe5a4279a7bd..1a957e4c0b10364a04e7ab955c7684a451b18af1 100644 (file)
@@ -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;
     }