Changeset 330df83 in mainline for uspace/srv/net/inetsrv/ndp.c
- Timestamp:
- 2013-07-19T20:42:57Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4cbf9dd
- Parents:
- 8a8a08d1 (diff), cd18cd1 (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
r8a8a08d1 r330df83 38 38 #include <mem.h> 39 39 #include <malloc.h> 40 #include <io/log.h> 40 41 #include <net/socket_codes.h> 41 42 #include "ntrans.h" … … 54 55 {0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0}; 55 56 57 /** Compute solicited node MAC multicast address from target IPv6 address 58 * 59 * @param ip_addr Target IPv6 address 60 * @param mac_addr Solicited MAC address to be assigned 61 * 62 */ 56 63 static void ndp_solicited_node_mac(addr128_t ip_addr, addr48_t mac_addr) 57 64 { … … 60 67 } 61 68 69 /** Compute solicited node IPv6 multicast address from target IPv6 address 70 * 71 * @param ip_addr Target IPv6 address 72 * @param ip_solicited Solicited IPv6 address to be assigned 73 * 74 */ 62 75 static void ndp_solicited_node_ip(addr128_t ip_addr, 63 76 addr128_t ip_solicited) … … 88 101 int ndp_received(inet_dgram_t *dgram) 89 102 { 103 log_msg(LOG_DEFAULT, LVL_DEBUG, "ndp_received()"); 104 90 105 ndp_packet_t packet; 91 106 int rc = ndp_pdu_decode(dgram, &packet); … … 100 115 101 116 inet_addrobj_t *laddr; 117 118 log_msg(LOG_DEFAULT, LVL_DEBUG, "NDP PDU decoded; opcode: %d", 119 packet.opcode); 102 120 103 121 switch (packet.opcode) { … … 138 156 } 139 157 158 /** Translate IPv6 to MAC address 159 * 160 * @param src Source IPv6 address 161 * @param dest Destination IPv6 address 162 * @param mac Target MAC address to be assigned 163 * @param link Network interface 164 * 165 * @return EOK on success 166 * @return ENOENT when NDP translation failed 167 * 168 */ 140 169 int ndp_translate(addr128_t src_addr, addr128_t ip_addr, addr48_t mac_addr, 141 170 inet_link_t *ilink)
Note:
See TracChangeset
for help on using the changeset viewer.