aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/udp.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-06-16 01:31:29 +0100
committerMichael Brown <mcb30@ipxe.org>2010-06-22 15:50:31 +0100
commit4327d5d39f101f1df0ace6c03f3b3ada5f6a6213 (patch)
treeccf92bdfd23046b6c7f64f87b57350f02f63ad6f /src/include/ipxe/udp.h
parent7b4fbd93a5f45355e4e5d30e5d34c310f6d30c05 (diff)
downloadipxe-4327d5d39f101f1df0ace6c03f3b3ada5f6a6213.tar.gz
[interface] Convert all data-xfer interfaces to generic interfaces
Remove data-xfer as an interface type, and replace data-xfer interfaces with generic interfaces supporting the data-xfer methods. Filter interfaces (as used by the TLS layer) are handled using the generic pass-through interface capability. A side-effect of this is that deliver_raw() no longer exists as a data-xfer method. (In practice this doesn't lose any efficiency, since there are no instances within the current codebase where xfer_deliver_raw() is used to pass data to an interface supporting the deliver_raw() method.) Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/udp.h')
-rw-r--r--src/include/ipxe/udp.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/ipxe/udp.h b/src/include/ipxe/udp.h
index 5e55c5e8c..c18a29723 100644
--- a/src/include/ipxe/udp.h
+++ b/src/include/ipxe/udp.h
@@ -16,7 +16,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/tcpip.h>
#include <ipxe/if_ether.h>
-struct xfer_interface;
+struct interface;
+struct sockaddr;
/**
* UDP constants
@@ -40,8 +41,8 @@ struct udp_header {
uint16_t chksum;
};
-extern int udp_open_promisc ( struct xfer_interface *xfer );
-extern int udp_open ( struct xfer_interface *xfer, struct sockaddr *peer,
+extern int udp_open_promisc ( struct interface *xfer );
+extern int udp_open ( struct interface *xfer, struct sockaddr *peer,
struct sockaddr *local );
#endif /* _IPXE_UDP_H */