From: Herbert Xu <[EMAIL PROTECTED]>
Date: Sat, 2 Jun 2007 20:02:52 +1000

> @@ -64,20 +64,26 @@
>  #include <net/rtnetlink.h>
>  
>  struct ipv4_devconf ipv4_devconf = {
> -     .accept_redirects = 1,
> -     .send_redirects =  1,
> -     .secure_redirects = 1,
> -     .shared_media =   1,
> +     .data = {
> +             [NET_IPV4_CONF_ACCEPT_REDIRECTS] = 1,
> +             [NET_IPV4_CONF_SEND_REDIRECTS] = 1,
> +             [NET_IPV4_CONF_SECURE_REDIRECTS] = 1,
> +             [NET_IPV4_CONF_SHARED_MEDIA] = 1,
> +     },
>  };

These array indexes are off by one.

This is the danger in using this "x-1" indexing style.
Such a mistake is way too easy to make.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to