Lines Matching defs:version
17 * it under the terms of the GNU General Public License version 2 as
675 if (tunnel->version == L2TP_HDR_VER_2) {
719 l2tp_session_set_header_len(session, tunnel->version);
743 l2tp_session_set_header_len(session, tunnel->version);
758 if (tunnel->version == L2TP_HDR_VER_2) {
850 u16 version;
882 /* Check protocol version */
883 version = hdrflags & L2TP_HDR_VER_MASK;
884 if (version != tunnel->version) {
886 "%s: recv protocol version mismatch: got %d expected %d\n",
887 tunnel->name, version, tunnel->version);
905 if (tunnel->version == L2TP_HDR_VER_2) {
1474 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)
1548 tunnel->version = version;
1685 if (tunnel->version != L2TP_HDR_VER_2) {
1717 void l2tp_session_set_header_len(struct l2tp_session *session, int version)
1719 if (version == L2TP_HDR_VER_2) {
1744 if (tunnel->version == L2TP_HDR_VER_2)
1783 if (tunnel->version == L2TP_HDR_VER_2)
1788 l2tp_session_set_header_len(session, tunnel->version);
1806 if (tunnel->version != L2TP_HDR_VER_2) {