|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] libxl: minor portability nits
Christoph Egger writes ("[Xen-devel] [PATCH] libxl: minor portability nits"):
> Use #defines for network related default settinsg.
> Distinguish between default Linux and NetBSD network bridge interfaces.
I don't understand how and when NET_DEFAULT_ADDRESS ought to be set to
something different at compile-time. If what you want is a global
setting, for the administrator to arrange to bind to a particular
address of the host (and you are happy with the security
implications), then I agree that we need a global config file for this
and various other reasons. But not a #define.
> +#define NET_DEFAULT_ADDRESS "127.0.0.1"
> +#if defined(__linux__)
> +#define NET_DEFAULT_BRIDGE "xenbr0"
> +#endif
> +#if defined(__NetBSD__)
> +#define NET_DEFAULT_BRIDGE "bridge0"
> +#endif
This should be in libxl_osdeps.h.
Furthermore, the xenbr0 version should be the default. Ie.
+#ifndef NET_DEFAULT_BRIDGE
+#define NET_DEFAULT_BRIDGE "xenbr0"
+#endif
preceded by some suitable thing for netbsd. Also please use #ifdef
not #if defined(...).
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|