]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/netfilter/x_tables.h
netfilter: x_tables: check for bogus target offset
[karo-tx-linux.git] / include / linux / netfilter / x_tables.h
index e3a3d0594742210626992d95968195f2a1552551..41b38534293cecf43e8a67c26200e55d0dbc678e 100644 (file)
@@ -239,7 +239,7 @@ void xt_unregister_match(struct xt_match *target);
 int xt_register_matches(struct xt_match *match, unsigned int n);
 void xt_unregister_matches(struct xt_match *match, unsigned int n);
 
-int xt_check_entry_offsets(const void *base,
+int xt_check_entry_offsets(const void *base, const char *elems,
                           unsigned int target_offset,
                           unsigned int next_offset);
 
@@ -492,7 +492,7 @@ void xt_compat_target_from_user(struct xt_entry_target *t, void **dstptr,
                                unsigned int *size);
 int xt_compat_target_to_user(const struct xt_entry_target *t,
                             void __user **dstptr, unsigned int *size);
-int xt_compat_check_entry_offsets(const void *base,
+int xt_compat_check_entry_offsets(const void *base, const char *elems,
                                  unsigned int target_offset,
                                  unsigned int next_offset);