summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2007-01-10 03:31:38 +0100
committerMichael Brown2007-01-10 03:31:38 +0100
commitc821a7b20d8763c7d0de07e762ffae2e97f644dc (patch)
treea5f9406394d4d8fa08fb7e78a6e9b03ead6ec85e /src/include
parentAllow an explicit network device to be specified for IP-layer (diff)
downloadipxe-c821a7b20d8763c7d0de07e762ffae2e97f644dc.tar.gz
ipxe-c821a7b20d8763c7d0de07e762ffae2e97f644dc.tar.xz
ipxe-c821a7b20d8763c7d0de07e762ffae2e97f644dc.zip
Add udp_sendto_via() to allow e.g. DHCP to transmit without first having
to set up dummy routing entries.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/udp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gpxe/udp.h b/src/include/gpxe/udp.h
index d32c8782..074c5e1d 100644
--- a/src/include/gpxe/udp.h
+++ b/src/include/gpxe/udp.h
@@ -14,6 +14,8 @@
#include <gpxe/tcpip.h>
#include <gpxe/if_ether.h>
+struct net_device;
+
/**
* UDP constants
*/
@@ -161,5 +163,8 @@ extern int udp_send ( struct udp_connection *conn,
extern int udp_sendto ( struct udp_connection *conn,
struct sockaddr_tcpip *peer,
const void *data, size_t len );
+int udp_sendto_via ( struct udp_connection *conn, struct sockaddr_tcpip *peer,
+ struct net_device *netdev, const void *data,
+ size_t len );
#endif /* _GPXE_UDP_H */