summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/dhcp.h
diff options
context:
space:
mode:
authorMichael Brown2007-01-15 09:49:10 +0100
committerMichael Brown2007-01-15 09:49:10 +0100
commit4e20d73bb52326261f8cf49c20d6de2edea309ee (patch)
tree3d24466a78c4c8f53294384b76e62e871eb96def /src/include/gpxe/dhcp.h
parentAdd missing include (diff)
downloadipxe-4e20d73bb52326261f8cf49c20d6de2edea309ee.tar.gz
ipxe-4e20d73bb52326261f8cf49c20d6de2edea309ee.tar.xz
ipxe-4e20d73bb52326261f8cf49c20d6de2edea309ee.zip
Gave asynchronous operations approximate POSIX signal semantics. This
will enable us to cascade async operations, which is necessary in order to properly support DNS. (For example, an HTTP request may have to redirect to a new location and will have to perform a new DNS lookup, so we can't just rely on doing the name lookup at the time of parsing the initial URL). Anything other than HTTP is probably broken right now; I'll fix the others up asap.
Diffstat (limited to 'src/include/gpxe/dhcp.h')
-rw-r--r--src/include/gpxe/dhcp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h
index 60991e7e8..a3311d1a1 100644
--- a/src/include/gpxe/dhcp.h
+++ b/src/include/gpxe/dhcp.h
@@ -466,7 +466,7 @@ struct dhcp_session {
*/
int state;
/** Asynchronous operation for this DHCP session */
- struct async_operation aop;
+ struct async async;
/** Retransmission timer */
struct retry_timer timer;
};
@@ -504,6 +504,6 @@ extern int create_dhcp_packet ( struct net_device *netdev, uint8_t msgtype,
struct dhcp_packet *dhcppkt );
extern int copy_dhcp_packet_options ( struct dhcp_packet *dhcppkt,
struct dhcp_option_block *options );
-extern struct async_operation * start_dhcp ( struct dhcp_session *dhcp );
+extern int start_dhcp ( struct dhcp_session *dhcp, struct async *parent );
#endif /* _GPXE_DHCP_H */