Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73260
b: refs/heads/master
c: 47a31a6
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 7, 2007
1 parent c0d42d4 commit 46cebe9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 286ab3d46058840d68e5d7d52e316c1f7e98c59f
refs/heads/master: 47a31a6ffcca3b55149bccd5b99763e5eea60ac4
3 changes: 3 additions & 0 deletions trunk/net/ipv4/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg)
}
}

DEFINE_PROTO_INUSE(raw)

struct proto raw_prot = {
.name = "RAW",
.owner = THIS_MODULE,
Expand All @@ -781,6 +783,7 @@ struct proto raw_prot = {
.compat_setsockopt = compat_raw_setsockopt,
.compat_getsockopt = compat_raw_getsockopt,
#endif
REF_PROTO_INUSE(raw)
};

#ifdef CONFIG_PROC_FS
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2417,6 +2417,8 @@ void tcp4_proc_exit(void)
}
#endif /* CONFIG_PROC_FS */

DEFINE_PROTO_INUSE(tcp)

struct proto tcp_prot = {
.name = "TCP",
.owner = THIS_MODULE,
Expand Down Expand Up @@ -2451,6 +2453,7 @@ struct proto tcp_prot = {
.compat_setsockopt = compat_tcp_setsockopt,
.compat_getsockopt = compat_tcp_getsockopt,
#endif
REF_PROTO_INUSE(tcp)
};

void __init tcp_v4_init(struct net_proto_family *ops)
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,8 @@ unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait)

}

DEFINE_PROTO_INUSE(udp)

struct proto udp_prot = {
.name = "UDP",
.owner = THIS_MODULE,
Expand All @@ -1452,6 +1454,7 @@ struct proto udp_prot = {
.compat_setsockopt = compat_udp_setsockopt,
.compat_getsockopt = compat_udp_getsockopt,
#endif
REF_PROTO_INUSE(udp)
};

/* ------------------------------------------------------------------------ */
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/ipv4/udplite.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ static struct net_protocol udplite_protocol = {
.no_policy = 1,
};

DEFINE_PROTO_INUSE(udplite)

struct proto udplite_prot = {
.name = "UDP-Lite",
.owner = THIS_MODULE,
Expand All @@ -67,6 +69,7 @@ struct proto udplite_prot = {
.compat_setsockopt = compat_udp_setsockopt,
.compat_getsockopt = compat_udp_getsockopt,
#endif
REF_PROTO_INUSE(udplite)
};

static struct inet_protosw udplite4_protosw = {
Expand Down

0 comments on commit 46cebe9

Please sign in to comment.