Changeset 8a9a41e in mainline for uspace/srv/net/inetsrv/ntrans.c
- Timestamp:
- 2021-10-24T08:28:43Z (3 years ago)
- Children:
- baa3834
- Parents:
- 2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
- git-committer:
- GitHub <noreply@…> (2021-10-24 08:28:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/ntrans.c
r2ce943a r8a9a41e 1 1 /* 2 * Copyright (c) 2021 Jiri Svoboda 2 3 * Copyright (c) 2013 Antonin Steinhauser 3 4 * All rights reserved. … … 38 39 #include <errno.h> 39 40 #include <fibril_synch.h> 41 #include <inet/eth_addr.h> 40 42 #include <inet/iplink_srv.h> 41 43 #include <stdlib.h> … … 73 75 * 74 76 */ 75 errno_t ntrans_add(addr128_t ip_addr, addr48_tmac_addr)77 errno_t ntrans_add(addr128_t ip_addr, eth_addr_t *mac_addr) 76 78 { 77 79 inet_ntrans_t *ntrans; … … 83 85 84 86 addr128(ip_addr, ntrans->ip_addr); 85 addr48(mac_addr, ntrans->mac_addr);87 ntrans->mac_addr = *mac_addr; 86 88 87 89 fibril_mutex_lock(&ntrans_list_lock); … … 134 136 * 135 137 */ 136 errno_t ntrans_lookup(addr128_t ip_addr, addr48_tmac_addr)138 errno_t ntrans_lookup(addr128_t ip_addr, eth_addr_t *mac_addr) 137 139 { 138 140 fibril_mutex_lock(&ntrans_list_lock); … … 144 146 145 147 fibril_mutex_unlock(&ntrans_list_lock); 146 addr48(ntrans->mac_addr, mac_addr);148 *mac_addr = ntrans->mac_addr; 147 149 return EOK; 148 150 }
Note:
See TracChangeset
for help on using the changeset viewer.