UdpChecksumInsertionHook

Package: inet.transportlayer.udp

simple module UdpChecksumInsertionHook

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.

inet.transportlayer.udp.UdpChecksumInsertionHookUdpChecksumInsertionHooksimple

Inheritance 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