Lines Matching refs:sockfd
64 dscpBind(int domain_id, int sockfd, int port)
73 if ((sockfd < 0) || (port >= IPPORT_RESERVED)) {
99 if (bind(sockfd, (struct sockaddr *)&addr, len) < 0) {
113 if (bind(sockfd, (struct sockaddr *)&addr6, len6) < 0) {
134 dscpSecure(int domain_id, int sockfd)
139 if (sockfd < 0) {
157 if (setsockopt(sockfd, IPPROTO_IP, IP_SEC_OPT, (const char *)&opt,
245 int sockfd;
266 if ((sockfd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) {
275 if (ioctl(sockfd, SIOCGLIFFLAGS, (char *)&lifr) < 0) {
276 (void) close(sockfd);
286 (void) close(sockfd);
295 error = ioctl(sockfd, SIOCGLIFADDR, (char *)&lifr);
297 error = ioctl(sockfd, SIOCGLIFDSTADDR, (char *)&lifr);
300 (void) close(sockfd);
311 (void) close(sockfd);