[e2e56e67] | 1 | /*
|
---|
[1bbc6dc] | 2 | * Copyright (c) 2024 Jiri Svoboda
|
---|
[e2e56e67] | 3 | * All rights reserved.
|
---|
| 4 | *
|
---|
| 5 | * Redistribution and use in source and binary forms, with or without
|
---|
| 6 | * modification, are permitted provided that the following conditions
|
---|
| 7 | * are met:
|
---|
| 8 | *
|
---|
| 9 | * - Redistributions of source code must retain the above copyright
|
---|
| 10 | * notice, this list of conditions and the following disclaimer.
|
---|
| 11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
| 12 | * notice, this list of conditions and the following disclaimer in the
|
---|
| 13 | * documentation and/or other materials provided with the distribution.
|
---|
| 14 | * - The name of the author may not be used to endorse or promote products
|
---|
| 15 | * derived from this software without specific prior written permission.
|
---|
| 16 | *
|
---|
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
| 27 | */
|
---|
| 28 |
|
---|
| 29 | /** @addtogroup inet
|
---|
| 30 | * @{
|
---|
| 31 | */
|
---|
| 32 | /**
|
---|
| 33 | * @file
|
---|
| 34 | * @brief
|
---|
| 35 | */
|
---|
| 36 |
|
---|
| 37 | #ifndef INET_LINK_H_
|
---|
| 38 | #define INET_LINK_H_
|
---|
| 39 |
|
---|
[b4edc96] | 40 | #include <inet/eth_addr.h>
|
---|
[8d2dd7f2] | 41 | #include <stddef.h>
|
---|
| 42 | #include <stdint.h>
|
---|
[b4ec1ea] | 43 | #include "inetsrv.h"
|
---|
[ceba4bed] | 44 |
|
---|
[b7fd2a0] | 45 | extern errno_t inet_link_open(service_id_t);
|
---|
| 46 | extern errno_t inet_link_send_dgram(inet_link_t *, addr32_t,
|
---|
[a17356fd] | 47 | addr32_t, inet_dgram_t *, uint8_t, uint8_t, int);
|
---|
[b4edc96] | 48 | extern errno_t inet_link_send_dgram6(inet_link_t *, eth_addr_t *, inet_dgram_t *,
|
---|
[a17356fd] | 49 | uint8_t, uint8_t, int);
|
---|
[45aa22c] | 50 | extern inet_link_t *inet_link_get_by_id(sysarg_t);
|
---|
[1bbc6dc] | 51 | extern inet_link_t *inet_link_get_by_svc_name(const char *);
|
---|
[b7fd2a0] | 52 | extern errno_t inet_link_get_id_list(sysarg_t **, size_t *);
|
---|
[1bbc6dc] | 53 | extern errno_t inet_link_discovery_start(void);
|
---|
| 54 | extern errno_t inet_link_autoconf(void);
|
---|
| 55 | extern void inet_link_autoconf_link(inet_link_cfg_info_t *);
|
---|
[e2e56e67] | 56 |
|
---|
| 57 | #endif
|
---|
| 58 |
|
---|
| 59 | /** @}
|
---|
| 60 | */
|
---|