summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2006-08-01 16:26:02 +0200
committerMichael Brown2006-08-01 16:26:02 +0200
commitbeadd822086cb9d1f5d0678dee3ba8f1c77f9f0b (patch)
tree40f2285d3ddeedd0351e7a68796ddca112afe469 /src
parentRenamed trans_{rx,tx}() to tcpip_{rx,tx}(), since they are specific to (diff)
downloadipxe-beadd822086cb9d1f5d0678dee3ba8f1c77f9f0b.tar.gz
ipxe-beadd822086cb9d1f5d0678dee3ba8f1c77f9f0b.tar.xz
ipxe-beadd822086cb9d1f5d0678dee3ba8f1c77f9f0b.zip
Remove unused functions.
Diffstat (limited to 'src')
-rw-r--r--src/include/gpxe/tcpip.h9
-rw-r--r--src/net/tcpip.c36
2 files changed, 3 insertions, 42 deletions
diff --git a/src/include/gpxe/tcpip.h b/src/include/gpxe/tcpip.h
index 215bcd245..aa2ccd5d0 100644
--- a/src/include/gpxe/tcpip.h
+++ b/src/include/gpxe/tcpip.h
@@ -1,5 +1,5 @@
-#ifndef _GPXE_INTERFACE_H
-#define _GPXE_INTERFACE_H
+#ifndef _GPXE_TCPIP_H
+#define _GPXE_TCPIP_H
/** @file
*
@@ -87,7 +87,4 @@ extern unsigned int tcpip_continue_chksum ( unsigned int partial,
const void *data, size_t len );
extern unsigned int tcpip_chksum ( const void *data, size_t len );
-extern struct tcpip_protocol * find_tcpip_protocol ( uint8_t trans_proto );
-extern struct tcpip_net_protocol * find_tcpip_net_protocol ( sa_family_t sa_family );
-
-#endif /* _GPXE_INTERFACE_H */
+#endif /* _GPXE_TCPIP_H */
diff --git a/src/net/tcpip.c b/src/net/tcpip.c
index 949a1694e..22546a49b 100644
--- a/src/net/tcpip.c
+++ b/src/net/tcpip.c
@@ -21,46 +21,10 @@
static struct tcpip_net_protocol tcpip_net_protocols[0] __table_start ( tcpip_net_protocols );
static struct tcpip_net_protocol tcpip_net_protocols_end[0] __table_end ( tcpip_net_protocols );
-struct tcpip_protocol;
-
/** Registered transport-layer protocols that support TCPIP */
static struct tcpip_protocol tcpip_protocols[0] __table_start ( tcpip_protocols );
static struct tcpip_protocol tcpip_protocols_end[0] __table_end ( tcpip_protocols );
-/** Identify TCPIP network-layer protocol
- *
- * @v sa_family Network address family
- * @ret tcpip Protocol supporting TCPIP, or NULL
- */
-static struct tcpip_net_protocol * tcpip_find_protocol ( sa_family_t sa_family ) {
- struct tcpip_net_protocol *tcpip_net;
-
- for ( tcpip_net = tcpip_net_protocols;
- tcpip_net < tcpip_net_protocols_end; ++tcpip_net ) {
- if ( tcpip_net->sa_family == sa_family ) {
- return tcpip_net;
- }
- }
- return NULL;
-}
-
-/** Identify TCPIP transport-layer protocol
- *
- * @v trans_proto Transport-layer protocol number, IP_XXX
- * @ret tcpip_protocol Transport-layer protocol, or NULL
- */
-struct tcpip_protocol* find_tcpip_protocol ( uint8_t trans_proto ) {
- struct tcpip_protocol *tcpip;
-
- for ( tcpip = tcpip_protocols; tcpip <= tcpip_protocols_end;
- ++tcpip ) {
- if ( tcpip->trans_proto == trans_proto ) {
- return tcpip;
- }
- }
- return NULL;
-}
-
/** Process a received packet
*
* @v pkb Packet buffer