Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9981a0e3 authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

[NET]: Annotate checksums in on-the-wire packets.

parent 56649d5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ struct dccp_hdr {
#else
#error  "Adjust your <asm/byteorder.h> defines"
#endif
	__u16	dccph_checksum;
	__sum16	dccph_checksum;
#if defined(__LITTLE_ENDIAN_BITFIELD)
	__u8	dccph_x:1,
		dccph_type:4,
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@
struct icmphdr {
  __u8		type;
  __u8		code;
  __be16	checksum;
  __sum16	checksum;
  union {
	struct {
		__be16	id;
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ struct icmp6hdr {

	__u8		icmp6_type;
	__u8		icmp6_code;
	__be16		icmp6_cksum;
	__sum16		icmp6_cksum;


	union {
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ struct igmphdr
{
	__u8 type;
	__u8 code;		/* For newer IGMP */
	__be16 csum;
	__sum16 csum;
	__be32 group;
};

+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ struct iphdr {
	__be16	frag_off;
	__u8	ttl;
	__u8	protocol;
	__be16	check;
	__sum16	check;
	__be32	saddr;
	__be32	daddr;
	/*The options start here. */
Loading