Add default tftp filename
authorChris Tallon <chris@vomp.tv>
Sat, 25 Mar 2006 15:44:22 +0000 (15:44 +0000)
committerChris Tallon <chris@vomp.tv>
Sat, 25 Mar 2006 15:44:22 +0000 (15:44 +0000)
bootpd.c

index 0a98fe0fb300252e25e51f089f38c2d118d448f9..777e8b23359e7dc50bf70c62fd2dad834344ff9a 100644 (file)
--- a/bootpd.c
+++ b/bootpd.c
@@ -230,8 +230,8 @@ void Bootpd::processRequest(UCHAR* data, int length)
   }
   else
   {
-    data[108] = '-';
-    data[109] = '\0';
+    strncpy((char*)&data[108], "vomp-dongle", 127);
+    config.setValueString("Boot", "TFTP file name", "vomp-dongle");
   }
 
   // set to reply