Mike Belopuhov <[email protected]> writes:
> Good day, Dimitris.
>
> Long time ago in a galaxy far far away I've been using this
> alongside the -F option that I've added. While managed
> switches are becoming cheaper, I don't see a reason for a
> working feature to go away, especially since there has been
> zero rationale provided apart from "ndp -f" doesn't work.
> Well, then how about fixing ndp?
[...]
Diff below, seems to work fine.
Index: ndp.c
===================================================================
RCS file: /cvs/src/usr.sbin/ndp/ndp.c,v
retrieving revision 1.69
diff -u -p -p -u -r1.69 ndp.c
--- ndp.c 26 Jan 2016 18:26:19 -0000 1.69
+++ ndp.c 30 Mar 2016 11:49:50 -0000
@@ -241,6 +241,11 @@ main(int argc, char *argv[])
}
delete(arg);
break;
+ case 'f':
+ if (argc != 0)
+ usage();
+ file(arg);
+ break;
case 'p':
if (argc != 0) {
usage();
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE