net: l2tp: ppp: change PPPOL2TP_MSG_* => L2TP_MSG_*
Signed-off-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
47c3e7783b
commit
fba40c632c
@ -231,14 +231,14 @@ static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int
|
|||||||
if (sk->sk_state & PPPOX_BOUND) {
|
if (sk->sk_state & PPPOX_BOUND) {
|
||||||
struct pppox_sock *po;
|
struct pppox_sock *po;
|
||||||
|
|
||||||
l2tp_dbg(session, PPPOL2TP_MSG_DATA,
|
l2tp_dbg(session, L2TP_MSG_DATA,
|
||||||
"%s: recv %d byte data frame, passing to ppp\n",
|
"%s: recv %d byte data frame, passing to ppp\n",
|
||||||
session->name, data_len);
|
session->name, data_len);
|
||||||
|
|
||||||
po = pppox_sk(sk);
|
po = pppox_sk(sk);
|
||||||
ppp_input(&po->chan, skb);
|
ppp_input(&po->chan, skb);
|
||||||
} else {
|
} else {
|
||||||
l2tp_dbg(session, PPPOL2TP_MSG_DATA,
|
l2tp_dbg(session, L2TP_MSG_DATA,
|
||||||
"%s: recv %d byte data frame, passing to L2TP socket\n",
|
"%s: recv %d byte data frame, passing to L2TP socket\n",
|
||||||
session->name, data_len);
|
session->name, data_len);
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
no_sock:
|
no_sock:
|
||||||
l2tp_info(session, PPPOL2TP_MSG_DATA, "%s: no socket\n", session->name);
|
l2tp_info(session, L2TP_MSG_DATA, "%s: no socket\n", session->name);
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -773,7 +773,7 @@ out_no_ppp:
|
|||||||
/* This is how we get the session context from the socket. */
|
/* This is how we get the session context from the socket. */
|
||||||
sk->sk_user_data = session;
|
sk->sk_user_data = session;
|
||||||
sk->sk_state = PPPOX_CONNECTED;
|
sk->sk_state = PPPOX_CONNECTED;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: created\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: created\n",
|
||||||
session->name);
|
session->name);
|
||||||
|
|
||||||
end:
|
end:
|
||||||
@ -827,7 +827,7 @@ static int pppol2tp_session_create(struct net *net, u32 tunnel_id, u32 session_i
|
|||||||
ps = l2tp_session_priv(session);
|
ps = l2tp_session_priv(session);
|
||||||
ps->tunnel_sock = tunnel->sock;
|
ps->tunnel_sock = tunnel->sock;
|
||||||
|
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: created\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: created\n",
|
||||||
session->name);
|
session->name);
|
||||||
|
|
||||||
error = 0;
|
error = 0;
|
||||||
@ -989,7 +989,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
struct l2tp_tunnel *tunnel = session->tunnel;
|
struct l2tp_tunnel *tunnel = session->tunnel;
|
||||||
struct pppol2tp_ioc_stats stats;
|
struct pppol2tp_ioc_stats stats;
|
||||||
|
|
||||||
l2tp_dbg(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_dbg(session, L2TP_MSG_CONTROL,
|
||||||
"%s: pppol2tp_session_ioctl(cmd=%#x, arg=%#lx)\n",
|
"%s: pppol2tp_session_ioctl(cmd=%#x, arg=%#lx)\n",
|
||||||
session->name, cmd, arg);
|
session->name, cmd, arg);
|
||||||
|
|
||||||
@ -1009,7 +1009,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
if (copy_to_user((void __user *) arg, &ifr, sizeof(struct ifreq)))
|
if (copy_to_user((void __user *) arg, &ifr, sizeof(struct ifreq)))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: get mtu=%d\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: get mtu=%d\n",
|
||||||
session->name, session->mtu);
|
session->name, session->mtu);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1025,7 +1025,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
|
|
||||||
session->mtu = ifr.ifr_mtu;
|
session->mtu = ifr.ifr_mtu;
|
||||||
|
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: set mtu=%d\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: set mtu=%d\n",
|
||||||
session->name, session->mtu);
|
session->name, session->mtu);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1039,7 +1039,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
if (put_user(session->mru, (int __user *) arg))
|
if (put_user(session->mru, (int __user *) arg))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: get mru=%d\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: get mru=%d\n",
|
||||||
session->name, session->mru);
|
session->name, session->mru);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1054,7 +1054,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
session->mru = val;
|
session->mru = val;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: set mru=%d\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: set mru=%d\n",
|
||||||
session->name, session->mru);
|
session->name, session->mru);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1064,7 +1064,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
if (put_user(ps->flags, (int __user *) arg))
|
if (put_user(ps->flags, (int __user *) arg))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: get flags=%d\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: get flags=%d\n",
|
||||||
session->name, ps->flags);
|
session->name, ps->flags);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1074,7 +1074,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
if (get_user(val, (int __user *) arg))
|
if (get_user(val, (int __user *) arg))
|
||||||
break;
|
break;
|
||||||
ps->flags = val;
|
ps->flags = val;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: set flags=%d\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: set flags=%d\n",
|
||||||
session->name, ps->flags);
|
session->name, ps->flags);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1091,7 +1091,7 @@ static int pppol2tp_session_ioctl(struct l2tp_session *session,
|
|||||||
if (copy_to_user((void __user *) arg, &stats,
|
if (copy_to_user((void __user *) arg, &stats,
|
||||||
sizeof(stats)))
|
sizeof(stats)))
|
||||||
break;
|
break;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: get L2TP stats\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: get L2TP stats\n",
|
||||||
session->name);
|
session->name);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1119,7 +1119,7 @@ static int pppol2tp_tunnel_ioctl(struct l2tp_tunnel *tunnel,
|
|||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
struct pppol2tp_ioc_stats stats;
|
struct pppol2tp_ioc_stats stats;
|
||||||
|
|
||||||
l2tp_dbg(tunnel, PPPOL2TP_MSG_CONTROL,
|
l2tp_dbg(tunnel, L2TP_MSG_CONTROL,
|
||||||
"%s: pppol2tp_tunnel_ioctl(cmd=%#x, arg=%#lx)\n",
|
"%s: pppol2tp_tunnel_ioctl(cmd=%#x, arg=%#lx)\n",
|
||||||
tunnel->name, cmd, arg);
|
tunnel->name, cmd, arg);
|
||||||
|
|
||||||
@ -1155,7 +1155,7 @@ static int pppol2tp_tunnel_ioctl(struct l2tp_tunnel *tunnel,
|
|||||||
err = -EFAULT;
|
err = -EFAULT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
l2tp_info(tunnel, PPPOL2TP_MSG_CONTROL, "%s: get L2TP stats\n",
|
l2tp_info(tunnel, L2TP_MSG_CONTROL, "%s: get L2TP stats\n",
|
||||||
tunnel->name);
|
tunnel->name);
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
@ -1245,7 +1245,7 @@ static int pppol2tp_tunnel_setsockopt(struct sock *sk,
|
|||||||
switch (optname) {
|
switch (optname) {
|
||||||
case PPPOL2TP_SO_DEBUG:
|
case PPPOL2TP_SO_DEBUG:
|
||||||
tunnel->debug = val;
|
tunnel->debug = val;
|
||||||
l2tp_info(tunnel, PPPOL2TP_MSG_CONTROL, "%s: set debug=%x\n",
|
l2tp_info(tunnel, L2TP_MSG_CONTROL, "%s: set debug=%x\n",
|
||||||
tunnel->name, tunnel->debug);
|
tunnel->name, tunnel->debug);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1273,7 +1273,7 @@ static int pppol2tp_session_setsockopt(struct sock *sk,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
session->recv_seq = !!val;
|
session->recv_seq = !!val;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: set recv_seq=%d\n",
|
"%s: set recv_seq=%d\n",
|
||||||
session->name, session->recv_seq);
|
session->name, session->recv_seq);
|
||||||
break;
|
break;
|
||||||
@ -1291,7 +1291,7 @@ static int pppol2tp_session_setsockopt(struct sock *sk,
|
|||||||
PPPOL2TP_L2TP_HDR_SIZE_NOSEQ;
|
PPPOL2TP_L2TP_HDR_SIZE_NOSEQ;
|
||||||
}
|
}
|
||||||
l2tp_session_set_header_len(session, session->tunnel->version);
|
l2tp_session_set_header_len(session, session->tunnel->version);
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: set send_seq=%d\n",
|
"%s: set send_seq=%d\n",
|
||||||
session->name, session->send_seq);
|
session->name, session->send_seq);
|
||||||
break;
|
break;
|
||||||
@ -1302,20 +1302,20 @@ static int pppol2tp_session_setsockopt(struct sock *sk,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
session->lns_mode = !!val;
|
session->lns_mode = !!val;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: set lns_mode=%d\n",
|
"%s: set lns_mode=%d\n",
|
||||||
session->name, session->lns_mode);
|
session->name, session->lns_mode);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPPOL2TP_SO_DEBUG:
|
case PPPOL2TP_SO_DEBUG:
|
||||||
session->debug = val;
|
session->debug = val;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: set debug=%x\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: set debug=%x\n",
|
||||||
session->name, session->debug);
|
session->name, session->debug);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPPOL2TP_SO_REORDERTO:
|
case PPPOL2TP_SO_REORDERTO:
|
||||||
session->reorder_timeout = msecs_to_jiffies(val);
|
session->reorder_timeout = msecs_to_jiffies(val);
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: set reorder_timeout=%d\n",
|
"%s: set reorder_timeout=%d\n",
|
||||||
session->name, session->reorder_timeout);
|
session->name, session->reorder_timeout);
|
||||||
break;
|
break;
|
||||||
@ -1396,7 +1396,7 @@ static int pppol2tp_tunnel_getsockopt(struct sock *sk,
|
|||||||
switch (optname) {
|
switch (optname) {
|
||||||
case PPPOL2TP_SO_DEBUG:
|
case PPPOL2TP_SO_DEBUG:
|
||||||
*val = tunnel->debug;
|
*val = tunnel->debug;
|
||||||
l2tp_info(tunnel, PPPOL2TP_MSG_CONTROL, "%s: get debug=%x\n",
|
l2tp_info(tunnel, L2TP_MSG_CONTROL, "%s: get debug=%x\n",
|
||||||
tunnel->name, tunnel->debug);
|
tunnel->name, tunnel->debug);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1419,31 +1419,31 @@ static int pppol2tp_session_getsockopt(struct sock *sk,
|
|||||||
switch (optname) {
|
switch (optname) {
|
||||||
case PPPOL2TP_SO_RECVSEQ:
|
case PPPOL2TP_SO_RECVSEQ:
|
||||||
*val = session->recv_seq;
|
*val = session->recv_seq;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: get recv_seq=%d\n", session->name, *val);
|
"%s: get recv_seq=%d\n", session->name, *val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPPOL2TP_SO_SENDSEQ:
|
case PPPOL2TP_SO_SENDSEQ:
|
||||||
*val = session->send_seq;
|
*val = session->send_seq;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: get send_seq=%d\n", session->name, *val);
|
"%s: get send_seq=%d\n", session->name, *val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPPOL2TP_SO_LNSMODE:
|
case PPPOL2TP_SO_LNSMODE:
|
||||||
*val = session->lns_mode;
|
*val = session->lns_mode;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: get lns_mode=%d\n", session->name, *val);
|
"%s: get lns_mode=%d\n", session->name, *val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPPOL2TP_SO_DEBUG:
|
case PPPOL2TP_SO_DEBUG:
|
||||||
*val = session->debug;
|
*val = session->debug;
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL, "%s: get debug=%d\n",
|
l2tp_info(session, L2TP_MSG_CONTROL, "%s: get debug=%d\n",
|
||||||
session->name, *val);
|
session->name, *val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPPOL2TP_SO_REORDERTO:
|
case PPPOL2TP_SO_REORDERTO:
|
||||||
*val = (int) jiffies_to_msecs(session->reorder_timeout);
|
*val = (int) jiffies_to_msecs(session->reorder_timeout);
|
||||||
l2tp_info(session, PPPOL2TP_MSG_CONTROL,
|
l2tp_info(session, L2TP_MSG_CONTROL,
|
||||||
"%s: get reorder_timeout=%d\n", session->name, *val);
|
"%s: get reorder_timeout=%d\n", session->name, *val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user