|
17 | 17 | from pcapkit.const.pcapng.secrets_type import SecretsType as Enum_SecretsType |
18 | 18 | from pcapkit.const.pcapng.verdict_type import VerdictType as Enum_VerdictType |
19 | 19 | from pcapkit.const.reg.linktype import LinkType as Enum_LinkType |
| 20 | +from pcapkit.corekit.fields.byteorder import byteorder_callback, packet_byteorder |
20 | 21 | from pcapkit.corekit.fields.collections import OptionField |
21 | 22 | from pcapkit.corekit.fields.ipaddress import (IPv4AddressField, IPv4InterfaceField, |
22 | 23 | IPv6AddressField, IPv6InterfaceField) |
|
26 | 27 | from pcapkit.corekit.fields.strings import (BitField, BytesField, DecodedString, PaddingField, |
27 | 28 | StringField) |
28 | 29 | from pcapkit.corekit.multidict import MultiDict, OrderedMultiDict |
29 | | -from pcapkit.protocols.schema.misc.byteorder import byteorder_callback, packet_byteorder |
30 | 30 | from pcapkit.protocols.schema.schema import EnumSchema, Schema, schema_final |
31 | 31 | from pcapkit.utilities.exceptions import FieldValueError, ProtocolError, stacklevel |
32 | 32 | from pcapkit.utilities.logging import SPHINX_TYPE_CHECKING |
@@ -177,7 +177,7 @@ def shb_byteorder_callback(field: 'NumberField', packet: 'dict[str, Any]') -> 'N |
177 | 177 | one would otherwise inherit the *previous* section's byte order. The magic |
178 | 178 | is therefore also written back as ``packet['byteorder']``, which is what the |
179 | 179 | SHB's own options -- read by |
180 | | - :func:`~pcapkit.protocols.schema.misc.byteorder.byteorder_callback`, after this field -- |
| 180 | + :func:`~pcapkit.corekit.fields.byteorder.byteorder_callback`, after this field -- |
181 | 181 | resolve their byte order from. |
182 | 182 |
|
183 | 183 | A Section Header Block of 12 octets has no room for the magic, and its |
|
0 commit comments