On Sat, 28 Oct 2006 20:04:38 +0200
efphe wrote:

We need also to modify "err_errno.c"

### BEGIN CODE ###
/**/
    "Error sending pkt.",           /* ERR_SKTSEN */
    "Error receiving pkt.",           /* ERR_SKTREC */
    "Connection error.",           /* ERR_SKTCON */
### END CODE ###

Put these four lines *after the line*:

### BEGIN CODE ###
    "Zlib compression is useless.",     /* ERR_ZLIBNU */
### END CODE ###

It's in err_errno.c:61

Pardon: it's difficult to debug with mails.
efphe


> 
> On Sat, 28 Oct 2006 19:56:33 +0200
> efphe wrote:
> > 
> >  Replace the entire function with:
> > 
> > ########## BEGIN CODE ########################################
> > int ns_general_send(char *msg,int msglen,char *answer,int anslen) {
> >         int res,i;
> >         char buf[2000];
> > 
> >         for (i=0; i<_andns_ns_count_;i++) {
> >         res=ai_send_recv_close(_andns_ns_[i],msg,msglen,
> >                 answer,anslen,0,0,ANDNS_TIMEOUT);
> >                 if (res<0) {
> >                     if (res==-1) {
> >                         err_ret(ERR_SKTCON,-1);}
> >                     else if (res==-2) {
> >                         err_ret(ERR_SKTSEN,-1);}
> >                     else if (res==-3) {
> >                         err_ret(ERR_SKTREC,-1);}
> >                 }
> >                 else
> >                     return res;
> > 
> >         }
> >         return 0;
> > }
> > ######### END CODE ############################
> 
> 
> Yes,
> 
> i'm speaking with myself Oo
> Debugging the debugging
> 
> remove the declaration:
>       char buf[2000];
> 
> from the function ns_general_send()
> 
> _______________________________________________
> Netsukuku mailing list
> [email protected]
> http://lists.dyne.org/mailman/listinfo/netsukuku
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku

Reply via email to