Signed-off-by: Alex Henrie alexhenrie24@gmail.com --- include/netiodef.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 include/netiodef.h
diff --git a/include/netiodef.h b/include/netiodef.h new file mode 100644 index 00000000000..2a50e859842 --- /dev/null +++ b/include/netiodef.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2021 Alex Henrie + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __NETIODEF__ +#define __NETIODEF__ + +#include <ws2def.h> + +typedef struct _IPV6_ROUTING_HEADER { + UCHAR NextHeader; + UCHAR Length; + UCHAR RoutingType; + UCHAR SegmentsLeft; + UCHAR Reserved[4]; +} IPV6_ROUTING_HEADER, *PIPV6_ROUTING_HEADER; + +#ifndef USE_WS_PREFIX +#define ip6_rthdr _IPV6_ROUTING_HEADER +#else +#define WS_ip6_rthdr _IPV6_ROUTING_HEADER +#endif + +#endif /* __NETIODEF__ */