CORDET Framework - C2 Implementation

generic Interface for accessing fields in packets. More...

Go to the source code of this file.

Functions

uint32_t getPcktInt (void *p, uint32_t pos)
 Generic Getter for Int Values from a Packet. More...
 
uint16_t getPcktShort (void *p, uint32_t pos)
 Generic Getter for Short Values from a Packet. More...
 
uint8_t getPcktChar (void *p, uint32_t pos)
 Generic Getter for Character Values from a Packet. More...
 
void setPcktInt (void *p, uint32_t pos, uint32_t t)
 Generic Setter for Int Values from a Packet. More...
 
void setPcktShort (void *p, uint32_t pos, uint16_t t)
 Generic Setter for Short Values from a Packet. More...
 
void setPcktChar (void *p, uint32_t pos, uint8_t t)
 Generic Setter for Character Values from a Packet. More...
 

Detailed Description

generic Interface for accessing fields in packets.

Author
Christian Reimers chris.nosp@m.tian.nosp@m..reim.nosp@m.ers@.nosp@m.univi.nosp@m.e.ac.nosp@m..at
Markus Rockenbauer marku.nosp@m.s.ro.nosp@m.ckenb.nosp@m.auer.nosp@m.@univ.nosp@m.ie.a.nosp@m.c.at

last modification: 22.01.2018

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Definition in file CrPsPktUtil.h.

Function Documentation

uint8_t getPcktChar ( void *  p,
uint32_t  pos 
)

Generic Getter for Character Values from a Packet.

Parameters
pPointer to the packet.
posPosition of the Character Value
Returns
char Value from the packet starting at position "pos"

Definition at line 55 of file CrPsPktUtil.c.

uint32_t getPcktInt ( void *  p,
uint32_t  pos 
)

Generic Getter for Int Values from a Packet.

Parameters
pPointer to the packet.
posPosition of the Int Value
Returns
integer Value from the packet starting at position "pos"

Definition at line 29 of file CrPsPktUtil.c.

uint16_t getPcktShort ( void *  p,
uint32_t  pos 
)

Generic Getter for Short Values from a Packet.

Parameters
pPointer to the packet.
posPosition of the Short Value
Returns
short Value from the packet starting at position "pos"

Definition at line 42 of file CrPsPktUtil.c.

void setPcktChar ( void *  p,
uint32_t  pos,
uint8_t  t 
)

Generic Setter for Character Values from a Packet.

Parameters
pPointer to the packet.
posPosition of the Character Value
tThe Value to be set into the Packet

Definition at line 92 of file CrPsPktUtil.c.

void setPcktInt ( void *  p,
uint32_t  pos,
uint32_t  t 
)

Generic Setter for Int Values from a Packet.

Parameters
pPointer to the packet.
posPosition of the Int Value
tThe Value to be set into the Packet

Definition at line 68 of file CrPsPktUtil.c.

void setPcktShort ( void *  p,
uint32_t  pos,
uint16_t  t 
)

Generic Setter for Short Values from a Packet.

Parameters
pPointer to the packet.
posPosition of the Short Value
tThe Value to be set into the Packet

Definition at line 80 of file CrPsPktUtil.c.

P&P Software GmbH, Copyright 2012-2013, All Rights Reserved