Lines Matching refs:source

10  * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that: (1) source code distributions
139 static char *source_input = NULL; /* this is user arg. source, doesn't change */
140 static char *source = NULL; /* this gets modified after name lookup */
325 "%s: privilege to specify a loose source "
443 * set the ip source address of the outbound
490 Fprintf(stderr, "%s: loose source route gateways (-g)"
809 * Sets the source address by resolving -i and -s arguments, or if -i and -s
811 * kernel's pick of the source address.
812 * Returns number of interfaces configured on the source host, 0 on error or
834 source = source_input;
870 /* verify the source address */
871 if (source != NULL) {
872 get_hostinfo(source, pr->family, &aip);
875 "%s: %s is an invalid %s source address\n",
876 prog, source, pr->name);
882 source = aip->ai_canonname;
909 if (source == NULL) { /* no -s used */
914 * -i used, but not -s, and it's IPv4: set the source
931 "addresses; using %s\n", prog, source,
936 * Make sure the source specified matches the
944 prog, source, device);
959 * Binding at this point will set the source address to be used
962 * will end up choosing the source address when the datagram is
965 * For raw IPv4 datagrams, the source address is initialized
1519 /* carry out the source address selection */
1527 * kernel picks the source address based on the first hop
1575 if (source)
1576 Fprintf(stderr, " from %s", source);
1582 * Setup the source routing for IPv4. For IPv6, we did the required
1791 * source address kernel is going to pick
1837 * fails. We just return all-zero (wildcard) as the source