2 package org
.de
.metux
.ip
;
4 import org
.de
.metux
.util
.Exec
;
5 import java
.net
.UnknownHostException
;
11 public IPSEC_SA(String spi_val
)
16 public boolean delete()
18 return Exec
.exec_command("ipsecadm sa del --spi="+spi
);
25 String cipher_keyfile
,
27 String digest_keyfile
,
30 throws UnknownHostException
35 " --src="+Lookup
.getIP_str(source
)+
36 " --dst="+Lookup
.getIP_str(destination
)+
38 " --cipher-keyfile="+cipher_keyfile
+
40 " --digest-keyfile="+digest_keyfile
+
41 (duplex ?
" --duplex" : "");
43 return Exec
.exec_command(cmdline
);