From c821a7b20d8763c7d0de07e762ffae2e97f644dc Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 10 Jan 2007 02:31:38 +0000 Subject: Add udp_sendto_via() to allow e.g. DHCP to transmit without first having to set up dummy routing entries. --- src/include/gpxe/udp.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/include') diff --git a/src/include/gpxe/udp.h b/src/include/gpxe/udp.h index d32c87823..074c5e1dd 100644 --- a/src/include/gpxe/udp.h +++ b/src/include/gpxe/udp.h @@ -14,6 +14,8 @@ #include #include +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 */ -- cgit v1.2.3-55-g7522