Split non-TCP portions of the stack out into ip.[ch].

Added set_ipaddr().
This commit is contained in:
Michael Brown
2006-03-24 17:22:09 +00:00
parent 1c607470e3
commit b44332eb7d
5 changed files with 137 additions and 89 deletions

18
src/include/gpxe/ip.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef _IP_H
#define _IP_H
/** @file
*
* IP protocol
*
* This file defines the gPXE IP API.
*
*/
#include <gpxe/in.h>
extern void set_ipaddr ( struct in_addr address );
extern void init_tcpip ( void );
extern void run_tcpip ( void );
#endif /* _IP_H */

View File

@@ -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 */