Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Apr 15, 2024
1 parent 28abe15 commit babae18
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions reference/constraints/MacAddress.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,26 +110,29 @@ Parameter Description

**type**: ``string`` **default**: ``all``

This determines exactly *how* the MAC address is validated. This option defines a
lot of different possible values based on the type of MAC address that you want to allow/deny:
.. versionadded:: 7.1

The ``type`` option was introduced in Symfony 7.1.

================================ ==============================================================
Parameter Description
================================ ==============================================================
This option defines the kind of MAC addresses that are allowed. There are a lot
of different possible values based on your needs:

================================ =========================================
Parameter Allowed MAC addresses
================================ =========================================
``all`` All
``all_no_broadcast`` All except broadcast
``broadcast`` Only broadcast
``local_all`` Only local
``local_multicast_no_broadcast`` Only local and multicast except broadcast
``local_multicast`` Only local and multicast
``local_no_broadcast`` Only local except broadcast
``local_unicast`` Only local and unicast
``local_multicast`` Only local and multicast
``local_multicast_no_broadcast`` Only local and multicast except broadcast
``universal_all`` Only universal
``universal_unicast`` Only universal and unicast
``universal_multicast`` Only universal and multicast
``unicast_all`` Only unicast
``multicast_all`` Only multicast
``multicast_no_broadcast`` Only multicast except broadcast
``broadcast`` Only broadcast
=============== ==============================================================
``unicast_all`` Only unicast
``universal_all`` Only universal
``universal_multicast`` Only universal and multicast
================================ =========================================

.. _`MAC address`: https://en.wikipedia.org/wiki/MAC_address

0 comments on commit babae18

Please sign in to comment.