Lines Matching full:session
18 * creates a single session. The following code only handles control packets.
129 static void set_message(uint16_t session, uint16_t message)
135 p[3] = session;
184 static int recv_packet(uint16_t *session)
229 *session = p[3];
363 .local = {.tunnel = local_tunnel, .session = local_session},
364 .remote = {.tunnel = remote_tunnel, .session = remote_session},
416 uint16_t session = 0;
418 if (!recv_packet(&session)) {
422 /* Here is the fun part. We always try to protect our tunnel and session
445 if (state == ICRQ && session == local_session) {
446 if (get_attribute_u16(ASSIGNED_SESSION, &session) && session) {
447 remote_session = session;
456 log_print(DEBUG, "Received ICRP without assigned session");
469 if (session && session == local_session) {
505 log_print(INFO, "Session established");
515 if (get_attribute_u16(ASSIGNED_SESSION, &session) && session) {
517 "Sending CDN", messages[incoming.message], session);
518 set_message(session, CDN);