Lines Matching refs:sa
196 struct sockaddr_in sa; in udhcp_send_kernel_packet() local
224 memset(&sa, 0, sizeof(sa)); in udhcp_send_kernel_packet()
225 sa.sin_family = AF_INET; in udhcp_send_kernel_packet()
226 sa.sin_port = htons(source_port); in udhcp_send_kernel_packet()
227 sa.sin_addr.s_addr = source_nip; in udhcp_send_kernel_packet()
228 if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) { in udhcp_send_kernel_packet()
233 memset(&sa, 0, sizeof(sa)); in udhcp_send_kernel_packet()
234 sa.sin_family = AF_INET; in udhcp_send_kernel_packet()
235 sa.sin_port = htons(dest_port); in udhcp_send_kernel_packet()
236 sa.sin_addr.s_addr = dest_nip; in udhcp_send_kernel_packet()
237 if (connect(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) { in udhcp_send_kernel_packet()