Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d2d84c4 authored by Patrick McHardy's avatar Patrick McHardy
Browse files

[NETFILTER]: nf_nat: remove unused name from struct nf_nat_protocol



Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent ca6a5074
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -8,9 +8,6 @@ struct nf_nat_range;

struct nf_nat_protocol
{
	/* Protocol name */
	const char *name;

	/* Protocol number. */
	unsigned int protonum;

+0 −1
Original line number Diff line number Diff line
@@ -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,
+0 −1
Original line number Diff line number Diff line
@@ -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,
+0 −1
Original line number Diff line number Diff line
@@ -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,
+0 −1
Original line number Diff line number Diff line
@@ -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,
Loading