source: trunk/package/busybox/patches/000-upstream-dnsd.patch @ 20904

Last change on this file since 20904 was 20904, checked in by nico, 6 years ago

package/busybox: add 3 upstream fixes, bump release number

File size: 869 bytes
  • include/platform.h

    a b typedef unsigned smalluint; 
    291291#if 1 /* if needed: !defined(arch1) && !defined(arch2) */ 
    292292# define ALIGN1 __attribute__((aligned(1))) 
    293293# define ALIGN2 __attribute__((aligned(2))) 
     294# define ALIGN4 __attribute__((aligned(4))) 
    294295#else 
    295296/* Arches which MUST have 2 or 4 byte alignment for everything are here */ 
    296297# define ALIGN1 
    297298# define ALIGN2 
     299# define ALIGN4 
    298300#endif 
    299301 
    300302 
  • networking/dnsd.c

    a b int dnsd_main(int argc UNUSED_PARAM, cha 
    459459        unsigned lsa_size; 
    460460        int udps, opts; 
    461461        uint16_t port = 53; 
    462         uint8_t buf[MAX_PACK_LEN + 1]; 
     462        /* Ensure buf is 32bit aligned (we need 16bit, but 32bit can't hurt) */ 
     463        uint8_t buf[MAX_PACK_LEN + 1] ALIGN4; 
    463464 
    464465        opts = getopt32(argv, "vi:c:t:p:d", &listen_interface, &fileconf, &sttl, &sport); 
    465466        //if (opts & 0x1) // -v 
Note: See TracBrowser for help on using the repository browser.