summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/tcpip.h
diff options
context:
space:
mode:
authorMichael Brown2015-09-01 17:18:32 +0200
committerMichael Brown2015-09-01 22:04:45 +0200
commit84306426424aabb69cbbb24e7e9da2288b23e693 (patch)
tree72fb883af083362e990615e3bb7a4df7855e5c0e /src/include/ipxe/tcpip.h
parent[build] Search for ldlinux.c32 separately from isolinux.bin (diff)
downloadipxe-84306426424aabb69cbbb24e7e9da2288b23e693.tar.gz
ipxe-84306426424aabb69cbbb24e7e9da2288b23e693.tar.xz
ipxe-84306426424aabb69cbbb24e7e9da2288b23e693.zip
[tcpip] Allow supported address families to be detected at runtime
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/tcpip.h')
-rw-r--r--src/include/ipxe/tcpip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/tcpip.h b/src/include/ipxe/tcpip.h
index 3cfc8e3a..c3528c9c 100644
--- a/src/include/ipxe/tcpip.h
+++ b/src/include/ipxe/tcpip.h
@@ -106,6 +106,8 @@ struct tcpip_net_protocol {
sa_family_t sa_family;
/** Fixed header length */
size_t header_len;
+ /** Network-layer protocol */
+ struct net_protocol *net_protocol;
/**
* Transmit packet
*
@@ -156,6 +158,7 @@ extern int tcpip_tx ( struct io_buffer *iobuf, struct tcpip_protocol *tcpip,
struct sockaddr_tcpip *st_dest,
struct net_device *netdev,
uint16_t *trans_csum );
+extern struct tcpip_net_protocol * tcpip_net_protocol ( sa_family_t sa_family );
extern struct net_device * tcpip_netdev ( struct sockaddr_tcpip *st_dest );
extern size_t tcpip_mtu ( struct sockaddr_tcpip *st_dest );
extern uint16_t generic_tcpip_continue_chksum ( uint16_t partial,