]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: make macvtap/macvlan generated name #defines available to other files
authorLaine Stump <laine@laine.org>
Tue, 25 Apr 2017 18:09:45 +0000 (14:09 -0400)
committerLaine Stump <laine@laine.org>
Fri, 28 Apr 2017 13:43:52 +0000 (09:43 -0400)
commita05400ef55c7c67c6b211dfa5a33400870d470ca
treee475ece7ddc6ae95453c15b57d9d0b9576592353
parent7949de960eaba07661c1e0ab6e4aa945db8c1b25
util: make macvtap/macvlan generated name #defines available to other files

MACVTAP_NAME_PREFIX and MACVLAN_NAME_PREFIX could be useful to other
files if they were defined in virnetdevmacvlan.h instead of
virnetdevmacvlan.c, so do that (while slightly renaming them and also
adding yet another #define that chooses between macvlan/macvtap based
on flags).

This is a prerequisite to fix: https://bugzilla.redhat.com/1335798
src/util/virnetdevmacvlan.c
src/util/virnetdevmacvlan.h