aboutsummaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/l2tp/l2tp_debugfs.c')
-rw-r--r--net/l2tp/l2tp_debugfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/l2tp/l2tp_debugfs.c b/net/l2tp/l2tp_debugfs.c
index 072d7202e182..2d6760a2ae34 100644
--- a/net/l2tp/l2tp_debugfs.c
+++ b/net/l2tp/l2tp_debugfs.c
@@ -127,9 +127,10 @@ static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v)
127 127
128#if IS_ENABLED(CONFIG_IPV6) 128#if IS_ENABLED(CONFIG_IPV6)
129 if (tunnel->sock->sk_family == AF_INET6) { 129 if (tunnel->sock->sk_family == AF_INET6) {
130 struct ipv6_pinfo *np = inet6_sk(tunnel->sock); 130 const struct ipv6_pinfo *np = inet6_sk(tunnel->sock);
131
131 seq_printf(m, " from %pI6c to %pI6c\n", 132 seq_printf(m, " from %pI6c to %pI6c\n",
132 &np->saddr, &np->daddr); 133 &np->saddr, &tunnel->sock->sk_v6_daddr);
133 } else 134 } else
134#endif 135#endif
135 seq_printf(m, " from %pI4 to %pI4\n", 136 seq_printf(m, " from %pI4 to %pI4\n",