Changeset d5c1051 in mainline for uspace/lib/nic/src
- Timestamp:
- 2017-12-20T22:25:34Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39b54fe
- Parents:
- 8610c2c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:22:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:25:34)
- Location:
- uspace/lib/nic/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_addr_db.c
r8610c2c rd5c1051 223 223 * @return true if the address is in the db, false otherwise 224 224 */ 225 intnic_addr_db_contains(const nic_addr_db_t *db, const uint8_t *addr)225 bool nic_addr_db_contains(const nic_addr_db_t *db, const uint8_t *addr) 226 226 { 227 227 assert(db && addr); -
uspace/lib/nic/src/nic_driver.c
r8610c2c rd5c1051 521 521 fibril_rwlock_read_lock(&nic_data->rxc_lock); 522 522 nic_frame_type_t frame_type; 523 intcheck = nic_rxc_check(&nic_data->rx_control, frame->data,523 bool check = nic_rxc_check(&nic_data->rx_control, frame->data, 524 524 frame->size, &frame_type); 525 525 fibril_rwlock_read_unlock(&nic_data->rxc_lock); … … 1092 1092 fibril_rwlock_read_unlock(&nic->main_lock); 1093 1093 } 1094 return 0;1094 return EOK; 1095 1095 } 1096 1096 -
uspace/lib/nic/src/nic_rx_control.c
r8610c2c rd5c1051 394 394 * @return True if the frame passes, false if it does not 395 395 */ 396 intnic_rxc_check(const nic_rxc_t *rxc, const void *data, size_t size,396 bool nic_rxc_check(const nic_rxc_t *rxc, const void *data, size_t size, 397 397 nic_frame_type_t *frame_type) 398 398 {
Note:
See TracChangeset
for help on using the changeset viewer.