#define TCPIP_NET_PROTOCOL( protocol ) \
struct tcpip_net_protocol protocol __table ( tcpip_net_protocols, 01 )
-extern void trans_rx ( struct pk_buff *pkb, uint8_t trans_proto,
+extern void tcpip_rx ( struct pk_buff *pkb, uint8_t trans_proto,
struct in_addr *src, struct in_addr *dest );
-extern int trans_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip,
+extern int tcpip_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip,
struct sockaddr *dest );
extern unsigned int tcpip_continue_chksum ( unsigned int partial,
pkb_pull ( pkb, sizeof ( *iphdr ) );
/* Send it to the transport layer */
- trans_rx ( pkb, iphdr->protocol, src, dest );
+ tcpip_rx ( pkb, iphdr->protocol, src, dest );
}
/**
*
* This function expects a transport-layer segment from the network-layer
*/
-void trans_rx ( struct pk_buff *pkb, uint8_t trans_proto, struct in_addr *src,
+void tcpip_rx ( struct pk_buff *pkb, uint8_t trans_proto, struct in_addr *src,
struct in_addr *dest ) {
struct tcpip_protocol *tcpip;
* @v sock Destination socket address
* @ret Status
*/
-int trans_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip,
+int tcpip_tx ( struct pk_buff *pkb, struct tcpip_protocol *tcpip,
struct sockaddr *sock ) {
/* Identify the network layer protocol and send it using xxx_tx() */
udp_dump ( udphdr );
/* Send it to the next layer for processing */
- return trans_tx ( conn->tx_pkb, &udp_protocol, peer );
+ return tcpip_tx ( conn->tx_pkb, &udp_protocol, peer );
}
/**