aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/esp6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r--net/ipv6/esp6.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
index 1ac7938dd9ec..6697eb0fba55 100644
--- a/net/ipv6/esp6.c
+++ b/net/ipv6/esp6.c
@@ -24,6 +24,8 @@
24 * This file is derived from net/ipv4/esp.c 24 * This file is derived from net/ipv4/esp.c
25 */ 25 */
26 26
27#define pr_fmt(fmt) "IPv6: " fmt
28
27#include <crypto/aead.h> 29#include <crypto/aead.h>
28#include <crypto/authenc.h> 30#include <crypto/authenc.h>
29#include <linux/err.h> 31#include <linux/err.h>
@@ -651,11 +653,11 @@ static const struct inet6_protocol esp6_protocol = {
651static int __init esp6_init(void) 653static int __init esp6_init(void)
652{ 654{
653 if (xfrm_register_type(&esp6_type, AF_INET6) < 0) { 655 if (xfrm_register_type(&esp6_type, AF_INET6) < 0) {
654 printk(KERN_INFO "ipv6 esp init: can't add xfrm type\n"); 656 pr_info("%s: can't add xfrm type\n", __func__);
655 return -EAGAIN; 657 return -EAGAIN;
656 } 658 }
657 if (inet6_add_protocol(&esp6_protocol, IPPROTO_ESP) < 0) { 659 if (inet6_add_protocol(&esp6_protocol, IPPROTO_ESP) < 0) {
658 printk(KERN_INFO "ipv6 esp init: can't add protocol\n"); 660 pr_info("%s: can't add protocol\n", __func__);
659 xfrm_unregister_type(&esp6_type, AF_INET6); 661 xfrm_unregister_type(&esp6_type, AF_INET6);
660 return -EAGAIN; 662 return -EAGAIN;
661 } 663 }
@@ -666,9 +668,9 @@ static int __init esp6_init(void)
666static void __exit esp6_fini(void) 668static void __exit esp6_fini(void)
667{ 669{
668 if (inet6_del_protocol(&esp6_protocol, IPPROTO_ESP) < 0) 670 if (inet6_del_protocol(&esp6_protocol, IPPROTO_ESP) < 0)
669 printk(KERN_INFO "ipv6 esp close: can't remove protocol\n"); 671 pr_info("%s: can't remove protocol\n", __func__);
670 if (xfrm_unregister_type(&esp6_type, AF_INET6) < 0) 672 if (xfrm_unregister_type(&esp6_type, AF_INET6) < 0)
671 printk(KERN_INFO "ipv6 esp close: can't remove xfrm type\n"); 673 pr_info("%s: can't remove xfrm type\n", __func__);
672} 674}
673 675
674module_init(esp6_init); 676module_init(esp6_init);