Searched defs:sndsock (Results 1 - 1 of 1) sorted by relevance

/external/iputils/
H A Dtraceroute6.c303 int sndsock; /* send (udp) socket file descriptor */ variable
523 if ((sndsock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
528 if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&datalen,
536 (void) setsockopt(sndsock, SOL_SOCKET, SO_DEBUG,
539 (void) setsockopt(sndsock, SOL_SOCKET, SO_DONTROUTE,
576 if (bind(sndsock, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) {
735 i = setsockopt(sndsock, SOL_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl));
743 i = sendto(sndsock, sendbuff, datalen, 0,

Completed in 105 milliseconds