}
}
+#define print_if_l_error print_error("Interface name length must be less " \
+ "than %d", IFNAMSIZ)
#define OPT_COMMAND 0x01
#define OPT_TABLE 0x02
#define OPT_IN 0x04
print_error("No in-interface "
"specified");
if (strlen(argv[optind - 1]) >= IFNAMSIZ)
- print_error("Illegal interface length");
+ print_if_l_error;
strcpy(new_entry->in, argv[optind - 1]);
break;
}
print_error("No logical in-interface "
"specified");
if (strlen(argv[optind - 1]) >= IFNAMSIZ)
- print_error("Illegal interface length");
+ print_if_l_error;
strcpy(new_entry->logical_in, argv[optind - 1]);
break;
}
"specified");
if (strlen(argv[optind - 1]) >= IFNAMSIZ)
- print_error("Illegal interface "
- "length");
+ print_if_l_error;
strcpy(new_entry->out, argv[optind - 1]);
break;
}
"specified");
if (strlen(argv[optind - 1]) >= IFNAMSIZ)
- print_error("Illegal interface "
- "length");
+ print_if_l_error;
strcpy(new_entry->logical_out,
argv[optind - 1]);
break;