X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=net%2Fipv6%2Fnetfilter%2Fip6_tables.c;h=d2ce00d81d4c5d21864d4a7905b456a8c3cf582c;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=223212888321ba63ecfe5e80198cb44b88b7abf4;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 223212888..d2ce00d81 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -1845,6 +1845,15 @@ static inline int print_name(const char *i, return 0; } +static inline int print_target(const struct ip6t_target *t, + off_t start_offset, char *buffer, int length, + off_t *pos, unsigned int *count) +{ + if (t == &ip6t_standard_target || t == &ip6t_error_target) + return 0; + return print_name((char *)t, start_offset, buffer, length, pos, count); +} + static int ip6t_get_tables(char *buffer, char **start, off_t offset, int length) { off_t pos = 0; @@ -1871,7 +1880,7 @@ static int ip6t_get_targets(char *buffer, char **start, off_t offset, int length if (down_interruptible(&ip6t_mutex) != 0) return 0; - LIST_FIND(&ip6t_target, print_name, char *, + LIST_FIND(&ip6t_target, print_target, struct ip6t_target *, offset, buffer, length, &pos, &count); up(&ip6t_mutex);