Index: bootp.c =================================================================== RCS file: /home/ncvs/src/lib/libstand/bootp.c,v retrieving revision 1.6 diff -u -r1.6 bootp.c --- bootp.c 9 Jan 2007 01:02:03 -0000 1.6 +++ bootp.c 2 May 2007 17:52:23 -0000 @@ -319,6 +319,14 @@ if (bcmp(vm_rfc1048, bp->bp_vend, sizeof(vm_rfc1048)) == 0) { if(vend_rfc1048(bp->bp_vend, sizeof(bp->bp_vend)) != 0) goto bad; + /* XXX DECRU: Ignore DHCP packets without rootpath */ + printf("XXX DECRU: Rootpath %s len %d\n", rootpath, strlen(rootpath)); + /* Default rootpath is "/" */ + if(strlen(rootpath) <= 1) { + printf("XXX DECRU: Rejected DHCP response due to no rootpath\n"); + goto bad; + } + } #ifdef BOOTP_VEND_CMU else if (bcmp(vm_cmu, bp->bp_vend, sizeof(vm_cmu)) == 0)