Changes in uspace/srv/net/inetsrv/ndp.c [1d94e21:08ed137] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/ndp.c
r1d94e21 r08ed137 38 38 #include <mem.h> 39 39 #include <malloc.h> 40 #include <io/log.h>41 40 #include <net/socket_codes.h> 42 41 #include "ntrans.h" … … 55 54 {0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0}; 56 55 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 56 static void ndp_solicited_node_mac(addr128_t ip_addr, addr48_t mac_addr) 64 57 { … … 67 60 } 68 61 69 /** Compute solicited node IPv6 multicast address from target IPv6 address70 *71 * @param ip_addr Target IPv6 address72 * @param ip_solicited Solicited IPv6 address to be assigned73 *74 */75 62 static void ndp_solicited_node_ip(addr128_t ip_addr, 76 63 addr128_t ip_solicited) … … 101 88 int ndp_received(inet_dgram_t *dgram) 102 89 { 103 log_msg(LOG_DEFAULT, LVL_DEBUG, "ndp_received()");104 105 90 ndp_packet_t packet; 106 91 int rc = ndp_pdu_decode(dgram, &packet); … … 115 100 116 101 inet_addrobj_t *laddr; 117 118 log_msg(LOG_DEFAULT, LVL_DEBUG, "NDP PDU decoded; opcode: %d",119 packet.opcode);120 102 121 103 switch (packet.opcode) { … … 156 138 } 157 139 158 /** Translate IPv6 to MAC address159 *160 * @param src Source IPv6 address161 * @param dest Destination IPv6 address162 * @param mac Target MAC address to be assigned163 * @param link Network interface164 *165 * @return EOK on success166 * @return ENOENT when NDP translation failed167 *168 */169 140 int ndp_translate(addr128_t src_addr, addr128_t ip_addr, addr48_t mac_addr, 170 141 inet_link_t *ilink)
Note:
See TracChangeset
for help on using the changeset viewer.