Changeset 8a9a41e in mainline for uspace/lib/inet/include/inet/iplink.h
- Timestamp:
- 2021-10-24T08:28:43Z (3 years ago)
- Children:
- f628215
- Parents:
- 2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
- git-committer:
- GitHub <noreply@…> (2021-10-24 08:28:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/inet/include/inet/iplink.h
r2ce943a r8a9a41e 1 1 /* 2 * Copyright (c) 20 12Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup lib c29 /** @addtogroup libinet 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef _LIBC_INET_IPLINK_H_36 #define _LIBC_INET_IPLINK_H_35 #ifndef LIBINET_INET_IPLINK_H 36 #define LIBINET_INET_IPLINK_H 37 37 38 38 #include <async.h> 39 39 #include <inet/addr.h> 40 #include <inet/eth_addr.h> 40 41 41 42 struct iplink_ev_ops; … … 62 63 typedef struct { 63 64 /** Local MAC destination address */ 64 addr48_t dest;65 eth_addr_t dest; 65 66 /** Serialized IP packet */ 66 67 void *data; … … 79 80 typedef struct iplink_ev_ops { 80 81 errno_t (*recv)(iplink_t *, iplink_recv_sdu_t *, ip_ver_t); 81 errno_t (*change_addr)(iplink_t *, addr48_t);82 errno_t (*change_addr)(iplink_t *, eth_addr_t *); 82 83 } iplink_ev_ops_t; 83 84 … … 89 90 extern errno_t iplink_addr_remove(iplink_t *, inet_addr_t *); 90 91 extern errno_t iplink_get_mtu(iplink_t *, size_t *); 91 extern errno_t iplink_get_mac48(iplink_t *, addr48_t *);92 extern errno_t iplink_set_mac48(iplink_t *, addr48_t);92 extern errno_t iplink_get_mac48(iplink_t *, eth_addr_t *); 93 extern errno_t iplink_set_mac48(iplink_t *, eth_addr_t *); 93 94 extern void *iplink_get_userptr(iplink_t *); 94 95
Note:
See TracChangeset
for help on using the changeset viewer.