Lines Matching +full:0 +full:x30000

50 /* Header set to 0x30000 signifies a data packet */
52 #define L2TPV3_DATA_PACKET 0x30000
57 #define IPPROTO_L2TP 0x73
209 *counter = 0; in l2tpv3_form_header()
241 message.msg_controllen = 0; in net_l2tpv3_receive_dgram_iov()
242 message.msg_flags = 0; in net_l2tpv3_receive_dgram_iov()
243 ret = RETRY_ON_EINTR(sendmsg(s->fd, &message, 0)); in net_l2tpv3_receive_dgram_iov()
244 if (ret > 0) { in net_l2tpv3_receive_dgram_iov()
246 } else if (ret == 0) { in net_l2tpv3_receive_dgram_iov()
248 * we should get an error and never a 0 send in net_l2tpv3_receive_dgram_iov()
256 ret = 0; in net_l2tpv3_receive_dgram_iov()
270 ssize_t ret = 0; in net_l2tpv3_receive_dgram()
284 message.msg_controllen = 0; in net_l2tpv3_receive_dgram()
285 message.msg_flags = 0; in net_l2tpv3_receive_dgram()
286 ret = RETRY_ON_EINTR(sendmsg(s->fd, &message, 0)); in net_l2tpv3_receive_dgram()
287 if (ret > 0) { in net_l2tpv3_receive_dgram()
289 } else if (ret == 0) { in net_l2tpv3_receive_dgram()
291 * we should get an error and never a 0 send in net_l2tpv3_receive_dgram()
299 ret = 0; in net_l2tpv3_receive_dgram()
324 cookie = ldl_be_p(buf + s->cookie_offset) & 0xffffffffULL; in l2tpv3_verify_header()
340 return 0; in l2tpv3_verify_header()
345 int size = 0; in net_l2tpv3_process_queue()
352 if (s->queue_depth > 0) { in net_l2tpv3_process_queue()
355 if (msgvec->msg_len > 0) { in net_l2tpv3_process_queue()
358 if ((data_size > 0) && in net_l2tpv3_process_queue()
359 (l2tpv3_verify_header(s, vec->iov_base) == 0)) { in net_l2tpv3_process_queue()
371 if (size == 0) { in net_l2tpv3_process_queue()
389 (s->queue_depth > 0) && in net_l2tpv3_process_queue()
391 ((size > 0) || bad_read) in net_l2tpv3_process_queue()
426 s->queue_head = 0; in net_l2tpv3_send()
427 s->queue_tail = 0; in net_l2tpv3_send()
432 if (target_count > 0) { in net_l2tpv3_send()
436 if (count < 0) { in net_l2tpv3_send()
440 count = 0; in net_l2tpv3_send()
454 for (i = 0; i < count; i++) { in destroy_vector()
457 for (j = 0; j < iovcount; j++) { in destroy_vector()
477 for (i = 0; i < count ; i++) { in build_l2tpv3_vector()
479 msgvec->msg_hdr.msg_namelen = 0; in build_l2tpv3_vector()
489 msgvec->msg_hdr.msg_controllen = 0; in build_l2tpv3_vector()
490 msgvec->msg_hdr.msg_flags = 0; in build_l2tpv3_vector()
502 if (s->fd >= 0) { in net_l2tpv3_cleanup()
536 s->queue_head = 0; in net_init_l2tpv3()
537 s->queue_tail = 0; in net_init_l2tpv3()
589 s->session_offset = 0; in net_init_l2tpv3()
614 memset(&hints, 0, sizeof(hints)); in net_init_l2tpv3()
623 hints.ai_protocol = 0; in net_init_l2tpv3()
635 if ((gairet != 0) || (result == NULL)) { in net_init_l2tpv3()
654 memset(&hints, 0, sizeof(hints)); in net_init_l2tpv3()
663 hints.ai_protocol = 0; in net_init_l2tpv3()
671 if ((gairet != 0) || (result == NULL)) { in net_init_l2tpv3()
715 s->counter = 0; in net_init_l2tpv3()
720 return 0; in net_init_l2tpv3()
723 if (fd >= 0) { in net_init_l2tpv3()