lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 16 Jul 2008 20:46:15 -0700 (PDT)
From:	David Miller <>
Subject: Re: [Resend PATCH 2/3] TCP: options clean up

From: "Adam Langley" <>
Date: Tue, 15 Jul 2008 09:30:40 -0700

> +struct tcp_out_options {
> +	unsigned options;		/* bit field of OPTION_* */
> +	unsigned mss;			/* 0 to disable */
> +	unsigned ws;			/* window scale, 0 to disable */
> +	__u32 tsval, tsecr;		/* need to include OPTION_TS */
> +	unsigned num_sack_blocks;	/* number of SACK blocks to include */
> +};

Please specify the type fully, f.e. 'unsigned int', but most of
the time fixed sized types are more appriate, and that is the case

'mss' is a "u16"

You only have a tiny number of option bits, a 'u8' would suffice.
Window scale has a very small possible value range as well, it
also would fit in a 'u8'.

Those changes should make this structure 8 bytes.
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists