Skip to content

Commit

Permalink
[NETFILTER]: nf_conntrack: remove unused struct list_head from protocols
Browse files Browse the repository at this point in the history
Remove unused struct list_head from struct nf_conntrack_l3proto and
nf_conntrack_l4proto as all protocols are kept in arrays, not linked
lists.

Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se>
Signed-off-by: Patrick McHardy <kaber@trash.net>
  • Loading branch information
Martin Josefsson authored and David S. Miller committed Dec 3, 2006
1 parent 3ffd5ee commit 824621e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions include/net/netfilter/nf_conntrack_l3proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ struct nfattr;

struct nf_conntrack_l3proto
{
/* Next pointer. */
struct list_head list;

/* L3 Protocol Family number. ex) PF_INET */
u_int16_t l3proto;

Expand Down
3 changes: 0 additions & 3 deletions include/net/netfilter/nf_conntrack_l4proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ struct nfattr;

struct nf_conntrack_l4proto
{
/* Next pointer. */
struct list_head list;

/* L3 Protocol number. */
u_int16_t l3proto;

Expand Down
1 change: 0 additions & 1 deletion net/ipv4/netfilter/nf_conntrack_proto_icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ static int icmp_nfattr_to_tuple(struct nfattr *tb[],

struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp =
{
.list = { NULL, NULL },
.l3proto = PF_INET,
.l4proto = IPPROTO_ICMP,
.name = "icmp",
Expand Down

0 comments on commit 824621e

Please sign in to comment.