bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] Argpifying ifconfig.


From: Debarshi 'Rishi' Ray
Subject: Re: [bug-inetutils] Argpifying ifconfig.
Date: Mon, 9 Apr 2007 03:26:48 +0530

ifconfig/system/osf.c:

The documentation in the older code suggests that an address family
can be specified just after the name of the interface has been
specified:
const char *system_help = "\
 NAME [AF]
or
 NAME AF [ADDR [DSTADDR]] [broadcast BRDADDR]\n\
 [netmask MASK] [metric N]";

However the older code is such that parse_opt_set_af can only be
invoked after parse_opt_set_address has been called:
         if (!(*ifp->valid & IF_VALID_ADDR))
           {
             parse_opt_set_address (*ifp, argv[i]);
             expect = EXPECT_AF;
           }

Isn't this a discrepancy? If yes, which one is to be followed?

Happy hacking,
Debarshi
--
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]