Home
last modified time | relevance | path

Searched refs:pw_type (Results 1 – 4 of 4) sorted by relevance

/linux/net/l2tp/
H A Dl2tp_netlink.c567 cfg.pw_type = nla_get_u16(info->attrs[L2TP_ATTR_PW_TYPE]); in l2tp_nl_cmd_session_create()
568 if (cfg.pw_type >= __L2TP_PWTYPE_MAX) { in l2tp_nl_cmd_session_create()
574 if (tunnel->version == 2 && cfg.pw_type != L2TP_PWTYPE_PPP) { in l2tp_nl_cmd_session_create()
628 if (!l2tp_nl_cmd_ops[cfg.pw_type]) { in l2tp_nl_cmd_session_create()
630 request_module("net-l2tp-type-%u", cfg.pw_type); in l2tp_nl_cmd_session_create()
634 if (!l2tp_nl_cmd_ops[cfg.pw_type] || !l2tp_nl_cmd_ops[cfg.pw_type]->session_create) { in l2tp_nl_cmd_session_create()
639 ret = l2tp_nl_cmd_ops[cfg.pw_type]->session_create(net, tunnel, in l2tp_nl_cmd_session_create()
664 u16 pw_type; in l2tp_nl_cmd_session_delete() local
675 pw_type = session->pwtype; in l2tp_nl_cmd_session_delete()
676 if (pw_type < __L2TP_PWTYPE_MAX) in l2tp_nl_cmd_session_delete()
[all …]
H A Dl2tp_core.h40 enum l2tp_pwtype pw_type; member
268 int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops);
269 void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type);
H A Dl2tp_ppp.c763 cfg.pw_type = L2TP_PWTYPE_PPP; in pppol2tp_connect()
H A Dl2tp_core.c1807 session->pwtype = cfg->pw_type; in l2tp_session_create()