.. SPDX-License-Identifier: Apache-2.0

.. _param-omudpspoof-mtu:
.. _omudpspoof.parameter.action.mtu:

mtu
===

.. index::
   single: omudpspoof; mtu
   single: mtu

.. summary-start

Sets the maximum packet length that omudpspoof sends.

.. summary-end

This parameter applies to :doc:`../../configuration/modules/omudpspoof`.

:Name: mtu
:Scope: action
:Type: integer
:Default: 1500
:Required?: no
:Introduced: 5.1.3

Description
-----------
Maximum packet length to send. Messages that do not fit are sent as IP
fragments. Messages longer than 65507 bytes, the largest UDP payload an
IPv4 datagram can carry, are truncated to that size first. Valid values are 68 (the smallest MTU an IPv4 link must
support) to 65535; other values are rejected when the configuration is
loaded.

Action usage
------------
.. _param-omudpspoof-action-mtu:
.. _omudpspoof.parameter.action.mtu-usage:

.. code-block:: rsyslog

   action(type="omudpspoof" target="192.0.2.1" mtu="1400")

See also
--------
See also :doc:`../../configuration/modules/omudpspoof`.
