#include "config.h"
#include "vserver.h"
-#include "planetlab.h"
static inline PyObject *inc_and_ret_none(void)
{
if (getifaddrs(&head) == -1)
return -1;
for (ifa = head; ifa; ifa = ifa->ifa_next) {
- if (ifa->ifa_addr->sa_family == family &&
+ if (ifa->ifa_addr && ifa->ifa_addr->sa_family == family &&
memcmp((char *) ifa->ifa_addr + offset, ip, len) == 0) {
switch (addr->vna_type) {
case VC_NXA_TYPE_IPV4:
/* export limit-related constants */
PyModule_AddIntConstant(mod, "DLIMIT_KEEP", (int)VC_CDLIM_KEEP);
PyModule_AddIntConstant(mod, "DLIMIT_INF", (int)VC_CDLIM_INFINITY);
+ PyModule_AddIntConstant(mod, "VC_LIM_INFINITY", (int)VC_LIM_INFINITY);
PyModule_AddIntConstant(mod, "VC_LIM_KEEP", (int)VC_LIM_KEEP);
PyModule_AddIntConstant(mod, "RLIMIT_CPU", (int)RLIMIT_CPU);