Lines Matching +defs:from +defs:encoding
226 /* arguments from the preferences file */
237 /* get the parameters from the IPSec dictionary */
241 /* get the parameters from the L2TP dictionary */
254 /* arguments from command line */
463 struct sockaddr *from, socklen_t *addrlen)
465 while (recvfrom(sockfd, buff, nbytes, flags, from, addrlen) < 0)
593 /* get authentication method from the IPSec dict */
611 CFStringEncoding encoding;
615 encoding = (*(CFDataGetBytePtr(data) + 1) == 0x00) ? kCFStringEncodingUTF16LE : kCFStringEncodingUTF16BE;
617 encoding = (*(CFDataGetBytePtr(data) ) == 0x00) ? kCFStringEncodingUTF16BE : kCFStringEncodingUTF16LE;
619 string = CFStringCreateWithBytes(NULL, (const UInt8 *)CFDataGetBytePtr(data), CFDataGetLength(data), encoding, FALSE);
663 struct sockaddr_in6 from;
666 /* we should check if there are too many call from the same IP address
679 /* read the duplicated SCCRQ from the listen socket and ignore for now */
680 if (l2tp_sys_recvfrom(listen_sockfd, recv_buf, 1500, MSG_DONTWAIT, (struct sockaddr*)&from, &addrlen) < 0)
698 struct sockaddr_in6 from;
701 /* we should check if there are too many call from the same IP address
716 /* read the duplicated SCCRQ from the listen socket and ignore for now */
717 if (l2tp_sys_recvfrom(listen_sockfd, recv_buf, 1500, MSG_DONTWAIT, (struct sockaddr*)&from, &addrlen) < 0)