summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/ftp.h2
-rw-r--r--src/include/gpxe/tcp.h8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/include/gpxe/ftp.h b/src/include/gpxe/ftp.h
index 6fad15276..1a0861e9c 100644
--- a/src/include/gpxe/ftp.h
+++ b/src/include/gpxe/ftp.h
@@ -49,6 +49,8 @@ struct ftp_request {
* remote server.
*/
void ( *callback ) ( char *data, size_t len );
+ /** Eventual return status */
+ int rc;
/** Asynchronous operation for this FTP operation */
struct async_operation aop;
diff --git a/src/include/gpxe/tcp.h b/src/include/gpxe/tcp.h
index b7f0accaa..9afb061b8 100644
--- a/src/include/gpxe/tcp.h
+++ b/src/include/gpxe/tcp.h
@@ -144,10 +144,6 @@ extern void tcp_close ( struct tcp_connection *conn );
*/
struct tcp_connection {
struct sockaddr_tcpip peer; /* Remote socket address */
-
- /* FIXME: this field should no longer be present */
- struct sockaddr_in sin;
-
uint16_t local_port; /* Local port, in network byte order */
int tcp_state; /* TCP state */
int tcp_lstate; /* Last TCP state */
@@ -206,6 +202,10 @@ struct tcp_header {
extern struct tcpip_protocol tcp_protocol;
+static inline int tcp_closed ( struct tcp_connection *conn ) {
+ return ( conn->tcp_state == TCP_CLOSED );
+}
+
extern void tcp_init_conn ( struct tcp_connection *conn );
extern int tcp_connect ( struct tcp_connection *conn );
extern int tcp_connectto ( struct tcp_connection *conn,