Ignore:
File:
1 edited

Legend:

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

    redeee9f rec7902d  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2013 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libinet
     29/** @addtogroup libc
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef LIBINET_INET_ADDR_H
    36 #define LIBINET_INET_ADDR_H
     35#ifndef _LIBC_INET_ADDR_H_
     36#define _LIBC_INET_ADDR_H_
    3737
    3838#include <errno.h>
    39 #include <inet/eth_addr.h>
    4039#include <stdint.h>
    4140
    4241typedef uint32_t addr32_t;
    43 
     42typedef uint8_t addr48_t[6];
    4443typedef uint8_t addr128_t[16];
    4544
     
    7978
    8079extern const addr32_t addr32_broadcast_all_hosts;
     80extern const addr48_t addr48_broadcast;
    8181
     82extern void addr48(const addr48_t, addr48_t);
    8283extern void addr128(const addr128_t, addr128_t);
    8384
     85extern int addr48_compare(const addr48_t, const addr48_t);
    8486extern int addr128_compare(const addr128_t, const addr128_t);
    85 extern void eth_addr_solicited_node(const addr128_t, eth_addr_t *);
     87
     88extern void addr48_solicited_node(const addr128_t, addr48_t);
    8689
    8790extern void host2addr128_t_be(const addr128_t, addr128_t);
Note: See TracChangeset for help on using the changeset viewer.