|
| 1 | +FRAD - Frame Relay Access Device |
| 2 | +================================= |
| 3 | + |
| 4 | +.. module:: pcapkit.protocols.link.frad |
| 5 | + |
| 6 | +:mod:`pcapkit.protocols.link.frad` contains |
| 7 | +:class:`~pcapkit.protocols.link.frad.FRAD` |
| 8 | +only, which implements the extractor for Frame Relay's multiprotocol |
| 9 | +encapsulation [*]_, as seen on a ``LINKTYPE_LINUX_SLL``/``LINKTYPE_LINUX_SLL2`` |
| 10 | +capture whose ``arphrd_type`` is ``ARPHRD_FRAD``. Its structure, the Q.922 |
| 11 | +LAPF address onward with no trailing FCS, is described as below: |
| 12 | + |
| 13 | +.. table:: |
| 14 | + |
| 15 | + ====== ==== ================= ========================================== |
| 16 | + Octets Bits Name Description |
| 17 | + ====== ==== ================= ========================================== |
| 18 | + 0 0 ``frad.addr`` Q.922 Address (2-octet form) |
| 19 | + 2 16 ``frad.control`` Control (``0x03``, UI, for data traffic) |
| 20 | + 3 24 ``frad.nlpid`` NLPID, or the ``0x00`` pad ahead of a SNAP |
| 21 | + header |
| 22 | + ====== ==== ================= ========================================== |
| 23 | + |
| 24 | +When ``nlpid`` is the ``0x00`` pad marker, a further NLPID octet (``0x80`` |
| 25 | +for SNAP), a 3-octet OUI and a 2-octet PID follow, kept as ``frad.ext_nlpid``, |
| 26 | +``frad.oui`` and ``frad.pid``. |
| 27 | + |
| 28 | +.. autoclass:: pcapkit.protocols.link.frad.FRAD |
| 29 | + :no-members: |
| 30 | + :show-inheritance: |
| 31 | + |
| 32 | + .. autoproperty:: name |
| 33 | + .. autoproperty:: alias |
| 34 | + .. autoproperty:: length |
| 35 | + .. autoproperty:: protocol |
| 36 | + |
| 37 | + .. automethod:: id |
| 38 | + |
| 39 | + .. automethod:: read |
| 40 | + .. automethod:: make |
| 41 | + |
| 42 | + .. automethod:: __length_hint__ |
| 43 | + .. automethod:: __index__ |
| 44 | + |
| 45 | + .. automethod:: _make_data |
| 46 | + .. automethod:: _import_next_layer |
| 47 | + |
| 48 | + .. autoattribute:: __proto__ |
| 49 | + :no-value: |
| 50 | + |
| 51 | +Header Schemas |
| 52 | +-------------- |
| 53 | + |
| 54 | +.. module:: pcapkit.protocols.schema.link.frad |
| 55 | + |
| 56 | +.. autoclass:: pcapkit.protocols.schema.link.frad.FRAD |
| 57 | + :members: |
| 58 | + :show-inheritance: |
| 59 | + |
| 60 | +Data Models |
| 61 | +----------- |
| 62 | + |
| 63 | +.. module:: pcapkit.protocols.data.link.frad |
| 64 | + |
| 65 | +.. autoclass:: pcapkit.protocols.data.link.frad.FRAD |
| 66 | + :members: |
| 67 | + :show-inheritance: |
| 68 | + |
| 69 | +.. rubric:: Footnotes |
| 70 | + |
| 71 | +.. [*] :rfc:`2427` (obsoleting :rfc:`1490`) |
0 commit comments