pierreact has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone :)

My question is quite simple, after reading about Net::Interface and IO::Interface, I still don't see nothing about aliases.

In unix, if I type something like ifconfig rl0 inet 172.16.1.1/30 alias, I'll get an alias on the interface.

Now, I seen nothing to list this IP in the doc...

Anyone please ?
  • Comment on Net::Interface or IO::Interface and aliases

Replies are listed 'Best First'.
Re: Net::Interface or IO::Interface and aliases
by shmem (Chancellor) on Nov 18, 2006 at 15:02 UTC
    Your observation is accurate. Doing a grep -rl alias . in the respective package directory shows Makefile (compiler flags) and an object file for each package (s_aliases from struct servent in /usr/include/netdb.h) on my linux box.

    Seems like alias handling is missing. You could contact the authors (preferably with an appropriate patch .-)

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      Well, this is one of my first programs in perl... I don't think I have the level to patch a CPAN module.

      Hope someone finds this interresting, for now, I'll simply pipe ifconfig :)

      Thank you.