Powered by Apache

CVS log for nsh/arp.c

[BACK] Up to [local] / nsh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 5 03:42:43 2009 UTC (2 years, 11 months ago) by chris
Branch: MAIN
CVS Tags: HEAD
Diff to previous 1.4 (colored)

rid of global in arp.c for great clarity

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 2 23:01:13 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.3 (colored)

Sync with OpenBSD - start using rtm_hdrlen from kernel route messages so we have a better chance of working if the kernel and userland are significantly out of sync (such as when the header changes)

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 25 00:27:01 2008 UTC (4 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.2 (colored)

-always abort if getrtdump returns NULL
-socket not used in this conf routine anymore

Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 4 02:49:46 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.1 (colored)

Destroy inappropriate use of CMP_ARG and rename it to MIN_ARG since is
is really only for comparing that an argument matches a minimum of the
characters supplied to the second position in the macro.

Next move from using half-assed minimum-matching/ambiguous proof to
being truly table driven by using genget everywhere.  This is done by
eliminating chains of if (CMP_ARG){...; return;} and using structs
which genget loops around to determine the shortest non-ambiguous
prefix.  This doesn't buy command completion yet!  But, by using
table driven command sets, it moves in the right direction.

Also replace use of CMP_ARG in places that are not table-driven to
isprefix() (it was already in genget.c) which does matching in the
opposite order, so nsh can know that an argument is "interface"
and match i, in, int, inte, ... but not match iff or other mis-spelled
arguments.  (CMP_ARG was just matching against the minimum non-
ambiguous part of the argument as compiled into nsh at any given
time, poor form)

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 13 02:27:38 2008 UTC (4 years, 4 months ago) by chris
Branch: MAIN

random cleanup and arp set/search support (show arp already works)

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>