Browse Source

Remove unused functions.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
beadd82208
2 changed files with 3 additions and 42 deletions
  1. 3
    6
      src/include/gpxe/tcpip.h
  2. 0
    36
      src/net/tcpip.c

+ 3
- 6
src/include/gpxe/tcpip.h View File

@@ -1,5 +1,5 @@
1
-#ifndef _GPXE_INTERFACE_H
2
-#define _GPXE_INTERFACE_H
1
+#ifndef _GPXE_TCPIP_H
2
+#define _GPXE_TCPIP_H
3 3
 
4 4
 /** @file
5 5
  *
@@ -87,7 +87,4 @@ extern unsigned int tcpip_continue_chksum ( unsigned int partial,
87 87
 					    const void *data, size_t len );
88 88
 extern unsigned int tcpip_chksum ( const void *data, size_t len );
89 89
 
90
-extern struct tcpip_protocol * find_tcpip_protocol ( uint8_t trans_proto );
91
-extern struct tcpip_net_protocol * find_tcpip_net_protocol ( sa_family_t sa_family );
92
-
93
-#endif /* _GPXE_INTERFACE_H */
90
+#endif /* _GPXE_TCPIP_H */

+ 0
- 36
src/net/tcpip.c View File

@@ -21,46 +21,10 @@
21 21
 static struct tcpip_net_protocol tcpip_net_protocols[0] __table_start ( tcpip_net_protocols );
22 22
 static struct tcpip_net_protocol tcpip_net_protocols_end[0] __table_end ( tcpip_net_protocols );
23 23
 
24
-struct tcpip_protocol;
25
-
26 24
 /** Registered transport-layer protocols that support TCPIP */
27 25
 static struct tcpip_protocol tcpip_protocols[0] __table_start ( tcpip_protocols );
28 26
 static struct tcpip_protocol tcpip_protocols_end[0] __table_end ( tcpip_protocols );
29 27
 
30
-/** Identify TCPIP network-layer protocol
31
- *
32
- * @v sa_family	 Network address family
33
- * @ret tcpip	   Protocol supporting TCPIP, or NULL
34
- */
35
-static struct tcpip_net_protocol * tcpip_find_protocol ( sa_family_t sa_family ) {
36
-	struct tcpip_net_protocol *tcpip_net;
37
-
38
-	for ( tcpip_net = tcpip_net_protocols; 
39
-		tcpip_net < tcpip_net_protocols_end; ++tcpip_net ) {
40
-		if ( tcpip_net->sa_family == sa_family ) {
41
-			return tcpip_net;
42
-		}
43
-	}
44
-	return NULL;
45
-}
46
-
47
-/** Identify TCPIP transport-layer protocol
48
- *
49
- * @v trans_proto	Transport-layer protocol number, IP_XXX
50
- * @ret tcpip_protocol	Transport-layer protocol, or NULL
51
- */
52
-struct tcpip_protocol* find_tcpip_protocol ( uint8_t trans_proto ) {
53
-	struct tcpip_protocol *tcpip;
54
-
55
-	for ( tcpip = tcpip_protocols; tcpip <= tcpip_protocols_end; 
56
-		++tcpip ) {
57
-		if ( tcpip->trans_proto == trans_proto ) {
58
-			return tcpip;
59
-		}
60
-	}
61
-	return NULL;
62
-}
63
-
64 28
 /** Process a received packet
65 29
  *
66 30
  * @v pkb		Packet buffer

Loading…
Cancel
Save