UdpChecksumInsertionHook

Package: inet.transportlayer.udp

UdpChecksumInsertionHook

simple module

C++ definition

Computes and inserts Cyclic Redundancy Check (CRC) values into UDP headers during packet processing. Implements a network filter hook that intercepts packets in the post-routing phase and inserts the correct CRC value based on the packet's source and destination addresses.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
SimpleModule simple module

Base module for all INET simple modules.

Parameters

Name Type Default value Description
displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

Properties

Name Value Description
class UdpChecksumInsertionHook

Source code

//
// Computes and inserts Cyclic Redundancy Check (CRC) values into UDP headers
// during packet processing. Implements a network filter hook that intercepts
// packets in the post-routing phase and inserts the correct CRC value based on
// the packet's source and destination addresses.
//
simple UdpChecksumInsertionHook extends SimpleModule
{
    parameters:
        @class(UdpChecksumInsertionHook);
}

File: src/inet/transportlayer/udp/Udp.ned