]> SAFE projects GIT repository - jmp/mailleur/commitdiff
investiguating prepbing procedure
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 21 Jun 2025 23:12:05 +0000 (19:12 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 21 Jun 2025 23:12:05 +0000 (19:12 -0400)
lib/modrec.c

index 45ae919fed75448276b3bdaa32d0cbc1db72a1f0..18a7d1b4d4499cde696e7e159061b3b4e60cd1bb 100644 (file)
@@ -21,8 +21,6 @@
 #include        "lvleml.h"
 #include        "modrec.h"
 
-#define DFLTIP  "127.0.10.25"   //smtp test IP
-#define SMTPORT "1025"          //smtp test port
 /*
 \f
 */
@@ -46,8 +44,10 @@ static int prepbinding(SOCPTR ***bindings,int argc,char *argv[])
 {
 #define OPEP    "moderec.c:prepbinding"
 #define DIP     "0.0.0.0"
+#define DPORT   "25"
 
 *bindings=(SOCPTR **)0;
+(void) rou_alert(0,"%s JMPDBG argc='%d'",OPEP,argc);
 for (int i=0;i<argc;i++) {
   int iteration;
   PROTYP proto;
@@ -61,8 +61,8 @@ for (int i=0;i<argc;i++) {
   iteration=1;
   proto=pro_smtp; 
   ipnum=DIP;
-  port=SMTPORT;
-  (void) rou_alert(0,"JMPDBG argv[%d]=<%s>",i,argv[i]);
+  port=DPORT;
+  (void) rou_alert(0,"%s JMPDBG argv[%d]=<%s>",OPEP,i,argv[i]);
   for (int j=0;j<3;j++) {
     char *sofar;
 
@@ -81,6 +81,7 @@ for (int i=0;i<argc;i++) {
       case 1    :
         if (strlen(ptr)>0)
           ipnum=ptr;
+        (void) rou_alert(0,"JMPDBG ipnum[%s]",ipnum);
         break;
       case 2    :
         if (strlen(ptr)>0) 
@@ -98,6 +99,7 @@ for (int i=0;i<argc;i++) {
   }
 return rou_nbrlist(*bindings);
 
+#undef  DPORt
 #undef  DIP
 #undef  OPEP
 }