process_data_packet added
FossilOrigin-Name: cdc53dbaf6346d4f2a65b32e32fd6eeedb1a6492bfa2e126b8dbd6451d14a92e
This commit is contained in:
parent
2aedb54ddc
commit
a32e0a1ec8
@ -556,11 +556,9 @@ int process_message(struct conn *conn, uint8_t * rawmsg, int rawlen,
|
||||
* @param packet pointer to packet data
|
||||
* @param len lenght of packet data
|
||||
*/
|
||||
int conn_process_packet(struct conn *conn, uint8_t * packet, int len,
|
||||
int conn_process_packet2(struct conn *conn, uint8_t * packet, int len,
|
||||
struct sockaddr *from)
|
||||
{
|
||||
/* show this packet in debug output */
|
||||
cw_dbg_pkt(DBG_PKT_IN, conn, packet, len, from);
|
||||
|
||||
|
||||
if (len < 8) {
|
||||
@ -648,6 +646,36 @@ int conn_process_packet(struct conn *conn, uint8_t * packet, int len,
|
||||
return conn->process_message(conn, packet, len, from);
|
||||
}
|
||||
|
||||
int conn_process_packet(struct conn *conn, uint8_t * packet, int len,
|
||||
struct sockaddr *from){
|
||||
|
||||
/* show this packet in debug output */
|
||||
cw_dbg_pkt(DBG_PKT_IN, conn, packet, len, from);
|
||||
|
||||
return conn_process_packet2(conn,packet,len,from);
|
||||
}
|
||||
|
||||
|
||||
int conn_process_data_packet(struct conn *conn, uint8_t * packet, int len,
|
||||
struct sockaddr *from){
|
||||
|
||||
/* show this packet in debug output */
|
||||
cw_dbg_pkt(DBG_PKT_IN, conn, packet, len, from);
|
||||
|
||||
return conn_process_packet2(conn,packet,len,from);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Used as main message loop
|
||||
|
Loading…
Reference in New Issue
Block a user