#using gdb
dbgfeed : debug
- @ gdb --args \
+ @ gdb \
+ --args \
bin/feeder \
-f \
-d2 \
@ echo "application compiled in '$@' mode now ready"
prod :
- @ $(MAKE) OPTIME="-g2" exe
+ @ $(MAKE) OPTIME="-O3" exe
@ echo "application compiled in '$@' mode now ready"
exe :
#--------------------------------------------------------------------
#definitions
#--------------------------------------------------------------------
-CC = gcc
-LD = gcc
+CC = gcc
+LD = gcc -g
CFLAGS = -I ../lib -Wall $(OPTIME)
LIBMAIL = ../lib/libmail.a
LIBS = $(LIBMAIL) \
(void) prc_locking(appname,false,1);
break;
case 4 : //doing main task
+ (void) rou_loadconfig(config,false);
(void) prc_cleantitle();
params=par_freeparams(params);
(void) sig_trapsignal(false,sig_alrm);
(void) sig_modeunisig(false);
(void) prc_modeuniprc(false);
(void) rou_modesubrou(false);
- (void) rou_loadconfig(config,false);
break;
default : //end of task
proceed=false;
#-restarting link
L:first restart link
R:220 mailleur.example.com ESMTP (cleartext) emlrcvr...
+S:ORGN 127.168.0.1
+R:250 2.9.9 New peer [127.168.0.1/No.Reverse] set
+S:ORGN 192.219.254.203
+R:250 2.9.9 New peer [192.219.254.203/mailprod0.safe.ca] set
S:QUIT
R:221 2.0.0 Bye, closing connection...
#-------------------------------------------------------------------------
static void doorgn(CONTYP *contact,char *newip)
{
-#define OPEP "lvleml.c:dorgn"
+#define OPEP "lvleml.c:doorgn,"
struct addrinfo *res;
int phase;
//(void) rou_alert(0,"JMPDBG %s phase='%d' parm=<%s>",OPEP,phase,newip);
switch (phase) {
case 0 : //checking if we have a parameter
+ while ((*newip==' ')||(*newip=='\t'))
+ newip++; //removing unneeded space
if (strlen(newip)==0) {
(void) rou_alert(0,"%s, newip not specified (debug?)",OPEP);
phase=999; //No need to go further
(void) rou_alert(0,"%s, Unexpected namestat='%d' (IP=<%s>) (bug?)",
OPEP,namestat,newip);
(void) transmit(contact,"%d 5.5.4 Bug! with <%s>",BADPAR,newip);
+ phase=999; //Trouble trouble
break;
}
}
}
if (res!=(struct addrinfo *)0)
(void) freeaddrinfo(res);
+
#undef OPEP
}
/*