Lines Matching defs:source
17 * Redistribution and use in source and binary forms, with or without
20 * 1. Redistributions of source code must retain the above copyright
163 struct sockaddr_in6 source;
730 source.sin6_family = AF_INET6;
768 if (inet_pton(AF_INET6, addr, (char*)&source.sin6_addr) <= 0) {
769 fprintf(stderr, "ping: invalid source address %s\n", optarg);
823 "Source routing is deprecated by RFC5095.\n");
909 fprintf(stderr, "ping6: Source routing is deprecated by RFC5095.\n");
955 if (IN6_IS_ADDR_UNSPECIFIED(&source.sin6_addr)) {
998 alen = sizeof(source);
999 if (getsockname(probe_fd, (struct sockaddr*)&source, &alen) == -1) {
1003 source.sin6_port = 0;
1020 &source.sin6_addr))
1024 fprintf(stderr, "ping6: Warning: source address might be selected on device other than %s.\n", device);
1031 else if (device && (IN6_IS_ADDR_LINKLOCAL(&source.sin6_addr) ||
1032 IN6_IS_ADDR_MC_LINKLOCAL(&source.sin6_addr)))
1033 source.sin6_scope_id = if_name2index(device);
1080 bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
1259 pr_addr_n(&source.sin6_addr), device ? : "");
1713 printf("Beyond scope of source address");