FreeRDP
PacketMessage.c File Reference
#include "wlog.h"
#include "wlog/PacketMessage.h"
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/stream.h>
#include "../../log.h"
#include <sys/time.h>

Macros

#define TAG   WINPR_TAG("utils.wlog")
 

Functions

static BOOL Pcap_Read_Header (wPcap *pcap, wPcapHeader *header)
 
static BOOL Pcap_Write_Header (wPcap *pcap, wPcapHeader *header)
 
static BOOL Pcap_Write_RecordHeader (wPcap *pcap, wPcapRecordHeader *record)
 
static BOOL Pcap_Write_RecordContent (wPcap *pcap, wPcapRecord *record)
 
static BOOL Pcap_Write_Record (wPcap *pcap, wPcapRecord *record)
 
wPcap * Pcap_Open (char *name, BOOL write)
 
void Pcap_Flush (wPcap *pcap)
 
void Pcap_Close (wPcap *pcap)
 
static BOOL WLog_PacketMessage_Write_EthernetHeader (wPcap *pcap, wEthernetHeader *ethernet)
 
static UINT16 IPv4Checksum (BYTE *ipv4, int length)
 
static BOOL WLog_PacketMessage_Write_IPv4Header (wPcap *pcap, wIPv4Header *ipv4)
 
static BOOL WLog_PacketMessage_Write_TcpHeader (wPcap *pcap, wTcpHeader *tcp)
 
BOOL WLog_PacketMessage_Write (wPcap *pcap, void *data, DWORD length, DWORD flags)
 

Variables

static UINT32 g_InboundSequenceNumber = 0
 
static UINT32 g_OutboundSequenceNumber = 0
 

Macro Definition Documentation

#define TAG   WINPR_TAG("utils.wlog")

WinPR: Windows Portable Runtime WinPR Logger

Copyright 2013 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

static UINT16 IPv4Checksum ( BYTE ipv4,
int  length 
)
static

Here is the caller graph for this function:

void Pcap_Close ( wPcap *  pcap)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pcap_Flush ( wPcap *  pcap)

Here is the call graph for this function:

Here is the caller graph for this function:

wPcap* Pcap_Open ( char *  name,
BOOL  write 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL Pcap_Read_Header ( wPcap *  pcap,
wPcapHeader *  header 
)
static

Here is the caller graph for this function:

static BOOL Pcap_Write_Header ( wPcap *  pcap,
wPcapHeader *  header 
)
static

Here is the caller graph for this function:

static BOOL Pcap_Write_Record ( wPcap *  pcap,
wPcapRecord *  record 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL Pcap_Write_RecordContent ( wPcap *  pcap,
wPcapRecord *  record 
)
static

Here is the caller graph for this function:

static BOOL Pcap_Write_RecordHeader ( wPcap *  pcap,
wPcapRecordHeader *  record 
)
static

Here is the caller graph for this function:

BOOL WLog_PacketMessage_Write ( wPcap *  pcap,
void data,
DWORD  length,
DWORD  flags 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL WLog_PacketMessage_Write_EthernetHeader ( wPcap *  pcap,
wEthernetHeader *  ethernet 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL WLog_PacketMessage_Write_IPv4Header ( wPcap *  pcap,
wIPv4Header *  ipv4 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL WLog_PacketMessage_Write_TcpHeader ( wPcap *  pcap,
wTcpHeader *  tcp 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

UINT32 g_InboundSequenceNumber = 0
static
UINT32 g_OutboundSequenceNumber = 0
static