Lines Matching refs:cfg
1362 struct l2tp_tunnel_cfg *cfg, in l2tp_tunnel_sock_create() argument
1369 switch (cfg->encap) { in l2tp_tunnel_sock_create()
1374 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1376 memcpy(&udp_conf.local_ip6, cfg->local_ip6, in l2tp_tunnel_sock_create()
1378 memcpy(&udp_conf.peer_ip6, cfg->peer_ip6, in l2tp_tunnel_sock_create()
1381 cfg->udp6_zero_tx_checksums; in l2tp_tunnel_sock_create()
1383 cfg->udp6_zero_rx_checksums; in l2tp_tunnel_sock_create()
1388 udp_conf.local_ip = cfg->local_ip; in l2tp_tunnel_sock_create()
1389 udp_conf.peer_ip = cfg->peer_ip; in l2tp_tunnel_sock_create()
1390 udp_conf.use_udp_checksums = cfg->use_udp_checksums; in l2tp_tunnel_sock_create()
1393 udp_conf.local_udp_port = htons(cfg->local_udp_port); in l2tp_tunnel_sock_create()
1394 udp_conf.peer_udp_port = htons(cfg->peer_udp_port); in l2tp_tunnel_sock_create()
1404 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1415 memcpy(&ip6_addr.l2tp_addr, cfg->local_ip6, in l2tp_tunnel_sock_create()
1424 memcpy(&ip6_addr.l2tp_addr, cfg->peer_ip6, in l2tp_tunnel_sock_create()
1445 ip_addr.l2tp_addr = cfg->local_ip; in l2tp_tunnel_sock_create()
1453 ip_addr.l2tp_addr = cfg->peer_ip; in l2tp_tunnel_sock_create()
1479 …d, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel… in l2tp_tunnel_create() argument
1494 cfg, &sock); in l2tp_tunnel_create()
1516 if (cfg != NULL) in l2tp_tunnel_create()
1517 encap = cfg->encap; in l2tp_tunnel_create()
1566 if (cfg != NULL) in l2tp_tunnel_create()
1567 tunnel->debug = cfg->debug; in l2tp_tunnel_create()
1739 …ize, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) in l2tp_session_create() argument
1772 if (cfg) { in l2tp_session_create()
1773 session->pwtype = cfg->pw_type; in l2tp_session_create()
1774 session->debug = cfg->debug; in l2tp_session_create()
1775 session->mtu = cfg->mtu; in l2tp_session_create()
1776 session->mru = cfg->mru; in l2tp_session_create()
1777 session->send_seq = cfg->send_seq; in l2tp_session_create()
1778 session->recv_seq = cfg->recv_seq; in l2tp_session_create()
1779 session->lns_mode = cfg->lns_mode; in l2tp_session_create()
1780 session->reorder_timeout = cfg->reorder_timeout; in l2tp_session_create()
1781 session->offset = cfg->offset; in l2tp_session_create()
1782 session->l2specific_type = cfg->l2specific_type; in l2tp_session_create()
1783 session->l2specific_len = cfg->l2specific_len; in l2tp_session_create()
1784 session->cookie_len = cfg->cookie_len; in l2tp_session_create()
1785 memcpy(&session->cookie[0], &cfg->cookie[0], cfg->cookie_len); in l2tp_session_create()
1786 session->peer_cookie_len = cfg->peer_cookie_len; in l2tp_session_create()
1787 memcpy(&session->peer_cookie[0], &cfg->peer_cookie[0], cfg->peer_cookie_len); in l2tp_session_create()