[NETFILTER]: nf_nat: remove unused name from struct nf_nat_protocol
authorPatrick McHardy <kaber@trash.net>
Thu, 20 Mar 2008 14:15:49 +0000 (15:15 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 14 Apr 2008 09:15:48 +0000 (11:15 +0200)
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netfilter/nf_nat_protocol.h
net/ipv4/netfilter/nf_nat_proto_gre.c
net/ipv4/netfilter/nf_nat_proto_icmp.c
net/ipv4/netfilter/nf_nat_proto_tcp.c
net/ipv4/netfilter/nf_nat_proto_udp.c
net/ipv4/netfilter/nf_nat_proto_unknown.c

index 8ce227624eacf2839568d59c0e22461ec5526c6c..fba94a2028d5e34117539ba083df036f8ba56aa4 100644 (file)
@@ -8,9 +8,6 @@ struct nf_nat_range;
 
 struct nf_nat_protocol
 {
-       /* Protocol name */
-       const char *name;
-
        /* Protocol number. */
        unsigned int protonum;
 
index 71b0935ee1c83ae824088b4cb441c79bc45b145d..84bb7854137ae76d82fde26cdb47d05333764b01 100644 (file)
@@ -118,7 +118,6 @@ gre_manip_pkt(struct sk_buff *skb, unsigned int iphdroff,
 }
 
 static const struct nf_nat_protocol gre = {
-       .name                   = "GRE",
        .protonum               = IPPROTO_GRE,
        .me                     = THIS_MODULE,
        .manip_pkt              = gre_manip_pkt,
index ca601f84c4dc757f4bbebe14777ca251c7b02513..ab3a0ec2a2d188ce7be5bb62968f95a285524423 100644 (file)
@@ -72,7 +72,6 @@ icmp_manip_pkt(struct sk_buff *skb,
 }
 
 const struct nf_nat_protocol nf_nat_protocol_icmp = {
-       .name                   = "ICMP",
        .protonum               = IPPROTO_ICMP,
        .me                     = THIS_MODULE,
        .manip_pkt              = icmp_manip_pkt,
index 1d73a11f55d9804fd84b217aabb2e24fed3f73a1..5d4c8a0e89c0a061406faf0e739fcb4b683e2c6e 100644 (file)
@@ -81,7 +81,6 @@ tcp_manip_pkt(struct sk_buff *skb,
 }
 
 const struct nf_nat_protocol nf_nat_protocol_tcp = {
-       .name                   = "TCP",
        .protonum               = IPPROTO_TCP,
        .me                     = THIS_MODULE,
        .manip_pkt              = tcp_manip_pkt,
index f36ce552a1613909d504d605505525b500f45e9a..74a7e7b634650ef4b3dc5e630188a11e3e6f3da1 100644 (file)
@@ -72,7 +72,6 @@ udp_manip_pkt(struct sk_buff *skb,
 }
 
 const struct nf_nat_protocol nf_nat_protocol_udp = {
-       .name                   = "UDP",
        .protonum               = IPPROTO_UDP,
        .me                     = THIS_MODULE,
        .manip_pkt              = udp_manip_pkt,
index a26efeb073cb927ac86f9a469a40763662398e7c..cda21ff0e4cfff7c094a9c18836dd21dabc48875 100644 (file)
@@ -46,7 +46,6 @@ unknown_manip_pkt(struct sk_buff *skb,
 }
 
 const struct nf_nat_protocol nf_nat_unknown_protocol = {
-       .name                   = "unknown",
        /* .me isn't set: getting a ref to this cannot fail. */
        .manip_pkt              = unknown_manip_pkt,
        .in_range               = unknown_in_range,