Re: [PATCH v3] BSD: implement virNetDev(Set|Clear)IPv4Address

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

 



  Eric Blake wrote:

> On 08/11/2013 07:54 AM, Roman Bogorodskiy wrote:
> > Provide an implementation of virNetDev(Set|Clear)IPv4Address based on
> > BSD ifconfig tool in addition to 'ip' from Linux iproute2 package.
> > ---
> >  configure.ac         | 15 +++++++++++++++
> >  src/util/virnetdev.c | 24 ++++++++++++++++++++++++
> >  2 files changed, 39 insertions(+)
> > 
> 
> >  
> >  if test $with_freebsd = yes; then
> > +   want_ifconfig=yes
> > +
> >     with_firewalld=no
> >  fi
> >  
> > @@ -2429,6 +2435,15 @@ AC_CHECK_DECLS([BRDGSFD, BRDGADD, BRDGDEL],
> >                  #include <net/if_bridgevar.h>
> >                 ])
> >  
> > +# Check if we need to look for ifconfig
> > +if test "$want_ifconfig" = "yes"; then
> > +     AC_PATH_PROG([IFCONFIG_PATH], [ifconfig])
> > +     if test -z "$IFCONFIG_PATH"; then
> > +         AC_MSG_ERROR([Failed to find ifconfig.])
> 
> This means that configure will fail if ifconfig is not installed but
> want_ifconfig was set.  Are you certain enough that FreeBSD is likely to
> have ifconfig by default, and thus not hit this failure except on
> extremely unlikely configurations?

ifconfig is a part of FreeBSD base system. And appears it's not even
possible to disable installing it via make.conf [1]. So I doubt there
are a lot of systems without ifconfig, and even if they exist I'm not
sure we need to support them because, as you said, it's extremely
unlikely configuration.

1: http://www.freebsd.org/cgi/man.cgi?query=make.conf&sektion=5

> But I think it looks simple enough, with minimal risk of causing grief
> on non-BSD systems (the configure check is guarded, so IFCONFIG_PATH is
> likely to be unset on other platforms).  ACK and pushed.
> 
> -- 
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
> 



Roman Bogorodskiy

Attachment: pgpAPO1omlp91.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]