* [PATCH] l2tp: Fix modalias of l2tp_ip
@ 2010-12-06 12:39 Michal Marek
2010-12-08 18:25 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Michal Marek @ 2010-12-06 12:39 UTC (permalink / raw)
To: James Chapman; +Cc: David S. Miller, netdev, linux-kernel
Using the SOCK_DGRAM enum results in
"net-pf-2-proto-SOCK_DGRAM-type-115", so use the numeric value like it
is done in net/dccp.
Signed-off-by: Michal Marek <mmarek@suse.cz>
---
net/l2tp/l2tp_ip.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/net/l2tp/l2tp_ip.c b/net/l2tp/l2tp_ip.c
index 0bf6a59..522e219 100644
--- a/net/l2tp/l2tp_ip.c
+++ b/net/l2tp/l2tp_ip.c
@@ -674,4 +674,8 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("James Chapman <jchapman@katalix.com>");
MODULE_DESCRIPTION("L2TP over IP");
MODULE_VERSION("1.0");
-MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, SOCK_DGRAM, IPPROTO_L2TP);
+
+/* Use the value of SOCK_DGRAM (2) directory, because __stringify does't like
+ * enums
+ */
+MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 2, IPPROTO_L2TP);
--
1.7.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] l2tp: Fix modalias of l2tp_ip
2010-12-06 12:39 [PATCH] l2tp: Fix modalias of l2tp_ip Michal Marek
@ 2010-12-08 18:25 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-12-08 18:25 UTC (permalink / raw)
To: mmarek; +Cc: jchapman, netdev, linux-kernel
From: Michal Marek <mmarek@suse.cz>
Date: Mon, 6 Dec 2010 13:39:12 +0100
> Using the SOCK_DGRAM enum results in
> "net-pf-2-proto-SOCK_DGRAM-type-115", so use the numeric value like it
> is done in net/dccp.
>
> Signed-off-by: Michal Marek <mmarek@suse.cz>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-08 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 12:39 [PATCH] l2tp: Fix modalias of l2tp_ip Michal Marek
2010-12-08 18:25 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).