FreeRDP
PacketMessage.c File Reference
#include <winpr/config.h>
#include "wlog.h"
#include "PacketMessage.h"
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/file.h>
#include <winpr/stream.h>
#include <winpr/sysinfo.h>
#include "../../log.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)
 
wPcapPcap_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 (const 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, size_t length, DWORD flags)
 

Variables

static UINT32 g_InboundSequenceNumber = 0
 
static UINT32 g_OutboundSequenceNumber = 0
 

Macro Definition Documentation

◆ TAG

#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

◆ IPv4Checksum()

static UINT16 IPv4Checksum ( const BYTE ipv4,
int  length 
)
static
Here is the caller graph for this function:

◆ Pcap_Close()

void Pcap_Close ( wPcap pcap)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Pcap_Flush()

void Pcap_Flush ( wPcap pcap)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Pcap_Open()

wPcap* Pcap_Open ( char *  name,
BOOL  write 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Pcap_Read_Header()

static BOOL Pcap_Read_Header ( wPcap pcap,
wPcapHeader header 
)
static
Here is the caller graph for this function:

◆ Pcap_Write_Header()

static BOOL Pcap_Write_Header ( wPcap pcap,
wPcapHeader header 
)
static
Here is the caller graph for this function:

◆ Pcap_Write_Record()

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:

◆ Pcap_Write_RecordContent()

static BOOL Pcap_Write_RecordContent ( wPcap pcap,
wPcapRecord record 
)
static
Here is the caller graph for this function:

◆ Pcap_Write_RecordHeader()

static BOOL Pcap_Write_RecordHeader ( wPcap pcap,
wPcapRecordHeader record 
)
static
Here is the caller graph for this function:

◆ WLog_PacketMessage_Write()

BOOL WLog_PacketMessage_Write ( wPcap pcap,
void *  data,
size_t  length,
DWORD  flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_PacketMessage_Write_EthernetHeader()

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:

◆ WLog_PacketMessage_Write_IPv4Header()

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:

◆ WLog_PacketMessage_Write_TcpHeader()

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

◆ g_InboundSequenceNumber

UINT32 g_InboundSequenceNumber = 0
static

◆ g_OutboundSequenceNumber

UINT32 g_OutboundSequenceNumber = 0
static