From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/options/glibc/include/net/ethernet.h | 42 -------------------------- lib/mlibc/options/glibc/include/net/if_ppp.h | 23 -------------- lib/mlibc/options/glibc/include/net/route.h | 35 --------------------- 3 files changed, 100 deletions(-) delete mode 100644 lib/mlibc/options/glibc/include/net/ethernet.h delete mode 100644 lib/mlibc/options/glibc/include/net/if_ppp.h delete mode 100644 lib/mlibc/options/glibc/include/net/route.h (limited to 'lib/mlibc/options/glibc/include/net') diff --git a/lib/mlibc/options/glibc/include/net/ethernet.h b/lib/mlibc/options/glibc/include/net/ethernet.h deleted file mode 100644 index 8dac98a..0000000 --- a/lib/mlibc/options/glibc/include/net/ethernet.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef _NET_ETHERNET_H -#define _NET_ETHERNET_H - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#if __MLIBC_LINUX_OPTION -# include -#endif /* __MLIBC_LINUX_OPTION */ - -#define ETHERTYPE_PUP 0x0200 -#define ETHERTYPE_SPRITE 0x0500 -#define ETHERTYPE_IP 0x0800 -#define ETHERTYPE_ARP 0x0806 -#define ETHERTYPE_REVARP 0x8035 -#define ETHERTYPE_AT 0x809B -#define ETHERTYPE_AARP 0x80F3 -#define ETHERTYPE_VLAN 0x8100 -#define ETHERTYPE_IPX 0x8137 -#define ETHERTYPE_IPV6 0x86dd -#define ETHERTYPE_LOOPBACK 0x9000 - -struct ether_header { - uint8_t ether_dhost[6]; - uint8_t ether_shost[6]; - uint16_t ether_type; -}; - -#define ETHER_ADDR_LEN 6 - -#define ETHERTYPE_IP 0x0800 - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/lib/mlibc/options/glibc/include/net/if_ppp.h b/lib/mlibc/options/glibc/include/net/if_ppp.h deleted file mode 100644 index 55f46b5..0000000 --- a/lib/mlibc/options/glibc/include/net/if_ppp.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef _NET_IF_PPP_H -#define _NET_IF_PPP_H - -#include - -#if __MLIBC_LINUX_OPTION -#include -#include - -#define PPPIOCGFLAGS _IOR('t', 90, int) -#define PPPIOCSFLAGS _IOW('t', 89, int) -#define PPPIOCGASYNCMAP _IOR('t', 88, int) -#define PPPIOCSASYNCMAP _IOW('t', 87, int) -#define PPPIOCGUNIT _IOR('t', 86, int) -#define PPPIOCSMRU _IOW('t', 82, int) -#define PPPIOCSMAXCID _IOW('t', 81, int) -#define PPPIOCGXASYNCMAP _IOR('t', 80, ext_accm) -#define PPPIOCSXASYNCMAP _IOW('t', 79, ext_accm) -#define PPPIOCGDEBUG _IOR('t', 65, int) -#define PPPIOCSDEBUG _IOW('t', 64, int) -#endif - -#endif /* _NET_IF_PPP_H */ diff --git a/lib/mlibc/options/glibc/include/net/route.h b/lib/mlibc/options/glibc/include/net/route.h deleted file mode 100644 index 7537241..0000000 --- a/lib/mlibc/options/glibc/include/net/route.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef _NET_ROUTE_H -#define _NET_ROUTE_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define RTF_HOST 0x0004 -#define RTF_REJECT 0x0200 - -struct rtentry { - unsigned long int rt_pad1; - struct sockaddr rt_dst; - struct sockaddr rt_gateway; - struct sockaddr rt_genmask; - unsigned short int rt_flags; - short int rt_pad2; - unsigned long int rt_pad3; - unsigned char rt_tos; - unsigned char rt_class; - short int rt_pad4[3]; - short int rt_metric; - char *rt_dev; - unsigned long int rt_mtu; - unsigned long int rt_window; - unsigned short int rt_irtt; -}; - -#ifdef __cplusplus -} -#endif - -#endif /* _NET_ROUTE_H */ -- cgit v1.2.3