Skip to content

Commit

Permalink
l2tp: Fix modalias of l2tp_ip
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
michal42 authored and davem330 committed Dec 8, 2010
1 parent 0c62fc6 commit e8d34a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion net/l2tp/l2tp_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,4 +674,8 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("James Chapman <[email protected]>");
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);

0 comments on commit e8d34a8

Please sign in to comment.