Lines Matching defs:ifconfig

12 #include "ifconfig.h"
186 static void ifconfig(int argc, char *argv[], int af,
219 * are more interfaces to act on (i.e., ifconfig was invoked with -a), keep
229 /* Refer to the comments in ifconfig() on the netmask "hack" */
354 /* End defines and structure definitions for ifconfig -a plumb */
398 "ifconfig: %s: Bad value for %s in %s\n", default_ip_str,
435 * Note that due to the ifconfig syntax they have to be combined
453 char *av[2] = { "ifconfig", name };
501 "ifconfig: %s: no such interface\n", name);
507 ifconfig(argc, argv, af, NULL);
514 * For each interface, call ifconfig(argc, argv, af, ifa).
528 * ifconfig -a plumb should find all network interfaces in the current
542 * For each logical interface, call ifconfig() with the
558 ifconfig(argc, argv, af, ifa);
564 * Used for `ifconfig -a plumb'. Finds all datalinks and plumbs the interface.
576 (void) fprintf(stderr, "ifconfig: invalid syntax used to "
596 ifconfig(argc, argv, af, NULL);
607 ifconfig(int argc, char *argv[], int af, struct ifaddrs *ifa)
624 ret = setifdhcp("ifconfig", name, argc, argv);
641 * ifconfig(1M) syntax. The kernel then "infers" the correct netmask
658 * ifconfig(1M) is too overloaded and the code is so convoluted
698 (void) printf("ifconfig: argv %s\n", *argv);
725 (void) fprintf(stderr, "ifconfig: Operation %s not"
772 * "ifconfig <intf> addr1 addr2 addr3 addr4 up"
775 "ifconfig: cannot configure more than two "
788 "ifconfig: no argument for %s\n",
840 (void) fprintf(stderr, "ifconfig: WARNING: tunnel with only "
846 (void) fprintf(stderr, "ifconfig: could not create address:% s\n",
944 (void) fprintf(stderr, "ifconfig: Bad prefix length in %s\n",
952 (void) fprintf(stderr, "ifconfig: "
961 (void) fprintf(stderr, "ifconfig: "
1075 * algorithms we select ("requested" for ifconfig vs. "actual" for key).
1098 * NOTE: Static buffer in this function for the return value. Since ifconfig
1140 (void) fprintf(stderr, "ifconfig: Unexpected end of command "
1171 (void) fprintf(stderr, "ifconfig: %s algorithm type %s unknown.\n",
1179 * Actual ifconfig functions to set tunnel security properties.
1203 * If I'm just starting off this ifconfig, I want a clean slate,
1311 "ifconfig: revarp not possible on IPv6 interface %s\n",
1337 "ifconfig: Missing prefix length in subnet %s\n", addr);
1342 "ifconfig: Bad prefix length in %s\n", addr);
1394 "ifconfig: Bad prefix length in %s\n", addr);
1405 (void) fprintf(stderr, "ifconfig: "
1416 (void) fprintf(stderr, "ifconfig: "
1422 (void) fprintf(stderr, "ifconfig: setting prefix only supported"
1632 (void) fprintf(stderr, "ifconfig: cannot change"
1640 "ifconfig: bad ethernet address\n");
1642 (void) fprintf(stderr, "ifconfig: malloc() failed\n");
1683 "ifconfig: failed setting mac address on %s\n", name);
1802 * ifconfig le0 addif 109.106.86.130 netmask + up \
1822 "ifconfig: addif: bad physical interface name %s\n",
1840 "ifconfig: Bad prefix length in %s\n", str);
1849 (void) fprintf(stderr, "ifconfig: "
1858 (void) fprintf(stderr, "ifconfig: "
1872 * in the ifconfig() comments. To get around this problem, we first
1899 * to do an addif for `ifconfig ce0 addif <addr>' but not for
1900 * `ifconfig ce0 <addr>'. libipadm does not have a flag to
1982 "ifconfig: removeif: bad physical interface name %s\n",
2013 "ifconfig: removeif: cannot remove interface: %s\n",
2041 "ifconfig: removeif: cannot remove interface: %s\n",
2064 "ifconfig: Missing prefix length in subnet %s\n", addr);
2069 "ifconfig: Bad prefix length in %s\n", addr);
2205 (void) fprintf(stderr, "ifconfig: %s: "
2223 (void) fprintf(stderr, "ifconfig: cannot join "
2254 (void) fprintf(stderr, "ifconfig: cannot bring back up "
2266 (void) fprintf(stderr, "ifconfig: cannot bring back up "
2292 (void) fprintf(stderr, "ifconfig: %s: module operations not"
2297 (void) fprintf(stderr, "ifconfig: %s: module operations not"
2591 "ifconfig: must supply a module name\n");
2596 (void) fprintf(stderr, "ifconfig: module name too long: %s\n",
2613 (void) fprintf(stderr, "ifconfig: cannot remove %s\n",
2619 (void) fprintf(stderr, "ifconfig: must supply a position\n");
2751 "ifconfig: unknown zone '%s'\n", arg);
2791 "ifconfig: Cannot specify logical interface for usesrc \n");
3628 (void) fprintf(stderr, "ifconfig: cannot unplumb %s: %s\n",
3649 (void) fprintf(stderr, "ifconfig: cannot plumb %s: %s\n",
3664 * Treat e.g. "ifconfig ipmp0:2 ipmp" as "ifconfig ipmp0:2 plumb".
3710 (void) fprintf(stderr, "ifconfig: cannot create IPMP interface "
3760 (void) fprintf(stderr, "ifconfig: cannot create IPMP handle: "
3774 (void) fprintf(stderr, "ifconfig: cannot ping in.mpathd: %s\n",
3782 * don't need to worry about racing with another ifconfig process.
3897 (void) fprintf(stderr, "ifconfig: %s: %s\n", str,
3930 (void) fprintf(stderr, "ifconfig: %s: ", cmd);
3969 (void) fprintf(stderr, "ifconfig: %s \"%s\": %s\n", cmd,
4014 (void) fprintf(stderr, "ifconfig: %s: unexpected '/'\n", str);
4044 (void) fprintf(stderr, "ifconfig: %s: bad address "
4047 (void) fprintf(stderr, "ifconfig: %s: bad address\n", s);
4082 (void) fprintf(stderr, "ifconfig: %s: unexpected '/'\n", str);
4096 (void) fprintf(stderr, "ifconfig: %s: bad address "
4099 (void) fprintf(stderr, "ifconfig: %s: bad address\n", s);
4421 "usage: ifconfig <interface> | -a[ 4 | 6 | D ][ u | d ][ Z ]\n");