dhcpd/dhcpd.patch

Fri, 13 Apr 2012 18:48:23 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 13 Apr 2012 18:48:23 +0200
changeset 418
680c3f7768b0
permissions
-rw-r--r--

Correct various structure and architecture problems in code including:
use functions from ISO C stdio requires cstdio header,
include sockio header only in platforms where it's present,
touch random number seeder logic on X86-64 platforms as well as IA-32,
and hopefully use all 64 bits of register as it would seem that more
like 'asm("rdtsc" : "=a" (lowtick), "=d" (hitick));' is needed instead.

     1 Index: common/bpf.c
     2 --- common/bpf.c.orig	2009-11-20 02:48:59.000000000 +0100
     3 +++ common/bpf.c	2010-11-27 09:53:47.000000000 +0100
     4 @@ -580,6 +580,9 @@
     5  	 */
     6          switch (sa->sdl_type) {
     7                  case IFT_ETHER:
     8 +#ifdef IFT_L2VLAN
     9 +                case IFT_L2VLAN:
    10 +#endif
    11                          hw->hlen = sa->sdl_alen + 1;
    12                          hw->hbuf[0] = HTYPE_ETHER;
    13                          memcpy(&hw->hbuf[1], LLADDR(sa), sa->sdl_alen);

mercurial