-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f278a7
commit 5a78572
Showing
6 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Phoenix-RTOS | ||
* | ||
* libphoenix | ||
* | ||
* net/ip6_route.h | ||
* | ||
* Copyright 2024 Phoenix Systems | ||
* Author: Mateusz Kobak | ||
* | ||
* This file is part of Phoenix-RTOS. | ||
* | ||
* %LICENSE% | ||
*/ | ||
|
||
|
||
#ifndef _NET_IP6_ROUTE_H_ | ||
#define _NET_IP6_ROUTE_H_ | ||
|
||
#include <netinet/in.h> | ||
|
||
/* Needed by route.c in busybox */ | ||
struct in6_rtmsg | ||
{ | ||
struct in6_addr rtmsg_dst; | ||
struct in6_addr rtmsg_src; | ||
struct in6_addr rtmsg_gateway; | ||
uint32_t rtmsg_type; | ||
uint16_t rtmsg_dst_len; | ||
uint16_t rtmsg_src_len; | ||
uint32_t rtmsg_metric; | ||
unsigned long int rtmsg_info; | ||
uint32_t rtmsg_flags; | ||
int rtmsg_ifindex; | ||
}; | ||
|
||
|
||
#endif /* _NET_IP6_ROUTE_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Phoenix-RTOS | ||
* | ||
* libphoenix | ||
* | ||
* netinet/icmp6.h | ||
* | ||
* Copyright 2024 Phoenix Systems | ||
* Author: Mateusz Kobak | ||
* | ||
* This file is part of Phoenix-RTOS. | ||
* | ||
* %LICENSE% | ||
*/ | ||
|
||
#ifndef _NETINET_ICMP6_H | ||
#define _NETINET_ICMP6_H | ||
|
||
#include <stdint.h> | ||
|
||
|
||
struct icmp6_hdr { | ||
uint8_t icmp6_type; /* type field */ | ||
uint8_t icmp6_code; /* code field */ | ||
uint16_t icmp6_cksum; /* checksum field */ | ||
union { | ||
uint32_t icmp6_un_data32[1]; /* type-specific field */ | ||
uint16_t icmp6_un_data16[2]; /* type-specific field */ | ||
uint8_t icmp6_un_data8[4]; /* type-specific field */ | ||
} icmp6_dataun; | ||
}; | ||
|
||
#define icmp6_data32 icmp6_dataun.icmp6_un_data32 | ||
#define icmp6_data16 icmp6_dataun.icmp6_un_data16 | ||
#define icmp6_data8 icmp6_dataun.icmp6_un_data8 | ||
#define icmp6_pptr icmp6_data32[0] /* parameter prob */ | ||
#define icmp6_mtu icmp6_data32[0] /* packet too big */ | ||
#define icmp6_id icmp6_data16[0] /* echo request/reply */ | ||
#define icmp6_seq icmp6_data16[1] /* echo request/reply */ | ||
#define icmp6_maxdelay icmp6_data16[0] /* mcast group membership */ | ||
|
||
#define ICMP6_DST_UNREACH 1 | ||
#define ICMP6_PACKET_TOO_BIG 2 | ||
#define ICMP6_TIME_EXCEEDED 3 | ||
#define ICMP6_PARAM_PROB 4 | ||
|
||
#define ICMP6_ECHO_REQUEST 128 | ||
#define ICMP6_ECHO_REPLY 129 | ||
#define MLD_LISTENER_QUERY 130 | ||
#define MLD_LISTENER_REPORT 131 | ||
#define MLD_LISTENER_REDUCTION 132 | ||
|
||
#define ICMP6_DST_UNREACH_NOROUTE 0 /* no route to destination */ | ||
#define ICMP6_DST_UNREACH_ADMIN 1 /* administratively prohibited */ | ||
|
||
#define ICMP6_DST_UNREACH_BEYONDSCOPE 2 /* beyond scope of source address */ | ||
#define ICMP6_DST_UNREACH_ADDR 3 /* address unreachable */ | ||
#define ICMP6_DST_UNREACH_NOPORT 4 /* bad port */ | ||
|
||
#define ICMP6_TIME_EXCEED_TRANSIT 0 /* Hop Limit == 0 in transit */ | ||
#define ICMP6_TIME_EXCEED_REASSEMBLY 1 /* Reassembly time out */ | ||
|
||
|
||
#endif /* _NETINET_ICMP6_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters