Changeset b4edc96 in mainline for uspace/srv/net/ethip/ethip_nic.c
- Timestamp:
- 2021-08-08T09:20:20Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e6bca8
- Parents:
- d5ed54b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/ethip_nic.c
rd5ed54b rb4edc96 37 37 #include <adt/list.h> 38 38 #include <async.h> 39 #include <stdbool.h>40 39 #include <errno.h> 41 #include <str_error.h>42 40 #include <fibril_synch.h> 41 #include <inet/eth_addr.h> 43 42 #include <inet/iplink_srv.h> 44 43 #include <io/log.h> 45 44 #include <loc.h> 45 #include <mem.h> 46 46 #include <nic_iface.h> 47 #include <stdbool.h> 47 48 #include <stdlib.h> 48 #include < mem.h>49 #include <str_error.h> 49 50 #include "ethip.h" 50 51 #include "ethip_nic.h" … … 193 194 } 194 195 195 mac48_decode(nic_address.address, &nic->mac_addr);196 eth_addr_decode(nic_address.address, &nic->mac_addr); 196 197 197 198 rc = nic_set_state(nic->sess, NIC_STATE_ACTIVE); … … 399 400 assert(i < count); 400 401 401 addr48_t mac;402 addr48_solicited_node(v6, &mac);402 eth_addr_t mac; 403 eth_addr_solicited_node(v6, &mac); 403 404 404 405 /* Avoid duplicate addresses in the list */ … … 407 408 408 409 for (size_t j = 0; j < i; j++) { 409 addr48_t mac_entry;410 mac48_decode(mac_list[j].address, &mac_entry);411 if ( addr48_compare(&mac_entry, &mac)) {410 eth_addr_t mac_entry; 411 eth_addr_decode(mac_list[j].address, &mac_entry); 412 if (eth_addr_compare(&mac_entry, &mac)) { 412 413 found = true; 413 414 break; … … 416 417 417 418 if (!found) { 418 mac48_encode(&mac, mac_list[i].address);419 eth_addr_encode(&mac, mac_list[i].address); 419 420 i++; 420 421 } else {
Note:
See TracChangeset
for help on using the changeset viewer.