From e9b3ed2335c43765450ef484e6af96447cbe16af Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 28 Feb 2018 05:06:24 +0000 Subject: [PATCH] spelling: received --- src/Cedar/Connection.c | 18 +++++++++--------- src/Cedar/Connection.h | 2 +- src/Cedar/IPsec_IPC.c | 12 ++++++------ src/Cedar/IPsec_IPC.h | 2 +- src/Cedar/Link.c | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Cedar/Connection.c b/src/Cedar/Connection.c index 0b5353f0..af2bd27b 100644 --- a/src/Cedar/Connection.c +++ b/src/Cedar/Connection.c @@ -892,7 +892,7 @@ void PutUDPPacketData(CONNECTION *c, void *data, UINT size) block = NewBlock(tmp, size, 0); // Insert Block - InsertReveicedBlockToQueue(c, block, false); + InsertReceivedBlockToQueue(c, block, false); } } @@ -909,7 +909,7 @@ void PutUDPPacketData(CONNECTION *c, void *data, UINT size) } // Add a block to the receive queue -void InsertReveicedBlockToQueue(CONNECTION *c, BLOCK *block, bool no_lock) +void InsertReceivedBlockToQueue(CONNECTION *c, BLOCK *block, bool no_lock) { SESSION *s; // Validate arguments @@ -1831,7 +1831,7 @@ void ConnectionReceive(CONNECTION *c, CANCEL *c1, CANCEL *c2) else { // Add the data block to queue - InsertReveicedBlockToQueue(c, b, true); + InsertReceivedBlockToQueue(c, b, true); if ((current_packet_index % 32) == 0) { @@ -1914,7 +1914,7 @@ void ConnectionReceive(CONNECTION *c, CANCEL *c1, CANCEL *c2) else { // Add the data block to queue - InsertReveicedBlockToQueue(c, block, true); + InsertReceivedBlockToQueue(c, block, true); if ((current_packet_index % 32) == 0) { @@ -1979,7 +1979,7 @@ void ConnectionReceive(CONNECTION *c, CANCEL *c1, CANCEL *c2) else { // Add the data block to queue - InsertReveicedBlockToQueue(c, block, true); + InsertReceivedBlockToQueue(c, block, true); if ((current_packet_index % 32) == 0) { @@ -2208,7 +2208,7 @@ DISCONNECT_THIS_TCP: else { // Add the data block to queue - InsertReveicedBlockToQueue(c, block, true); + InsertReceivedBlockToQueue(c, block, true); if ((current_packet_index % 32) == 0) { @@ -2477,7 +2477,7 @@ DISCONNECT_THIS_TCP: else { // Add the data block to queue - InsertReveicedBlockToQueue(c, block, true); + InsertReceivedBlockToQueue(c, block, true); } num++; if (num >= MAX_SEND_SOCKET_QUEUE_NUM) @@ -2558,7 +2558,7 @@ DISCONNECT_THIS_TCP: } else { - InsertReveicedBlockToQueue(c, block, true); + InsertReceivedBlockToQueue(c, block, true); } num++; @@ -2675,7 +2675,7 @@ DISCONNECT_THIS_TCP: } else { - InsertReveicedBlockToQueue(c, block, true); + InsertReceivedBlockToQueue(c, block, true); } num++; if (num >= MAX_SEND_SOCKET_QUEUE_NUM) diff --git a/src/Cedar/Connection.h b/src/Cedar/Connection.h index e96ff8ff..eab8eada 100644 --- a/src/Cedar/Connection.h +++ b/src/Cedar/Connection.h @@ -352,7 +352,7 @@ void SendKeepAlive(CONNECTION *c, TCPSOCK *ts); void DisconnectUDPSockets(CONNECTION *c); void PutUDPPacketData(CONNECTION *c, void *data, UINT size); void SendDataWithUDP(SOCK *s, CONNECTION *c); -void InsertReveicedBlockToQueue(CONNECTION *c, BLOCK *block, bool no_lock); +void InsertReceivedBlockToQueue(CONNECTION *c, BLOCK *block, bool no_lock); void InitTcpSockRc4Key(TCPSOCK *ts, bool server_mode); UINT TcpSockRecv(SESSION *s, TCPSOCK *ts, void *data, UINT size); UINT TcpSockSend(SESSION *s, TCPSOCK *ts, void *data, UINT size); diff --git a/src/Cedar/IPsec_IPC.c b/src/Cedar/IPsec_IPC.c index 49dee743..efd7c034 100644 --- a/src/Cedar/IPsec_IPC.c +++ b/src/Cedar/IPsec_IPC.c @@ -561,7 +561,7 @@ IPC *NewIPC(CEDAR *cedar, char *client_name, char *postfix, char *hubname, char ipc->ArpTable = NewList(IPCCmpArpTable); // Create an IPv4 reception queue - ipc->IPv4RecviedQueue = NewQueue(); + ipc->IPv4ReceivedQueue = NewQueue(); return ipc; @@ -601,7 +601,7 @@ IPC *NewIPCBySock(CEDAR *cedar, SOCK *s, void *mac_address) ipc->ArpTable = NewList(IPCCmpArpTable); // Create an IPv4 reception queue - ipc->IPv4RecviedQueue = NewQueue(); + ipc->IPv4ReceivedQueue = NewQueue(); ipc->FlushList = NewTubeFlushList(); @@ -671,7 +671,7 @@ void FreeIPC(IPC *ipc) while (true) { - BLOCK *b = GetNext(ipc->IPv4RecviedQueue); + BLOCK *b = GetNext(ipc->IPv4ReceivedQueue); if (b == NULL) { break; @@ -680,7 +680,7 @@ void FreeIPC(IPC *ipc) FreeBlock(b); } - ReleaseQueue(ipc->IPv4RecviedQueue); + ReleaseQueue(ipc->IPv4ReceivedQueue); Free(ipc); } @@ -1626,7 +1626,7 @@ void IPCProcessL3EventsEx(IPC *ipc, UINT64 now) IPCAssociateOnArpTable(ipc, &ip_src, src_mac); // Place in the reception queue - InsertQueue(ipc->IPv4RecviedQueue, NewBlock(data, size, 0)); + InsertQueue(ipc->IPv4ReceivedQueue, NewBlock(data, size, 0)); } else { @@ -2086,7 +2086,7 @@ BLOCK *IPCRecvIPv4(IPC *ipc) return NULL; } - b = GetNext(ipc->IPv4RecviedQueue); + b = GetNext(ipc->IPv4ReceivedQueue); return b; } diff --git a/src/Cedar/IPsec_IPC.h b/src/Cedar/IPsec_IPC.h index 718e7c1e..02851e27 100644 --- a/src/Cedar/IPsec_IPC.h +++ b/src/Cedar/IPsec_IPC.h @@ -206,7 +206,7 @@ struct IPC UCHAR MacAddress[6]; // MAC address UCHAR Padding[2]; LIST *ArpTable; // ARP table - QUEUE *IPv4RecviedQueue; // IPv4 reception queue + QUEUE *IPv4ReceivedQueue; // IPv4 reception queue TUBE_FLUSH_LIST *FlushList; // Tube Flush List UCHAR MsChapV2_ServerResponse[20]; // Server response DHCP_CLASSLESS_ROUTE_TABLE ClasslessRoute; // Classless routing table diff --git a/src/Cedar/Link.c b/src/Cedar/Link.c index c015e892..d9aaf385 100644 --- a/src/Cedar/Link.c +++ b/src/Cedar/Link.c @@ -313,7 +313,7 @@ bool LinkPaPutPacket(SESSION *s, void *data, UINT size) } else { - InsertReveicedBlockToQueue(server_connection, block, true); + InsertReceivedBlockToQueue(server_connection, block, true); } } }