Lines Matching defs:ifconfig

14 #include "ifconfig.h"
188 static void ifconfig(int argc, char *argv[], int af,
221 * are more interfaces to act on (i.e., ifconfig was invoked with -a), keep
231 /* Refer to the comments in ifconfig() on the netmask "hack" */
356 /* End defines and structure definitions for ifconfig -a plumb */
401 "ifconfig: %s: Bad value for %s in %s\n", default_ip_str,
438 * Note that due to the ifconfig syntax they have to be combined
456 char *av[2] = { "ifconfig", name };
505 "ifconfig: %s: no such interface\n", name);
511 ifconfig(argc, argv, af, NULL);
518 * For each interface, call ifconfig(argc, argv, af, ifa).
532 * ifconfig -a plumb should find all network interfaces in the current
546 * For each logical interface, call ifconfig() with the
562 ifconfig(argc, argv, af, ifa);
568 * Used for `ifconfig -a plumb'. Finds all datalinks and plumbs the interface.
580 (void) fprintf(stderr, "ifconfig: invalid syntax used to "
600 ifconfig(argc, argv, af, NULL);
611 ifconfig(int argc, char *argv[], int af, struct ifaddrs *ifa)
628 ret = setifdhcp("ifconfig", name, argc, argv);
645 * ifconfig(1M) syntax. The kernel then "infers" the correct netmask
662 * ifconfig(1M) is too overloaded and the code is so convoluted
702 (void) printf("ifconfig: argv %s\n", *argv);
729 (void) fprintf(stderr, "ifconfig: Operation %s not"
776 * "ifconfig <intf> addr1 addr2 addr3 addr4 up"
779 "ifconfig: cannot configure more than two "
792 "ifconfig: no argument for %s\n",
844 (void) fprintf(stderr, "ifconfig: WARNING: tunnel with only "
850 (void) fprintf(stderr, "ifconfig: could not create address:% s\n",
948 (void) fprintf(stderr, "ifconfig: Bad prefix length in %s\n",
956 (void) fprintf(stderr, "ifconfig: "
965 (void) fprintf(stderr, "ifconfig: "
1079 * algorithms we select ("requested" for ifconfig vs. "actual" for key).
1102 * NOTE: Static buffer in this function for the return value. Since ifconfig
1144 (void) fprintf(stderr, "ifconfig: Unexpected end of command "
1175 (void) fprintf(stderr, "ifconfig: %s algorithm type %s unknown.\n",
1183 * Actual ifconfig functions to set tunnel security properties.
1207 * If I'm just starting off this ifconfig, I want a clean slate,
1315 "ifconfig: revarp not possible on IPv6 interface %s\n",
1341 "ifconfig: Missing prefix length in subnet %s\n", addr);
1346 "ifconfig: Bad prefix length in %s\n", addr);
1398 "ifconfig: Bad prefix length in %s\n", addr);
1409 (void) fprintf(stderr, "ifconfig: "
1420 (void) fprintf(stderr, "ifconfig: "
1426 (void) fprintf(stderr, "ifconfig: setting prefix only supported"
1636 (void) fprintf(stderr, "ifconfig: cannot change"
1644 "ifconfig: bad ethernet address\n");
1646 (void) fprintf(stderr, "ifconfig: malloc() failed\n");
1687 "ifconfig: failed setting mac address on %s\n", name);
1806 * ifconfig le0 addif 109.106.86.130 netmask + up \
1826 "ifconfig: addif: bad physical interface name %s\n",
1847 "ifconfig: Bad prefix length in %s\n", str);
1856 (void) fprintf(stderr, "ifconfig: "
1865 (void) fprintf(stderr, "ifconfig: "
1879 * in the ifconfig() comments. To get around this problem, we first
1906 * to do an addif for `ifconfig ce0 addif <addr>' but not for
1907 * `ifconfig ce0 <addr>'. libipadm does not have a flag to
1989 "ifconfig: removeif: bad physical interface name %s\n",
2020 "ifconfig: removeif: cannot remove interface: %s\n",
2048 "ifconfig: removeif: cannot remove interface: %s\n",
2071 "ifconfig: Missing prefix length in subnet %s\n", addr);
2076 "ifconfig: Bad prefix length in %s\n", addr);
2212 (void) fprintf(stderr, "ifconfig: %s: "
2230 (void) fprintf(stderr, "ifconfig: cannot join "
2261 (void) fprintf(stderr, "ifconfig: cannot bring back up "
2273 (void) fprintf(stderr, "ifconfig: cannot bring back up "
2299 (void) fprintf(stderr, "ifconfig: %s: module operations not"
2304 (void) fprintf(stderr, "ifconfig: %s: module operations not"
2598 "ifconfig: must supply a module name\n");
2603 (void) fprintf(stderr, "ifconfig: module name too long: %s\n",
2620 (void) fprintf(stderr, "ifconfig: cannot remove %s\n",
2626 (void) fprintf(stderr, "ifconfig: must supply a position\n");
2758 "ifconfig: unknown zone '%s'\n", arg);
2798 "ifconfig: Cannot specify logical interface for usesrc \n");
3635 (void) fprintf(stderr, "ifconfig: cannot unplumb %s: %s\n",
3656 (void) fprintf(stderr, "ifconfig: cannot plumb %s: %s\n",
3671 * Treat e.g. "ifconfig ipmp0:2 ipmp" as "ifconfig ipmp0:2 plumb".
3717 (void) fprintf(stderr, "ifconfig: cannot create IPMP interface "
3767 (void) fprintf(stderr, "ifconfig: cannot create IPMP handle: "
3781 (void) fprintf(stderr, "ifconfig: cannot ping in.mpathd: %s\n",
3789 * don't need to worry about racing with another ifconfig process.
3904 (void) fprintf(stderr, "ifconfig: %s: %s\n", str,
3937 (void) fprintf(stderr, "ifconfig: %s: ", cmd);
3976 (void) fprintf(stderr, "ifconfig: %s \"%s\": %s\n", cmd,
4021 (void) fprintf(stderr, "ifconfig: %s: unexpected '/'\n", str);
4051 (void) fprintf(stderr, "ifconfig: %s: bad address "
4054 (void) fprintf(stderr, "ifconfig: %s: bad address\n", s);
4089 (void) fprintf(stderr, "ifconfig: %s: unexpected '/'\n", str);
4103 (void) fprintf(stderr, "ifconfig: %s: bad address "
4106 (void) fprintf(stderr, "ifconfig: %s: bad address\n", s);
4428 "usage: ifconfig <interface> | -a[ 4 | 6 | D ][ u | d ][ Z ]\n");