Changeset f05edcb in mainline for uspace/srv/net/ethip/ethip_nic.c
- Timestamp:
- 2021-08-08T08:28:24Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d5ed54b
- Parents:
- 98a935e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/ethip_nic.c
r98a935e rf05edcb 1 1 /* 2 * Copyright (c) 20 12Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 193 193 } 194 194 195 addr48(nic_address.address,nic->mac_addr);195 mac48_decode(nic_address.address, &nic->mac_addr); 196 196 197 197 rc = nic_set_state(nic->sess, NIC_STATE_ACTIVE); … … 400 400 401 401 addr48_t mac; 402 addr48_solicited_node(v6, mac);402 addr48_solicited_node(v6, &mac); 403 403 404 404 /* Avoid duplicate addresses in the list */ … … 407 407 408 408 for (size_t j = 0; j < i; j++) { 409 if (addr48_compare(mac_list[j].address, mac)) { 409 addr48_t mac_entry; 410 mac48_decode(mac_list[j].address, &mac_entry); 411 if (addr48_compare(&mac_entry, &mac)) { 410 412 found = true; 411 413 break; … … 414 416 415 417 if (!found) { 416 addr48(mac, mac_list[i].address);418 mac48_encode(&mac, mac_list[i].address); 417 419 i++; 418 } else 420 } else { 419 421 count--; 422 } 420 423 } 421 424
Note:
See TracChangeset
for help on using the changeset viewer.