Skip to content

Commit

Permalink
IPv6: ifconfig and route tools support ipv6. netstat TBC.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfb8856606 committed Jul 12, 2019
1 parent d7140ab commit 143d7be
Show file tree
Hide file tree
Showing 11 changed files with 1,441 additions and 13 deletions.
5 changes: 5 additions & 0 deletions tools/compat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ TARGET=libffcompat.a

#DEBUG=-O0 -gdwarf-2 -g3

include ${TOPDIR}/tools/opts.mk
ifneq (${MK_INET6_SUPPORT},"no")
CFLAGS+= -DINET6
endif

DPDK_CFLAGS= -g -Wall -Werror -include ${FF_DPDK}/include/rte_config.h
DPDK_CFLAGS+= -march=native -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3
DPDK_CFLAGS+= -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2
Expand Down
8 changes: 8 additions & 0 deletions tools/compat/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@
#define ishexnumber(x) isxdigit(x)
#endif

#define CLOCK_REALTIME_FAST 10 /* FreeBSD-specific. */
#ifdef INET6
#define CLOCK_MONOTONIC_FAST 12 /* FreeBSD-specific. */

#define AF_INET6_LINUX 10
#define PF_INET6_LINUX AF_INET6
#endif

void *reallocf(void *ptr, size_t size);

int feature_present(const char *feature);
Expand Down
Loading

0 comments on commit 143d7be

Please sign in to comment.