l2tp: fix manual sequencing (de)activation in L2TPv2
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / l2tp / l2tp_ppp.c
index be5fadf..6bfeaa7 100644 (file)
@@ -1312,6 +1312,7 @@ static int pppol2tp_session_setsockopt(struct sock *sk,
                        po->chan.hdrlen = val ? PPPOL2TP_L2TP_HDR_SIZE_SEQ :
                                PPPOL2TP_L2TP_HDR_SIZE_NOSEQ;
                }
+               l2tp_session_set_header_len(session, session->tunnel->version);
                l2tp_info(session, PPPOL2TP_MSG_CONTROL,
                          "%s: set send_seq=%d\n",
                          session->name, session->send_seq);