mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NETFILTER]: nf_nat: remove unused name from struct nf_nat_protocol
Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
ca6a507490
commit
2d2d84c40e
6 changed files with 0 additions and 8 deletions
|
@ -8,9 +8,6 @@ struct nf_nat_range;
|
||||||
|
|
||||||
struct nf_nat_protocol
|
struct nf_nat_protocol
|
||||||
{
|
{
|
||||||
/* Protocol name */
|
|
||||||
const char *name;
|
|
||||||
|
|
||||||
/* Protocol number. */
|
/* Protocol number. */
|
||||||
unsigned int protonum;
|
unsigned int protonum;
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,6 @@ gre_manip_pkt(struct sk_buff *skb, unsigned int iphdroff,
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct nf_nat_protocol gre = {
|
static const struct nf_nat_protocol gre = {
|
||||||
.name = "GRE",
|
|
||||||
.protonum = IPPROTO_GRE,
|
.protonum = IPPROTO_GRE,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
.manip_pkt = gre_manip_pkt,
|
.manip_pkt = gre_manip_pkt,
|
||||||
|
|
|
@ -72,7 +72,6 @@ icmp_manip_pkt(struct sk_buff *skb,
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct nf_nat_protocol nf_nat_protocol_icmp = {
|
const struct nf_nat_protocol nf_nat_protocol_icmp = {
|
||||||
.name = "ICMP",
|
|
||||||
.protonum = IPPROTO_ICMP,
|
.protonum = IPPROTO_ICMP,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
.manip_pkt = icmp_manip_pkt,
|
.manip_pkt = icmp_manip_pkt,
|
||||||
|
|
|
@ -81,7 +81,6 @@ tcp_manip_pkt(struct sk_buff *skb,
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct nf_nat_protocol nf_nat_protocol_tcp = {
|
const struct nf_nat_protocol nf_nat_protocol_tcp = {
|
||||||
.name = "TCP",
|
|
||||||
.protonum = IPPROTO_TCP,
|
.protonum = IPPROTO_TCP,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
.manip_pkt = tcp_manip_pkt,
|
.manip_pkt = tcp_manip_pkt,
|
||||||
|
|
|
@ -72,7 +72,6 @@ udp_manip_pkt(struct sk_buff *skb,
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct nf_nat_protocol nf_nat_protocol_udp = {
|
const struct nf_nat_protocol nf_nat_protocol_udp = {
|
||||||
.name = "UDP",
|
|
||||||
.protonum = IPPROTO_UDP,
|
.protonum = IPPROTO_UDP,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
.manip_pkt = udp_manip_pkt,
|
.manip_pkt = udp_manip_pkt,
|
||||||
|
|
|
@ -46,7 +46,6 @@ unknown_manip_pkt(struct sk_buff *skb,
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct nf_nat_protocol nf_nat_unknown_protocol = {
|
const struct nf_nat_protocol nf_nat_unknown_protocol = {
|
||||||
.name = "unknown",
|
|
||||||
/* .me isn't set: getting a ref to this cannot fail. */
|
/* .me isn't set: getting a ref to this cannot fail. */
|
||||||
.manip_pkt = unknown_manip_pkt,
|
.manip_pkt = unknown_manip_pkt,
|
||||||
.in_range = unknown_in_range,
|
.in_range = unknown_in_range,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue