Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/ndp.c

    r1d94e21 r08ed137  
    3838#include <mem.h>
    3939#include <malloc.h>
    40 #include <io/log.h>
    4140#include <net/socket_codes.h>
    4241#include "ntrans.h"
     
    5554    {0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0};
    5655
    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  */
    6356static void ndp_solicited_node_mac(addr128_t ip_addr, addr48_t mac_addr)
    6457{
     
    6760}
    6861
    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  */
    7562static void ndp_solicited_node_ip(addr128_t ip_addr,
    7663    addr128_t ip_solicited)
     
    10188int ndp_received(inet_dgram_t *dgram)
    10289{
    103         log_msg(LOG_DEFAULT, LVL_DEBUG, "ndp_received()");
    104        
    10590        ndp_packet_t packet;
    10691        int rc = ndp_pdu_decode(dgram, &packet);
     
    115100       
    116101        inet_addrobj_t *laddr;
    117        
    118         log_msg(LOG_DEFAULT, LVL_DEBUG, "NDP PDU decoded; opcode: %d",
    119             packet.opcode);
    120102       
    121103        switch (packet.opcode) {
     
    156138}
    157139
    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  */
    169140int ndp_translate(addr128_t src_addr, addr128_t ip_addr, addr48_t mac_addr,
    170141    inet_link_t *ilink)
Note: See TracChangeset for help on using the changeset viewer.