--- zzzz-none-000/linux-4.4.60/net/ipv4/af_inet.c 2017-04-08 07:53:53.000000000 +0000 +++ hawkeye-5590-729/linux-4.4.60/net/ipv4/af_inet.c 2022-03-30 14:21:53.000000000 +0000 @@ -121,7 +121,6 @@ #endif #include - /* The inetsw table contains everything that inet_create needs to * build a new socket. */ @@ -1321,8 +1320,8 @@ if (unlikely(ip_fast_csum((u8 *)iph, 5))) goto out_unlock; - id = ntohl(*(__be32 *)&iph->id); - flush = (u16)((ntohl(*(__be32 *)iph) ^ skb_gro_len(skb)) | (id & ~IP_DF)); + id = ntohl(net_hdr_word(&iph->id)); + flush = (u16)((ntohl(net_hdr_word(iph)) ^ skb_gro_len(skb)) | (id & ~IP_DF)); id >>= 16; for (p = *head; p; p = p->next) { @@ -1767,6 +1766,8 @@ ip_init(); + ip_input_init(); + tcp_v4_init(); /* Setup TCP slab cache for open requests. */