# */
#
-# $Id: Makefile,v 1.17 2000/07/17 11:59:46 root Exp root $
+# $Id: Makefile,v 1.18 2000/07/23 19:07:49 root Exp $
#
# $Log: Makefile,v $
+# Revision 1.18 2000/07/23 19:07:49 root
+# #
+#
# Revision 1.17 2000/07/17 11:59:46 root
# #
#
################# NO USER SERVICABLE PARTS BELOW HERE
-VERSION=1.4
+VERSION=1.5
COFLAGS = -l
*/
-static char rcsid[] = "$Id: client.c,v 1.17 2000/07/17 10:49:20 root Exp $";
+static char rcsid[] =
+ "$Id: client.c,v 1.20 2000/07/29 23:25:25 root Exp root $";
/*
* $Log: client.c,v $
+ * Revision 1.20 2000/07/29 23:25:25 root
+ * #
+ *
+ * Revision 1.19 2000/07/23 19:14:19 root
+ * #
+ *
+ * Revision 1.18 2000/07/23 19:07:49 root
+ * #
+ *
* Revision 1.17 2000/07/17 10:49:20 root
* #
*
f = c->file;
+ p->datalen = 0; /* Some buggy clients request
+ * blocks after the end when
+ * they get confused */
+
if ((!f) || (NOTINRANGE (f->sblock, c->blocknum, f->eblock)))
{
if ((f) && (f->f))
*/
-static char rcsid[] = "$Id: config.c,v 1.10 2000/07/17 10:49:20 root Exp $";
+static char rcsid[] =
+ "$Id: config.c,v 1.13 2000/07/29 23:25:25 root Exp root $";
/*
* $Log: config.c,v $
+ * Revision 1.13 2000/07/29 23:25:25 root
+ * #
+ *
+ * Revision 1.12 2000/07/23 19:14:19 root
+ * #
+ *
+ * Revision 1.11 2000/07/23 19:07:49 root
+ * #
+ *
* Revision 1.10 2000/07/17 10:49:20 root
* #
*
*/
-static char rcsid[] = "$Id: llc.c,v 1.10 2000/07/17 11:59:45 root Exp root $";
+static char rcsid[] = "$Id: llc.c,v 1.10 2000/07/17 11:59:45 root Exp $";
/*
* $Log: llc.c,v $
*/
/*
- * $Id: project.h,v 1.14 2000/07/17 11:59:45 root Exp root $
+ * $Id: project.h,v 1.15 2000/07/23 19:14:19 root Exp $
*
* $Log: project.h,v $
+ * Revision 1.15 2000/07/23 19:14:19 root
+ * #
+ *
* Revision 1.14 2000/07/17 11:59:45 root
* #
*
#define MY_FRAME_LEN 1500
#define MY_BLOCK_LEN 1440 /*quad word aligned */
-#define MY_PACING 1000
+#define MY_PACING 10000
#define CONFIG_FILE "/etc/rpld.conf"
static char rcsid[] =
- "$Id: protocol.c,v 1.16 2000/07/17 11:59:45 root Exp root $";
+ "$Id: protocol.c,v 1.19 2000/07/29 23:25:25 root Exp root $";
/*
* $Log: protocol.c,v $
+ * Revision 1.19 2000/07/29 23:25:25 root
+ * #
+ *
+ * Revision 1.18 2000/07/29 23:20:02 root
+ * #
+ *
+ * Revision 1.17 2000/07/23 19:07:49 root
+ * #
+ *
* Revision 1.16 2000/07/17 11:59:45 root
* #
*
}
else
{
- out.addr.flags = RPL_AD_FLAGS_MORE;
+ if (c->nospew)
+ out.addr.flags = RPL_AD_FLAGS_ASK_MORE;
+ else
+ out.addr.flags = RPL_AD_FLAGS_MORE;
}
/*
- * $Id: rpl.h,v 1.11 2000/07/17 10:43:34 root Exp $
+ * $Id: rpl.h,v 1.12 2000/07/29 23:25:25 root Exp $
*
* $Log: rpl.h,v $
+ * Revision 1.12 2000/07/29 23:25:25 root
+ * #
+ *
* Revision 1.11 2000/07/17 10:43:34 root
* #
*
#define RPL_FL_IDENT (1L << 9)
#define RPL_FL_ADDR (1L << 10)
+#define RPL_AD_FLAGS_ASK_MORE 0x10
#define RPL_AD_FLAGS_MORE 0x20
#define RPL_AD_FLAGS_DONE 0xc0
*/
-static char rcsid[] =
- "$Id: rpld.c,v 1.17 2000/07/17 11:59:45 root Exp root $";
+static char rcsid[] = "$Id: rpld.c,v 1.19 2000/07/29 23:20:02 root Exp $";
/*
* $Log: rpld.c,v $
+ * Revision 1.19 2000/07/29 23:20:02 root
+ * #
+ *
+ * Revision 1.18 2000/07/23 19:14:19 root
+ * #
+ *
* Revision 1.17 2000/07/17 11:59:45 root
* #
*
static unsigned char RPL_MC_ADDR[ETH_ALEN] = { 0x3, 0x0, 0x2, 0x0, 0x0, 0x0 };
int downloading = 0;
-int pacing = 1000;
+int pacing = 10000;
int
main (argc, argv)
#define yyerrok (yyerrflag=0)
#define YYRECOVERING (yyerrflag!=0)
#define YYPREFIX "yy"
-#line 74 "rpld_conf.y"
+#line 77 "rpld_conf.y"
-static char rcsid[]="$Id: rpld_conf.y,v 1.6 2000/07/17 11:59:45 root Exp root $";
+static char rcsid[]="$Id: rpld_conf.y,v 1.7 2000/07/23 19:14:19 root Exp $";
#include "project.h"
/*void process_thing(THING thing, char *name, int type, YYSTYPE *pvalue);*/
-#line 90 "rpld_conf.y"
+#line 93 "rpld_conf.y"
typedef union {
long number;
char *name;
short yyss[YYSTACKSIZE];
YYSTYPE yyvs[YYSTACKSIZE];
#define yystacksize YYSTACKSIZE
-#line 128 "rpld_conf.y"
+#line 131 "rpld_conf.y"
//
// ERROR REPORTING
pc->blocklen=MY_BLOCK_LEN;
pc->framelen=MY_FRAME_LEN;
+ pc->pacing=MY_PACING;
state = HOSTBLOCK;
break;
}
-#line 467 "rpld_conf.tab.c"
+#line 468 "rpld_conf.tab.c"
#define YYABORT goto yyabort
#define YYREJECT goto yyabort
#define YYACCEPT goto yyaccept
switch (yyn)
{
case 3:
-#line 109 "rpld_conf.y"
+#line 112 "rpld_conf.y"
{ process_thing(BLOCK_END, "", 0, NULL); }
break;
case 4:
-#line 110 "rpld_conf.y"
+#line 113 "rpld_conf.y"
{ process_thing(BLOCK_END, "", 0, NULL); }
break;
case 5:
-#line 112 "rpld_conf.y"
+#line 115 "rpld_conf.y"
{ process_thing(BLOCK_START, yyvsp[-1].name, 0, NULL); }
break;
case 6:
-#line 113 "rpld_conf.y"
+#line 116 "rpld_conf.y"
{ process_thing(BLOCK_START, "", 0, NULL); }
break;
case 10:
-#line 120 "rpld_conf.y"
+#line 123 "rpld_conf.y"
{ process_thing(ASSERTION, yyvsp[0].name, 0, NULL); }
break;
case 11:
-#line 121 "rpld_conf.y"
+#line 124 "rpld_conf.y"
{ process_thing(ASSIGNMENT, yyvsp[-2].name, TEXT, &yyvsp[0]); }
break;
case 12:
-#line 122 "rpld_conf.y"
+#line 125 "rpld_conf.y"
{ process_thing(ASSIGNMENT, yyvsp[-2].name, NUMBER, &yyvsp[0]); }
break;
case 13:
-#line 123 "rpld_conf.y"
+#line 126 "rpld_conf.y"
{ process_thing(ASSIGNMENT, yyvsp[-2].name, MACADDR, &yyvsp[0]); }
break;
case 14:
-#line 124 "rpld_conf.y"
+#line 127 "rpld_conf.y"
{ process_thing(ASSIGNMENT, yyvsp[-2].name, MACADDR_PARTIAL, &yyvsp[0]); }
break;
-#line 644 "rpld_conf.tab.c"
+#line 645 "rpld_conf.tab.c"
}
yyssp -= yym;
yystate = *yyssp;
* YACC grammar for RPLD conf file parser
*
* $Log: rpld_conf.y,v $
+ * Revision 1.7 2000/07/23 19:14:19 root
+ * #
+ *
* Revision 1.6 2000/07/17 11:59:45 root
* #
*
%{
-static char rcsid[]="$Id: rpld_conf.y,v 1.6 2000/07/17 11:59:45 root Exp root $";
+static char rcsid[]="$Id: rpld_conf.y,v 1.7 2000/07/23 19:14:19 root Exp $";
#include "project.h"
pc->blocklen=MY_BLOCK_LEN;
pc->framelen=MY_FRAME_LEN;
+ pc->pacing=MY_PACING;
state = HOSTBLOCK;
break;