~ubuntu-branches/ubuntu/precise/iptables/precise-proposed

« back to all changes in this revision

Viewing changes to extensions/libxt_statistic.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-07-14 15:59:54 UTC
  • mfrom: (5.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090714155954-9039kro8cnh6lb1q
Tags: 1.4.4-1ubuntu1
* Merge from debian unstable, remaining changes: LP: #399211
  - Don't fail to run iptables-save if iptables module isn't loaded.
  - debian/patches/0901-build-libipq_pic.a.patch - Build libipq_pic.a with
    -fPIC. Upstream changed build system and patch modified accordingly.
  - Revert changes between 1.4.1.1-3 and 1.4.1.1-4, thus bringing back
    the howtos.
  - Added linuxdoc-tools to Build-Depends
  - Modified debian/iptables{,-dev}.install to match DM syntax
    (removed debian/tmp)

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
static void
147
147
statistic_print(const void *ip, const struct xt_entry_match *match, int numeric)
148
148
{
149
 
        struct xt_statistic_info *info = (struct xt_statistic_info *)match->data;
 
149
        const struct xt_statistic_info *info = (const void *)match->data;
150
150
 
151
151
        printf("statistic ");
152
152
        print_match(info, "");
154
154
 
155
155
static void statistic_save(const void *ip, const struct xt_entry_match *match)
156
156
{
157
 
        struct xt_statistic_info *info = (struct xt_statistic_info *)match->data;
 
157
        const struct xt_statistic_info *info = (const void *)match->data;
158
158
 
159
159
        print_match(info, "--");
160
160
}
161
161
 
162
162
static struct xtables_match statistic_match = {
163
 
        .family         = AF_UNSPEC,
 
163
        .family         = NFPROTO_UNSPEC,
164
164
        .name           = "statistic",
165
165
        .version        = XTABLES_VERSION,
166
166
        .size           = XT_ALIGN(sizeof(struct xt_statistic_info)),