• Home
  • Raw
  • Download

Lines Matching refs:snd_sock

65   int snd_sock;
132 res = setsockopt(TT.snd_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); in send_probe4()
136 res = sendto(TT.snd_sock, out, len, 0, (struct sockaddr *) &dest, in send_probe4()
151 if (setsockopt(TT.snd_sock, SOL_IPV6, IPV6_UNICAST_HOPS, &ttl, in send_probe6()
156 if (sendto(TT.snd_sock, out, TT.msg_len, 0, in send_probe6()
530 TT.snd_sock = xsocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in traceroute_main()
531 else TT.snd_sock = xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP); in traceroute_main()
533 if (toys.optflags & FLAG_i) bind_to_interface(TT.snd_sock); in traceroute_main()
552 if (setsockopt(TT.snd_sock, IPPROTO_IP, IP_OPTIONS, in traceroute_main()
556 } else TT.snd_sock = xsocket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in traceroute_main()
558 if (setsockopt(TT.snd_sock, SOL_SOCKET, SO_SNDBUF, &TT.msg_len, in traceroute_main()
563 setsockopt(TT.snd_sock, IPPROTO_IP, IP_TOS, &tyser, sizeof(tyser)) < 0) in traceroute_main()
568 (setsockopt(TT.snd_sock, IPPROTO_IP, IP_DONTFRAG, &set, in traceroute_main()
571 } else if (setsockopt(TT.snd_sock, IPPROTO_IPV6, IPV6_TCLASS, &TT.tos, in traceroute_main()
574 set_flag_dr(TT.snd_sock); in traceroute_main()
586 if (setsockopt(TT.snd_sock, IPPROTO_IP, IP_MULTICAST_IF, in traceroute_main()
589 xbind(TT.snd_sock,(struct sockaddr*)&source, sizeof(struct sockaddr_in)); in traceroute_main()
598 if (toys.optflags & FLAG_i) bind_to_interface(TT.snd_sock); in traceroute_main()
608 xbind(TT.snd_sock,(struct sockaddr*)&source, sizeof(struct sockaddr_in6)); in traceroute_main()
621 xbind(TT.snd_sock, (struct sockaddr*)&prb, sizeof(struct sockaddr_in6)); in traceroute_main()