Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/inet/include/inet/addr.h

    rec7902d redeee9f  
    11/*
    2  * Copyright (c) 2013 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup libinet
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef _LIBC_INET_ADDR_H_
    36 #define _LIBC_INET_ADDR_H_
     35#ifndef LIBINET_INET_ADDR_H
     36#define LIBINET_INET_ADDR_H
    3737
    3838#include <errno.h>
     39#include <inet/eth_addr.h>
    3940#include <stdint.h>
    4041
    4142typedef uint32_t addr32_t;
    42 typedef uint8_t addr48_t[6];
     43
    4344typedef uint8_t addr128_t[16];
    4445
     
    7879
    7980extern const addr32_t addr32_broadcast_all_hosts;
    80 extern const addr48_t addr48_broadcast;
    8181
    82 extern void addr48(const addr48_t, addr48_t);
    8382extern void addr128(const addr128_t, addr128_t);
    8483
    85 extern int addr48_compare(const addr48_t, const addr48_t);
    8684extern int addr128_compare(const addr128_t, const addr128_t);
    87 
    88 extern void addr48_solicited_node(const addr128_t, addr48_t);
     85extern void eth_addr_solicited_node(const addr128_t, eth_addr_t *);
    8986
    9087extern void host2addr128_t_be(const addr128_t, addr128_t);
Note: See TracChangeset for help on using the changeset viewer.