Kaynağa Gözat

Renamed trans_{rx,tx}() to tcpip_{rx,tx}(), since they are specific to

the TCP/IP protocol suite (rather than being general transport-layer
functions).
tags/v0.9.3
Michael Brown 18 yıl önce
ebeveyn
işleme
1ebb68e49a
4 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 2
    2
      src/include/gpxe/tcpip.h
  2. 1
    1
      src/net/ipv4.c
  3. 2
    2
      src/net/tcpip.c
  4. 1
    1
      src/net/udp.c

+ 2
- 2
src/include/gpxe/tcpip.h Dosyayı Görüntüle

@@ -77,10 +77,10 @@ struct tcpip_net_protocol {
77 77
 #define TCPIP_NET_PROTOCOL( protocol ) \
78 78
         struct tcpip_net_protocol protocol __table ( tcpip_net_protocols, 01 )
79 79
 
80
-extern void trans_rx ( struct pk_buff *pkb, uint8_t trans_proto, 
80
+extern void tcpip_rx ( struct pk_buff *pkb, uint8_t trans_proto, 
81 81
 		       struct in_addr *src, struct in_addr *dest );
82 82
 
83
-extern int trans_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip, 
83
+extern int tcpip_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip, 
84 84
 		      struct sockaddr *dest );
85 85
 
86 86
 extern unsigned int tcpip_continue_chksum ( unsigned int partial,

+ 1
- 1
src/net/ipv4.c Dosyayı Görüntüle

@@ -546,7 +546,7 @@ void ipv4_rx ( struct pk_buff *pkb, struct net_device *netdev __unused,
546 546
 	pkb_pull ( pkb, sizeof ( *iphdr ) );
547 547
 
548 548
 	/* Send it to the transport layer */
549
-	trans_rx ( pkb, iphdr->protocol, src, dest );
549
+	tcpip_rx ( pkb, iphdr->protocol, src, dest );
550 550
 }
551 551
 
552 552
 /** 

+ 2
- 2
src/net/tcpip.c Dosyayı Görüntüle

@@ -70,7 +70,7 @@ struct tcpip_protocol* find_tcpip_protocol ( uint8_t trans_proto ) {
70 70
  *
71 71
  * This function expects a transport-layer segment from the network-layer
72 72
  */
73
-void trans_rx ( struct pk_buff *pkb, uint8_t trans_proto, struct in_addr *src,
73
+void tcpip_rx ( struct pk_buff *pkb, uint8_t trans_proto, struct in_addr *src,
74 74
 		struct in_addr *dest ) {
75 75
 	struct tcpip_protocol *tcpip;
76 76
 
@@ -90,7 +90,7 @@ void trans_rx ( struct pk_buff *pkb, uint8_t trans_proto, struct in_addr *src,
90 90
  * @v sock		Destination socket address
91 91
  * @ret			Status
92 92
  */
93
-int trans_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip,
93
+int tcpip_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip,
94 94
 	       struct sockaddr *sock ) {
95 95
 
96 96
 	/* Identify the network layer protocol and send it using xxx_tx() */

+ 1
- 1
src/net/udp.c Dosyayı Görüntüle

@@ -151,7 +151,7 @@ int udp_sendto ( struct udp_connection *conn, struct sockaddr *peer,
151 151
 	udp_dump ( udphdr );
152 152
 
153 153
 	/* Send it to the next layer for processing */
154
-	return trans_tx ( conn->tx_pkb, &udp_protocol, peer );
154
+	return tcpip_tx ( conn->tx_pkb, &udp_protocol, peer );
155 155
 }
156 156
 
157 157
 /**

Loading…
İptal
Kaydet