mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
net:gue.h:Fix shifting signed 32-bit value by 31 bits problem
Fix GUE_PFLAG_REMCSUM to use "U" cast to avoid shifting signed 32-bit value by 31 bits problem. Signed-off-by: Vandana BN <bnvandana@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
40f6a2cb9c
commit
88405680ec
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ struct guehdr {
|
|||
|
||||
/* Private flags in the private option extension */
|
||||
|
||||
#define GUE_PFLAG_REMCSUM htonl(1 << 31)
|
||||
#define GUE_PFLAG_REMCSUM htonl(1U << 31)
|
||||
#define GUE_PLEN_REMCSUM 4
|
||||
|
||||
#define GUE_PFLAGS_ALL (GUE_PFLAG_REMCSUM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue