netdev
[Top] [All Lists]

[PATCH][IPV6] compile fix for net/ipv6/route.c in current bk

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH][IPV6] compile fix for net/ipv6/route.c in current bk
From: James Morris <jmorris@xxxxxxxxxxxxxxxx>
Date: Sun, 18 May 2003 12:29:53 +1000 (EST)
Cc: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>, <kuznet@xxxxxxxxxxxxx>, <netdev@xxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
This version of the ip6_null_entry initializer is needed for complation to 
succeed with gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110).


- James
-- 
James Morris
<jmorris@xxxxxxxxxxxxxxxx>

--- bk.pending/net/ipv6/route.c Sun May 18 11:51:40 2003
+++ bk.w1/net/ipv6/route.c      Sun May 18 13:26:28 2003
@@ -108,7 +108,7 @@
                        .dev            = &loopback_dev,
                        .obsolete       = -1,
                        .error          = -ENETUNREACH,
-                       .metrics[RTAX_HOPLIMIT-1] = 255,
+                       .metrics        = {[RTAX_HOPLIMIT-1] = 255},
                        .input          = ip6_pkt_discard,
                        .output         = ip6_pkt_discard,
                        .ops            = &ip6_dst_ops,


<Prev in Thread] Current Thread [Next in Thread>