Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
Network Emulation

Automatically drop and corrupt packets for testing. More...

Functions

syscall emuCorrupt (struct packet *pkt)
 
syscall emuDelay (struct packet *pkt)
 
syscall emuDrop (struct packet *pkt)
 
syscall emuDuplicate (struct packet *pkt)
 
syscall emuReorder (struct packet *pkt)
 
syscall netemu (struct packet *pkt)
 

Detailed Description

Automatically drop and corrupt packets for testing.

Function Documentation

syscall emuCorrupt ( struct packet *  pkt)

Corrupts packets as specified by user

Parameters
pktpointer to the incoming packet
Returns
OK if packet was processed succesfully, otherwise SYSERR
syscall emuDelay ( struct packet *  pkt)

Delay packets as specified by user

Parameters
pktpointer to the incoming packet
Returns
OK if packet was processed succesfully, otherwise SYSERR
syscall emuDrop ( struct packet *  pkt)

Drop packets based on user settings

Parameters
pktpointer to the incoming packet
Returns
OK if packet was processed succesfully, otherwise SYSERR
syscall emuDuplicate ( struct packet *  pkt)

Duplicate packets as specified by user

Parameters
pktpointer to the incoming packet
Returns
OK if packet was processed succesfully, otherwise SYSERR
syscall emuReorder ( struct packet *  pkt)

Reorder packets as specified by the user

Parameters
pktpointer to the incoming packet
Returns
OK if packet was processed succesfully, otherwise SYSERR
syscall netemu ( struct packet *  pkt)

Process a packet through the network emulator

Parameters
pktpointer to the incoming packet
Returns
OK if packet was processed succesfully, otherwise SYSERR