~ubuntu-branches/ubuntu/karmic/iptables/karmic

« back to all changes in this revision

Viewing changes to extensions/libxt_connbytes.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-07-14 15:59:54 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20090714155954-fu29byrib4zshbaa
Tags: upstream-1.4.4
ImportĀ upstreamĀ versionĀ 1.4.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
                           "`--connbytes-dir' and `--connbytes-mode'");
103
103
}
104
104
 
105
 
static void print_mode(struct xt_connbytes_info *sinfo)
 
105
static void print_mode(const struct xt_connbytes_info *sinfo)
106
106
{
107
107
        switch (sinfo->what) {
108
108
                case XT_CONNBYTES_PKTS:
120
120
        }
121
121
}
122
122
 
123
 
static void print_direction(struct xt_connbytes_info *sinfo)
 
123
static void print_direction(const struct xt_connbytes_info *sinfo)
124
124
{
125
125
        switch (sinfo->direction) {
126
126
                case XT_CONNBYTES_DIR_ORIGINAL:
141
141
static void
142
142
connbytes_print(const void *ip, const struct xt_entry_match *match, int numeric)
143
143
{
144
 
        struct xt_connbytes_info *sinfo = (struct xt_connbytes_info *)match->data;
 
144
        const struct xt_connbytes_info *sinfo = (const void *)match->data;
145
145
 
146
146
        if (sinfo->count.from > sinfo->count.to) 
147
147
                printf("connbytes ! %llu:%llu ",
161
161
 
162
162
static void connbytes_save(const void *ip, const struct xt_entry_match *match)
163
163
{
164
 
        struct xt_connbytes_info *sinfo = (struct xt_connbytes_info *)match->data;
 
164
        const struct xt_connbytes_info *sinfo = (const void *)match->data;
165
165
 
166
166
        if (sinfo->count.from > sinfo->count.to) 
167
167
                printf("! --connbytes %llu:%llu ",