Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 80ce111 in mainline


Ignore:
Timestamp:
2010-02-16T18:08:45Z (12 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master
Children:
01a9ef5
Parents:
a70bda4
Message:
  • dummy Ethernet fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/eth/eth.c

    ra70bda4 r80ce111  
    585585                if( ! padding ) return ENOMEM;
    586586                bzero( padding, ETH_MIN_TAGGED_CONTENT( flags ) - length );
    587         }
    588         if( IS_DUMMY( flags )){
    589                 preamble = PACKET_PREFIX( packet, eth_preamble_t );
    590                 if( ! preamble ) return ENOMEM;
    591                 for( i = 0; i < 7; ++ i ) preamble->preamble[ i ] = ETH_PREAMBLE;
    592                 preamble->sfd = ETH_SFD;
    593587        }
    594588        if( IS_DIX( flags )){
     
    623617        }
    624618        if( IS_DUMMY( flags )){
     619                preamble = PACKET_PREFIX( packet, eth_preamble_t );
     620                if( ! preamble ) return ENOMEM;
     621                for( i = 0; i < 7; ++ i ) preamble->preamble[ i ] = ETH_PREAMBLE;
     622                preamble->sfd = ETH_SFD;
    625623                fcs = PACKET_SUFFIX( packet, eth_fcs_t );
    626624                if( ! fcs ) return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.