Changeset f94b24c8 in mainline for uspace/srv/net/inetsrv/ndp.c
- Timestamp:
- 2013-07-29T13:54:20Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1c95da
- Parents:
- 09d6695 (diff), ccdc63e (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/ndp.c
r09d6695 rf94b24c8 49 49 #define NDP_REQUEST_TIMEOUT (3 * 1000 * 1000) 50 50 51 static addr48_t solicited_node_mac =52 {0x33, 0x33, 0xff, 0, 0, 0};53 54 51 static addr128_t solicited_node_ip = 55 52 {0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0}; 56 57 /** Compute solicited node MAC multicast address from target IPv6 address58 *59 * @param ip_addr Target IPv6 address60 * @param mac_addr Solicited MAC address to be assigned61 *62 */63 static void ndp_solicited_node_mac(addr128_t ip_addr, addr48_t mac_addr)64 {65 memcpy(mac_addr, solicited_node_mac, 3);66 memcpy(mac_addr + 3, ip_addr + 13, 3);67 }68 53 69 54 /** Compute solicited node IPv6 multicast address from target IPv6 address … … 186 171 addr128(src_addr, packet.sender_proto_addr); 187 172 addr128(ip_addr, packet.solicited_ip); 188 ndp_solicited_node_mac(ip_addr, packet.target_hw_addr);173 addr48_solicited_node(ip_addr, packet.target_hw_addr); 189 174 ndp_solicited_node_ip(ip_addr, packet.target_proto_addr); 190 175
Note:
See TracChangeset
for help on using the changeset viewer.