Lines Matching refs:bindaddr
55 struct sockaddr_in *bindaddr;
61 bindaddr = sin;
62 if (bindaddr == (struct sockaddr_in *)0) {
63 bindaddr = &myaddr;
64 bzero(bindaddr, sizeof (*bindaddr));
65 bindaddr->sin_family = AF_INET;
66 } else if (bindaddr->sin_family != AF_INET) {
95 bindaddr->sin_port = 0;
96 ret = bind(sd, (struct sockaddr *)bindaddr,
122 (void) getsockname(sd, (struct sockaddr *)bindaddr, &len);