Changeset 80ce111 in mainline for uspace/srv/net/nil/eth/eth.c
- Timestamp:
- 2010-02-16T18:08:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 01a9ef5
- Parents:
- a70bda4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth.c
ra70bda4 r80ce111 585 585 if( ! padding ) return ENOMEM; 586 586 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;593 587 } 594 588 if( IS_DIX( flags )){ … … 623 617 } 624 618 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; 625 623 fcs = PACKET_SUFFIX( packet, eth_fcs_t ); 626 624 if( ! fcs ) return ENOMEM;
Note:
See TracChangeset
for help on using the changeset viewer.