Re: [RFC] Refactoring bridge driver for portability

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

 



On 2012年12月23日 20:54, Roman Bogorodskiy wrote:
Hi,

Few weeks ago when I have submitted my all-in-one huge FreeBSD,
Eric made some comments on the networking part:

http://www.redhat.com/archives/libvir-list/2012-December/msg00432.html

Now when we're done with most of the other things, I'd like
to discuss networking in more detail.

Basically, the main question that bothers me is what would be the
best way to refactor network/bridge_driver.c?

Currently it contains a number of things:

  - dnsmasq routines, static, but cross-platform, doesn't need
    any changes (at least major ones)
  - the same for radvd
  - minor firewalld bits, that are linux specifc
  - iptables routines. There are quite a lot of that code
    and it's also gets called from many places in the file

I'm thinking about an approach that Eric mentioned for virthread.c:

- keep dnsmasq and radvd in bridge_driver.c
- move out all linux specific code to bridge_driver_linux.c and
   #include it in a way similar to virthread.c
- in a similar way create bridge_driver_freebsd.c

Does it sound reasonable?


Sounds good to me, though it will be nice if we could rename
bridge_driver.c like network_backend_bridge.c, but it's not related
to this topic, and can be done separately.

Regards,
Osier

--
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]