Lines Matching defs:ipsec
218 static char *ipsec = "";
231 printf(" [-s] [--ipsec <arg>] Defines an ipsec tunnel to be relayed to.\n");
232 printf(" Since ipsec tunnels terminate on the same interface, we need to define the broadcast\n");
336 {"ipsec", 1, 0, 0},
364 ipsec = strdup(optarg);
365 // Validate the ipsec parameters
366 regcomp(&preg, "ipsec[0-9]+:[0-9]+.[0-9]+.[0-9]+.255", REG_EXTENDED);
367 if (regexec(&preg, ipsec, 0, NULL, 0)) {
368 syslog(LOG_INFO,"Bad syntax: %s", ipsec);
369 fprintf(stderr, "\nBad syntax: %s\n", ipsec);
389 if (ifout == "" && ipsec == "") {
636 // The CRC gets broken here when sending over ipsec tunnels but that
872 // We can define several tunnel end points for the same ipsec interface.
873 } else if (ipsec != "" && strncmp(ifs.ifc_req[i].ifr_name, "ipsec", 5) == 0) {
874 if (strncmp(ifs.ifc_req[i].ifr_name, ipsec, 6) == 0) {
875 struct hostent *hp = gethostbyname(ipsec+7);