*/
/********************************************************/
/* */
+/* Procedure to check the remote ip credibility */
+/* remote ip credibility. */
+/* */
+/********************************************************/
+static void check_credibility(SQLPTR *sqlptr,char **dnsbls,char *rmtip)
+
+{
+#define OPEP "scarmt.c:check_credibilty,"
+
+if (dnsbls!=(char **)0) {
+ while (*dnsbls!=(char *)0) {
+ (void) rou_alert(0,"%s JMPDBG scan <%s> against <%s>",OPEP,rmtip,*dnsbls);
+ dnsbls++;
+ }
+ }
+
+#undef OPEP
+}
+/*
+\f
+*/
+/********************************************************/
+/* */
/* Procedure to load the list of dnsbls server */
/* remote ip credibility. */
/* */
break;
case 4 : //check entries
for (int i=0;rmtip[i]!=(char *)0;i++) {
- (void) rou_alert(0,"%s JMPDBG need to scan <%s>",OPEP,rmtip[i]);
+ (void) check_credibility(sqlptr,dnsbls,rmtip[i]);
if ((hangup==true)||((reload==true)))
break; //No need to check other remote
}