[Olsr-cvs] olsrd-current/src/win32 kernel_routes.c,1.16,1.17
Thomas Lopatic
(spam-protected)
Tue Mar 27 13:08:10 CEST 2007
Update of /cvsroot/olsrd/olsrd-current/src/win32
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29814
Modified Files:
kernel_routes.c
Log Message:
Don't report legitimate ERROR_NOT_FOUND when updating routes.
Index: kernel_routes.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/win32/kernel_routes.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** kernel_routes.c 26 Mar 2007 15:33:44 -0000 1.16
--- kernel_routes.c 27 Mar 2007 11:08:08 -0000 1.17
***************
*** 86,92 ****
Res = SetIpForwardEntry(&Row);
! if (Res != NO_ERROR)
{
fprintf(stderr, "SetIpForwardEntry() = %08lx, %s", Res, StrError(Res));
Res = CreateIpForwardEntry(&Row);
}
--- 86,93 ----
Res = SetIpForwardEntry(&Row);
! if (Res != NO_ERROR && Res != ERROR_NOT_FOUND)
{
fprintf(stderr, "SetIpForwardEntry() = %08lx, %s", Res, StrError(Res));
+
Res = CreateIpForwardEntry(&Row);
}
More information about the Olsr-cvs
mailing list