diff options
Diffstat (limited to 'net/l2tp')
-rw-r--r-- | net/l2tp/l2tp_ppp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c index baac072761a..3ad290dd830 100644 --- a/net/l2tp/l2tp_ppp.c +++ b/net/l2tp/l2tp_ppp.c | |||
@@ -1465,6 +1465,7 @@ static void pppol2tp_seq_session_show(struct seq_file *m, void *v) | |||
1465 | struct l2tp_session *session = v; | 1465 | struct l2tp_session *session = v; |
1466 | struct l2tp_tunnel *tunnel = session->tunnel; | 1466 | struct l2tp_tunnel *tunnel = session->tunnel; |
1467 | struct pppol2tp_session *ps = l2tp_session_priv(session); | 1467 | struct pppol2tp_session *ps = l2tp_session_priv(session); |
1468 | struct pppox_sock *po = pppox_sk(ps->sock); | ||
1468 | u32 ip = 0; | 1469 | u32 ip = 0; |
1469 | u16 port = 0; | 1470 | u16 port = 0; |
1470 | 1471 | ||
@@ -1499,6 +1500,9 @@ static void pppol2tp_seq_session_show(struct seq_file *m, void *v) | |||
1499 | (unsigned long long)session->stats.rx_packets, | 1500 | (unsigned long long)session->stats.rx_packets, |
1500 | (unsigned long long)session->stats.rx_bytes, | 1501 | (unsigned long long)session->stats.rx_bytes, |
1501 | (unsigned long long)session->stats.rx_errors); | 1502 | (unsigned long long)session->stats.rx_errors); |
1503 | |||
1504 | if (po) | ||
1505 | seq_printf(m, " interface %s\n", ppp_dev_name(&po->chan)); | ||
1502 | } | 1506 | } |
1503 | 1507 | ||
1504 | static int pppol2tp_seq_show(struct seq_file *m, void *v) | 1508 | static int pppol2tp_seq_show(struct seq_file *m, void *v) |