Changes in uspace/srv/net/inetsrv/inet_link.c [c3b25985:f303f2cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inet_link.c
rc3b25985 rf303f2cf 55 55 56 56 static int inet_iplink_recv(iplink_t *, iplink_recv_sdu_t *, ip_ver_t); 57 static int inet_iplink_change_addr(iplink_t *, addr48_t);58 57 static inet_link_t *inet_link_get_by_id_locked(sysarg_t); 59 58 60 59 static iplink_ev_ops_t inet_iplink_ev_ops = { 61 .recv = inet_iplink_recv, 62 .change_addr = inet_iplink_change_addr, 60 .recv = inet_iplink_recv 63 61 }; 64 62 … … 112 110 113 111 return rc; 114 }115 116 static int inet_iplink_change_addr(iplink_t *iplink, addr48_t mac)117 {118 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_change_addr(): "119 "new addr=%02x:%02x:%02x:%02x:%02x:%02x",120 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);121 122 list_foreach(inet_links, link_list, inet_link_t, ilink) {123 if (ilink->sess == iplink->sess)124 memcpy(&ilink->mac, mac, sizeof(addr48_t));125 }126 127 return EOK;128 112 } 129 113
Note:
See TracChangeset
for help on using the changeset viewer.