Skip to content

Commit

Permalink
[NETFILTER]: ip_conntrack_netbios_ns.c gcc-2.95.x build fix
Browse files Browse the repository at this point in the history
gcc-2.95.x can't do this sort of initialisation

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andrew Morton authored and David S. Miller committed Sep 8, 2005
1 parent ce723d8 commit 3a93481
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions net/ipv4/netfilter/ip_conntrack_netbios_ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,28 @@ static int help(struct sk_buff **pskb,
static struct ip_conntrack_helper helper = {
.name = "netbios-ns",
.tuple = {
.src.u.udp.port = __constant_htons(137),
.dst.protonum = IPPROTO_UDP,
.src = {
.u = {
.udp = {
.port = __constant_htons(137),
}
}
},
.dst = {
.protonum = IPPROTO_UDP,
},
},
.mask = {
.src.u.udp.port = 0xFFFF,
.dst.protonum = 0xFF,
.src = {
.u = {
.udp = {
.port = 0xFFFF,
}
}
},
.dst = {
.protonum = 0xFF,
},
},
.max_expected = 1,
.me = THIS_MODULE,
Expand Down

0 comments on commit 3a93481

Please sign in to comment.