Skip to content

Commit

Permalink
[NETFILTER]: More trivial annotations.
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent ef296f5 commit 42d224a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/linux/netfilter_ipv4/ip_conntrack_tftp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define TFTP_PORT 69

struct tftphdr {
u_int16_t opcode;
__be16 opcode;
};

#define TFTP_OPCODE_READ 1
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/netfilter/ip_conntrack_amanda.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static struct ip_conntrack_helper amanda_helper = {
.help = help,
.name = "amanda",

.tuple = { .src = { .u = { __constant_htons(10080) } },
.tuple = { .src = { .u = { .udp = {.port = __constant_htons(10080) } } },
.dst = { .protonum = IPPROTO_UDP },
},
.mask = { .src = { .u = { 0xFFFF } },
Expand Down
4 changes: 2 additions & 2 deletions net/ipv4/netfilter/ip_conntrack_helper_h323.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ static struct ip_conntrack_helper ip_conntrack_helper_q931 = {
.me = THIS_MODULE,
.max_expected = H323_RTP_CHANNEL_MAX * 4 + 4 /* T.120 and H.245 */ ,
.timeout = 240,
.tuple = {.src = {.u = {__constant_htons(Q931_PORT)}},
.tuple = {.src = {.u = {.tcp = {.port = __constant_htons(Q931_PORT)}}},
.dst = {.protonum = IPPROTO_TCP}},
.mask = {.src = {.u = {0xFFFF}},
.dst = {.protonum = 0xFF}},
Expand Down Expand Up @@ -1746,7 +1746,7 @@ static struct ip_conntrack_helper ip_conntrack_helper_ras = {
.me = THIS_MODULE,
.max_expected = 32,
.timeout = 240,
.tuple = {.src = {.u = {__constant_htons(RAS_PORT)}},
.tuple = {.src = {.u = {.tcp = {.port = __constant_htons(RAS_PORT)}}},
.dst = {.protonum = IPPROTO_UDP}},
.mask = {.src = {.u = {0xFFFE}},
.dst = {.protonum = 0xFF}},
Expand Down

0 comments on commit 42d224a

Please sign in to comment.