Lines Matching refs:version
17 * it under the terms of the GNU General Public License version 2 as
337 if (tunnel->version == L2TP_HDR_VER_2)
532 if (tunnel->version == L2TP_HDR_VER_2) {
576 l2tp_session_set_header_len(session, tunnel->version);
600 l2tp_session_set_header_len(session, tunnel->version);
615 if (tunnel->version == L2TP_HDR_VER_2) {
710 u16 version;
748 /* Check protocol version */
749 version = hdrflags & L2TP_HDR_VER_MASK;
750 if (version != tunnel->version) {
752 "%s: recv protocol version mismatch: got %d expected %d\n",
753 tunnel->name, version, tunnel->version);
770 if (tunnel->version == L2TP_HDR_VER_2) {
1169 if (tunnel->version != L2TP_HDR_VER_2) {
1298 int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp)
1364 tunnel->version = version;
1470 if (tunnel->version != L2TP_HDR_VER_2) {
1515 void l2tp_session_set_header_len(struct l2tp_session *session, int version)
1517 if (version == L2TP_HDR_VER_2) {
1572 if (tunnel->version == L2TP_HDR_VER_2)
1577 l2tp_session_set_header_len(session, tunnel->version);
1595 if (tunnel->version != L2TP_HDR_VER_2) {