From 7d6fc41b08fbb103b8d48fe58bad2763d5e3a792 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Sun, 5 Dec 1999 21:46:14 +0000 Subject: Remove LOCALFLOW flag (thanks andreas) --- sbin/photurisd/kernel.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sbin/photurisd/kernel.c') diff --git a/sbin/photurisd/kernel.c b/sbin/photurisd/kernel.c index 1d20d17bdaf..00b0c440eef 100644 --- a/sbin/photurisd/kernel.c +++ b/sbin/photurisd/kernel.c @@ -39,7 +39,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: kernel.c,v 1.4 1999/07/02 23:37:33 deraadt Exp $"; +static char rcsid[] = "$Id: kernel.c,v 1.5 1999/12/05 21:46:13 angelos Exp $"; #endif #include @@ -1354,7 +1354,7 @@ kernel_insert_spi(struct stateob *st, struct spiob *SPI) if (kernel_enable_spi(SPI->isrc, SPI->ismask, SPI->idst, SPI->idmask, SPI->address, spi, proto, - SADB_X_SAFLAGS_REPLACEFLOW | SADB_X_SAFLAGS_LOCALFLOW | + SADB_X_SAFLAGS_REPLACEFLOW | (vpn_mode ? /*ENABLE_FLAG_MODIFY*/ : 0)) == -1) log_error(0, "kernel_enable_spi() in kernel_insert_spi()"); } else { @@ -1414,7 +1414,7 @@ kernel_unlink_spi(struct spiob *ospi) AT_AH_ATTRIB); if (esp != NULL) { - int flag = (vpn_mode ? /*ENABLE_FLAG_MODIFY*/ : 0) | SADB_X_SAFLAGS_LOCALFLOW; + int flag = (vpn_mode ? /*ENABLE_FLAG_MODIFY*/ : 0); if (!(ospi->flags & SPI_OWNER) && kernel_disable_spi(ospi->isrc, ospi->ismask, ospi->idst, ospi->idmask, @@ -1428,8 +1428,7 @@ kernel_unlink_spi(struct spiob *ospi) if (ah != NULL) { if (esp == NULL) { - int flag = (vpn_mode ? /*ENABLE_FLAG_MODIFY*/ : 0) | - SADB_X_SAFLAGS_LOCALFLOW; + int flag = (vpn_mode ? /*ENABLE_FLAG_MODIFY*/ : 0); if (!(ospi->flags & SPI_OWNER) && kernel_disable_spi(ospi->isrc, ospi->ismask, ospi->idst, ospi->idmask, -- cgit v1.2.3