[Etherboot-developers] bootp_t alignment problem
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Ashish a. <ash...@in...> - 2003-05-02 11:07:50
|
Hello, 1. if anyone looking for 82557 nic driver in etherboot for both endiannes ,i can mail it,also i would be correcting the RXFD and TXFD and command bit as per Linux driver shortly to make it more robust. 2.after receving bootp reply i am facing some problems of struct bootp_t alignment..it starts giving me exception , say if i refer to bootpreply->bp_yiaddr.s_addr . I observed that structure is obtained by folowing code, bootpreply = (struct bootp_t *)&nic.packet[ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr)]; how this alignment problem can be taken care of..I was using in header file, struct bootp_t __attribute__ ((aligned(4))) without any difference. Best Regards, Ashish Anand |