diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 23:19:14 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:50:54 -0400 |
commit | bb97d31f5130d677644d9931ef38613d1164ec94 (patch) | |
tree | 879827671531cf7b1a4aaeb8958009294e01ba04 /net/dccp | |
parent | 087fe256f0aef8d16b19a30c6fb10b899bf1a701 (diff) |
[INET]: Make inet_create try to load protocol modules
Syntax is net-pf-PROTOCOL_FAMILY-PROTOCOL-SOCK_TYPE and if this
fails net-pf-PROTOCOL_FAMILY-PROTOCOL.
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/proto.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 70284e6afe05..66c43fce17a6 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -811,8 +811,13 @@ static void __exit dccp_fini(void) | |||
811 | module_init(dccp_init); | 811 | module_init(dccp_init); |
812 | module_exit(dccp_fini); | 812 | module_exit(dccp_fini); |
813 | 813 | ||
814 | /* __stringify doesn't likes enums, so use SOCK_DCCP (6) value directly */ | 814 | /* |
815 | MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-6"); | 815 | * __stringify doesn't likes enums, so use SOCK_DCCP (6) and IPPROTO_DCCP (33) |
816 | * values directly, Also cover the case where the protocol is not specified, | ||
817 | * i.e. net-pf-PF_INET-proto-0-type-SOCK_DCCP | ||
818 | */ | ||
819 | MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-proto-33-type-6"); | ||
820 | MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-proto-0-type-6"); | ||
816 | MODULE_LICENSE("GPL"); | 821 | MODULE_LICENSE("GPL"); |
817 | MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@conectiva.com.br>"); | 822 | MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@conectiva.com.br>"); |
818 | MODULE_DESCRIPTION("DCCP - Datagram Congestion Controlled Protocol"); | 823 | MODULE_DESCRIPTION("DCCP - Datagram Congestion Controlled Protocol"); |