From b44332eb7d76c329995c38993f8c7727d095cb81 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 24 Mar 2006 17:22:09 +0000 Subject: Split non-TCP portions of the stack out into ip.[ch]. Added set_ipaddr(). --- src/include/gpxe/ip.h | 18 ++++++++++++++++++ src/include/gpxe/tcp.h | 2 -- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 src/include/gpxe/ip.h (limited to 'src/include') diff --git a/src/include/gpxe/ip.h b/src/include/gpxe/ip.h new file mode 100644 index 000000000..3a9716879 --- /dev/null +++ b/src/include/gpxe/ip.h @@ -0,0 +1,18 @@ +#ifndef _IP_H +#define _IP_H + +/** @file + * + * IP protocol + * + * This file defines the gPXE IP API. + * + */ + +#include + +extern void set_ipaddr ( struct in_addr address ); +extern void init_tcpip ( void ); +extern void run_tcpip ( void ); + +#endif /* _IP_H */ diff --git a/src/include/gpxe/tcp.h b/src/include/gpxe/tcp.h index c6611144d..cb275f811 100644 --- a/src/include/gpxe/tcp.h +++ b/src/include/gpxe/tcp.h @@ -96,7 +96,5 @@ extern int tcp_connect ( struct tcp_connection *conn ); extern void tcp_send ( struct tcp_connection *conn, const void *data, size_t len ); extern void tcp_close ( struct tcp_connection *conn ); -extern void init_tcpip ( void ); -extern void run_tcpip ( void ); #endif /* _TCP_H */ -- cgit v1.2.3-55-g7522