Cleanup of libnet patch.

remotes/origin/master-1.0.x
Victor Julien 17 years ago
parent 3678dda185
commit 01c0e316b9

@ -539,17 +539,14 @@ int SigParseAction(Signature *s, const char *action) {
s->action = ACTION_REJECT_BOTH; s->action = ACTION_REJECT_BOTH;
return 0; return 0;
#else #else
} else if(strcasecmp(action, "reject") == 0) { } else if (strcasecmp(action, "reject") == 0 ||
SCLogError(SC_ERR_LIBNET_REQUIRED_FOR_ACTION,"Libnet 1.1.x is required for action \"%s\" and is not installed or could not be found",action); strcasecmp(action, "rejectsrc") == 0 ||
return -1; strcasecmp(action, "rejectdst") == 0 ||
} else if(strcasecmp(action, "rejectsrc") == 0) { strcasecmp(action, "rejectboth") == 0)
SCLogError(SC_ERR_LIBNET_REQUIRED_FOR_ACTION,"Libnet 1.1.x is required for action \"%s\" and is not installed or could not be found",action); {
return -1; SCLogError(SC_ERR_LIBNET_REQUIRED_FOR_ACTION, "Libnet 1.1.x is "
} else if(strcasecmp(action, "rejectdst") == 0) { "required for action \"%s\" but is not compiled into Suricata",
SCLogError(SC_ERR_LIBNET_REQUIRED_FOR_ACTION,"Libnet 1.1.x is required for action \"%s\" and is not installed or could not be found",action); action);
return -1;
} else if(strcasecmp(action, "rejectboth") == 0) {
SCLogError(SC_ERR_LIBNET_REQUIRED_FOR_ACTION,"Libnet 1.1.x is required for action \"%s\" and is not installed or could not be found",action);
return -1; return -1;
#endif /* HAVE_LIBNET11 */ #endif /* HAVE_LIBNET11 */
} else { } else {

Loading…
Cancel
Save