From: Al Viro Date: Thu, 28 Sep 2006 01:33:22 +0000 (-0700) Subject: [NET]: ip ports in struct flowi are net-endian X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cc939d37349bf82891bd1f4558284d7fafe7acb2;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [NET]: ip ports in struct flowi are net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller --- diff --git a/include/net/flow.h b/include/net/flow.h index 97569af9bda7..5700b0ad63c0 100644 --- a/include/net/flow.h +++ b/include/net/flow.h @@ -56,8 +56,8 @@ struct flowi { #define FLOWI_FLAG_MULTIPATHOLDROUTE 0x01 union { struct { - __u16 sport; - __u16 dport; + __be16 sport; + __be16 dport; } ports; struct {