~ubuntu-branches/ubuntu/lucid/iptables/lucid

« back to all changes in this revision

Viewing changes to extensions/libxt_sctp.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen, Iain Lane, Soren Hansen
  • Date: 2008-11-15 01:27:37 UTC
  • mfrom: (5.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115012737-o3kdn2z1o9ercq10
Tags: 1.4.1.1-4ubuntu1
[ Iain Lane ]
* Merge from debian unstable (LP: #294220), remaining changes:
  - debian/patches/0901-build-libipq_pic.a.patch - Build libipq_pic.a with
    -fPIC. Upstream changed build system and patch modified accordingly.

[ Soren Hansen ]
* Revert changes between 1.4.1.1-3 and 1.4.1.1-4, thus bringing back
  the howtos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
static void sctp_help(void)
57
57
{
58
58
        printf(
59
 
"SCTP match v%s options\n"
 
59
"sctp match options\n"
60
60
" --source-port [!] port[:port]                          match source port(s)\n"
61
61
" --sport ...\n"
62
62
" --destination-port [!] port[:port]                     match destination port(s)\n"
63
63
" --dport ...\n" 
64
64
" --chunk-types [!] (all|any|none) (chunktype[:flags])+ match if all, any or none of\n"
65
65
"                                                       chunktypes are present\n"
66
 
"chunktypes - DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK ALL NONE\n",
67
 
        IPTABLES_VERSION);
 
66
"chunktypes - DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK ALL NONE\n");
68
67
}
69
68
 
70
69
static const struct option sctp_opts[] = {
73
72
        { .name = "destination-port", .has_arg = 1, .val = '2' },
74
73
        { .name = "dport", .has_arg = 1, .val = '2' },
75
74
        { .name = "chunk-types", .has_arg = 1, .val = '3' },
76
 
        { }
 
75
        { .name = NULL }
77
76
};
78
77
 
79
78
static void
125
124
    { .name = "ECN_ECNE",       .chunk_type = 12,  .valid_flags = "--------"},
126
125
    { .name = "ECN_CWR",        .chunk_type = 13,  .valid_flags = "--------"},
127
126
    { .name = "SHUTDOWN_COMPLETE", .chunk_type = 14,  .valid_flags = "-------T"},
128
 
    { .name = "ASCONF",         .chunk_type = 31,  .valid_flags = "--------"},
129
 
    { .name = "ASCONF_ACK",     .chunk_type = 30,  .valid_flags = "--------"},
 
127
    { .name = "ASCONF",         .chunk_type = 193,  .valid_flags = "--------"},
 
128
    { .name = "ASCONF_ACK",     .chunk_type = 128,  .valid_flags = "--------"},
130
129
};
131
130
 
132
131
static void
514
513
static struct xtables_match sctp_match = {
515
514
        .name           = "sctp",
516
515
        .family         = AF_INET,
517
 
        .version        = IPTABLES_VERSION,
 
516
        .version        = XTABLES_VERSION,
518
517
        .size           = XT_ALIGN(sizeof(struct xt_sctp_info)),
519
518
        .userspacesize  = XT_ALIGN(sizeof(struct xt_sctp_info)),
520
519
        .help           = sctp_help,
528
527
static struct xtables_match sctp_match6 = {
529
528
        .name           = "sctp",
530
529
        .family         = AF_INET6,
531
 
        .version        = IPTABLES_VERSION,
 
530
        .version        = XTABLES_VERSION,
532
531
        .size           = XT_ALIGN(sizeof(struct xt_sctp_info)),
533
532
        .userspacesize  = XT_ALIGN(sizeof(struct xt_sctp_info)),
534
533
        .help           = sctp_help,