106
108
for (c = cmds; c->cmd; ++c) {
111
114
fprintf(stderr, "Object \"%s\" is unknown, try \"ip help\".\n", argv0);
115
118
static int batch(const char *name)
121
124
if (name && strcmp(name, "-") != 0) {
122
125
if (freopen(name, "r", stdin) == NULL) {
123
126
fprintf(stderr, "Cannot open file \"%s\" for reading: %s\n",
129
132
if (rtnl_open(&rth, 0) < 0) {
130
133
fprintf(stderr, "Cannot open rtnetlink\n");