mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
087fe256f0
commit
bb97d31f51
3 changed files with 36 additions and 6 deletions
|
|
@ -1242,6 +1242,10 @@ SCTP_STATIC __exit void sctp_exit(void)
|
|||
module_init(sctp_init);
|
||||
module_exit(sctp_exit);
|
||||
|
||||
/*
|
||||
* __stringify doesn't likes enums, so use IPPROTO_SCTP value (132) directly.
|
||||
*/
|
||||
MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-proto-132");
|
||||
MODULE_AUTHOR("Linux Kernel SCTP developers <[email protected]>");
|
||||
MODULE_DESCRIPTION("Support for the SCTP protocol (RFC2960)");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
|
|||
Loading…
Reference in a new issue