@@ -177,7 +177,7 @@ static int pppol2tp_recv_payload_hook(struct sk_buff *skb)
177
177
if (!pskb_may_pull (skb , 2 ))
178
178
return 1 ;
179
179
180
- if ((skb -> data [0 ] == PPP_ALLSTATIONS ) && (skb -> data [1 ] == PPP_UI ))
180
+ if ((skb -> data [0 ] == 0xff ) && (skb -> data [1 ] == 0x03 ))
181
181
skb_pull (skb , 2 );
182
182
183
183
return 0 ;
@@ -282,7 +282,7 @@ static void pppol2tp_session_sock_put(struct l2tp_session *session)
282
282
static int pppol2tp_sendmsg (struct socket * sock , struct msghdr * m ,
283
283
size_t total_len )
284
284
{
285
- static const unsigned char ppph [2 ] = {PPP_ALLSTATIONS , PPP_UI };
285
+ static const unsigned char ppph [2 ] = { 0xff , 0x03 };
286
286
struct sock * sk = sock -> sk ;
287
287
struct sk_buff * skb ;
288
288
int error ;
@@ -369,7 +369,7 @@ static int pppol2tp_sendmsg(struct socket *sock, struct msghdr *m,
369
369
*/
370
370
static int pppol2tp_xmit (struct ppp_channel * chan , struct sk_buff * skb )
371
371
{
372
- static const u8 ppph [2 ] = {PPP_ALLSTATIONS , PPP_UI };
372
+ static const u8 ppph [2 ] = { 0xff , 0x03 };
373
373
struct sock * sk = (struct sock * ) chan -> private ;
374
374
struct sock * sk_tun ;
375
375
struct l2tp_session * session ;
@@ -440,7 +440,7 @@ static void pppol2tp_session_close(struct l2tp_session *session)
440
440
BUG_ON (session -> magic != L2TP_SESSION_MAGIC );
441
441
442
442
if (sock ) {
443
- inet_shutdown (sock , SEND_SHUTDOWN );
443
+ inet_shutdown (sock , 2 );
444
444
/* Don't let the session go away before our socket does */
445
445
l2tp_session_inc_refcount (session );
446
446
}
0 commit comments