diff options
author | Michael Brown | 2007-01-10 03:31:38 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-10 03:31:38 +0100 |
commit | c821a7b20d8763c7d0de07e762ffae2e97f644dc (patch) | |
tree | a5f9406394d4d8fa08fb7e78a6e9b03ead6ec85e /src/include | |
parent | Allow an explicit network device to be specified for IP-layer (diff) | |
download | ipxe-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.h | 5 |
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 */ |