This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ethernet header size


I don't have a copy of the TCP/IP redbook handy at the moment.  It's at
home.

So, I was wondering.  I have the code below for the ethernet driver for
the WaveLAN card.  What should TM_ETHER_HEADER_SIZE be defined as?  I
thought it was around 32 bytes or something, but I can't remember.

        if((dp->rx_frame.wi_dat_len +
           TM_ETHER_HEADER_SIZE) > 0x600) {
             diag_printf("oversized packet received "
                    "(wi_dat_len=%d, wi_status=0x%x)\n",
                    dp->rx_frame.wi_dat_len, dp->rx_frame.wi_status);

Trenton D. Adams
Extreme Engineering
#17, 6025 - 12 St. SE
Calgary, Alberta, Canada
T2H 2K1

Phone: 403 640 9494 ext-208
Fax: 403 640 9599

http://www.extremeeng.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]