• Home
  • Raw
  • Download

Lines Matching refs:cfg

1279 				   struct l2tp_tunnel_cfg *cfg,  in l2tp_tunnel_sock_create()  argument
1286 switch (cfg->encap) { in l2tp_tunnel_sock_create()
1291 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1293 memcpy(&udp_conf.local_ip6, cfg->local_ip6, in l2tp_tunnel_sock_create()
1295 memcpy(&udp_conf.peer_ip6, cfg->peer_ip6, in l2tp_tunnel_sock_create()
1298 !cfg->udp6_zero_tx_checksums; in l2tp_tunnel_sock_create()
1300 !cfg->udp6_zero_rx_checksums; in l2tp_tunnel_sock_create()
1305 udp_conf.local_ip = cfg->local_ip; in l2tp_tunnel_sock_create()
1306 udp_conf.peer_ip = cfg->peer_ip; in l2tp_tunnel_sock_create()
1307 udp_conf.use_udp_checksums = cfg->use_udp_checksums; in l2tp_tunnel_sock_create()
1310 udp_conf.local_udp_port = htons(cfg->local_udp_port); in l2tp_tunnel_sock_create()
1311 udp_conf.peer_udp_port = htons(cfg->peer_udp_port); in l2tp_tunnel_sock_create()
1321 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create()
1330 memcpy(&ip6_addr.l2tp_addr, cfg->local_ip6, in l2tp_tunnel_sock_create()
1339 memcpy(&ip6_addr.l2tp_addr, cfg->peer_ip6, in l2tp_tunnel_sock_create()
1358 ip_addr.l2tp_addr = cfg->local_ip; in l2tp_tunnel_sock_create()
1366 ip_addr.l2tp_addr = cfg->peer_ip; in l2tp_tunnel_sock_create()
1391 struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp) in l2tp_tunnel_create() argument
1397 if (cfg) in l2tp_tunnel_create()
1398 encap = cfg->encap; in l2tp_tunnel_create()
1457 struct l2tp_tunnel_cfg *cfg) in l2tp_tunnel_register() argument
1474 tunnel->peer_tunnel_id, cfg, in l2tp_tunnel_register()
1584 u32 peer_session_id, struct l2tp_session_cfg *cfg) in l2tp_session_create() argument
1614 if (cfg) { in l2tp_session_create()
1615 session->pwtype = cfg->pw_type; in l2tp_session_create()
1616 session->send_seq = cfg->send_seq; in l2tp_session_create()
1617 session->recv_seq = cfg->recv_seq; in l2tp_session_create()
1618 session->lns_mode = cfg->lns_mode; in l2tp_session_create()
1619 session->reorder_timeout = cfg->reorder_timeout; in l2tp_session_create()
1620 session->l2specific_type = cfg->l2specific_type; in l2tp_session_create()
1621 session->cookie_len = cfg->cookie_len; in l2tp_session_create()
1622 memcpy(&session->cookie[0], &cfg->cookie[0], cfg->cookie_len); in l2tp_session_create()
1623 session->peer_cookie_len = cfg->peer_cookie_len; in l2tp_session_create()
1624 memcpy(&session->peer_cookie[0], &cfg->peer_cookie[0], cfg->peer_cookie_len); in l2tp_session_create()