FreeRDP
pcap.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <freerdp/log.h>
#include <sys/time.h>
#include <freerdp/types.h>
#include <freerdp/utils/pcap.h>

Macros

#define TAG   FREERDP_TAG("utils")
 
#define PCAP_MAGIC   0xA1B2C3D4
 

Functions

static BOOL pcap_read_header (rdpPcap *pcap, pcap_header *header)
 
static BOOL pcap_write_header (rdpPcap *pcap, pcap_header *header)
 
static BOOL pcap_read_record_header (rdpPcap *pcap, pcap_record_header *record)
 
static BOOL pcap_write_record_header (rdpPcap *pcap, pcap_record_header *record)
 
static BOOL pcap_read_record (rdpPcap *pcap, pcap_record *record)
 
static BOOL pcap_write_record (rdpPcap *pcap, pcap_record *record)
 
BOOL pcap_add_record (rdpPcap *pcap, void *data, UINT32 length)
 
BOOL pcap_has_next_record (rdpPcap *pcap)
 
BOOL pcap_get_next_record_header (rdpPcap *pcap, pcap_record *record)
 
BOOL pcap_get_next_record_content (rdpPcap *pcap, pcap_record *record)
 
BOOL pcap_get_next_record (rdpPcap *pcap, pcap_record *record)
 
rdpPcap * pcap_open (char *name, BOOL write)
 
void pcap_flush (rdpPcap *pcap)
 
void pcap_close (rdpPcap *pcap)
 

Macro Definition Documentation

#define PCAP_MAGIC   0xA1B2C3D4
#define TAG   FREERDP_TAG("utils")

FreeRDP: A Remote Desktop Protocol Implementation pcap File Format Utils

Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..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

BOOL pcap_add_record ( rdpPcap *  pcap,
void data,
UINT32  length 
)

Here is the caller graph for this function:

void pcap_close ( rdpPcap *  pcap)

Here is the call graph for this function:

Here is the caller graph for this function:

void pcap_flush ( rdpPcap *  pcap)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL pcap_get_next_record ( rdpPcap *  pcap,
pcap_record *  record 
)

Here is the call graph for this function:

BOOL pcap_get_next_record_content ( rdpPcap *  pcap,
pcap_record *  record 
)

Here is the caller graph for this function:

BOOL pcap_get_next_record_header ( rdpPcap *  pcap,
pcap_record *  record 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL pcap_has_next_record ( rdpPcap *  pcap)

Here is the caller graph for this function:

rdpPcap* 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 ( rdpPcap *  pcap,
pcap_header *  header 
)
static

Here is the caller graph for this function:

static BOOL pcap_read_record ( rdpPcap *  pcap,
pcap_record *  record 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL pcap_read_record_header ( rdpPcap *  pcap,
pcap_record_header *  record 
)
static

Here is the caller graph for this function:

static BOOL pcap_write_header ( rdpPcap *  pcap,
pcap_header *  header 
)
static

Here is the caller graph for this function:

static BOOL pcap_write_record ( rdpPcap *  pcap,
pcap_record *  record 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL pcap_write_record_header ( rdpPcap *  pcap,
pcap_record_header *  record 
)
static

Here is the caller graph for this function: