pluto: Removed no_klips flag (--noklips option).
This commit is contained in:
+4
-19
@@ -536,7 +536,6 @@ process_raw_ifaces(struct raw_iface *rifaces)
|
||||
for (ifp = rifaces; ifp != NULL; ifp = ifp->next)
|
||||
{
|
||||
struct raw_iface *v = NULL; /* matching ipsecX interface */
|
||||
struct raw_iface fake_v;
|
||||
bool after = FALSE; /* has vfp passed ifp on the list? */
|
||||
bool bad = FALSE;
|
||||
struct raw_iface *vfp;
|
||||
@@ -611,24 +610,10 @@ process_raw_ifaces(struct raw_iface *rifaces)
|
||||
/* what if we didn't find a virtual interface? */
|
||||
if (v == NULL)
|
||||
{
|
||||
if (no_klips)
|
||||
{
|
||||
/* kludge for testing: invent a virtual device */
|
||||
static const char fvp[] = "virtual";
|
||||
fake_v = *ifp;
|
||||
passert(sizeof(fake_v.name) > sizeof(fvp));
|
||||
strcpy(fake_v.name, fvp);
|
||||
addrtot(&ifp->addr, 0, fake_v.name + sizeof(fvp) - 1
|
||||
, sizeof(fake_v.name) - (sizeof(fvp) - 1));
|
||||
v = &fake_v;
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG(DBG_CONTROL,
|
||||
DBG_log("IP interface %s %s has no matching ipsec* interface -- ignored"
|
||||
, ifp->name, ip_str(&ifp->addr)));
|
||||
continue;
|
||||
}
|
||||
DBG(DBG_CONTROL,
|
||||
DBG_log("IP interface %s %s has no matching ipsec* interface -- ignored"
|
||||
, ifp->name, ip_str(&ifp->addr)));
|
||||
continue;
|
||||
}
|
||||
|
||||
/* We've got all we need; see if this is a new thing:
|
||||
|
||||
Reference in New Issue
Block a user