PyTCP-net-proto 3.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- net_proto/__init__.py +851 -0
- net_proto/lib/__init__.py +31 -0
- net_proto/lib/buffer.py +33 -0
- net_proto/lib/enums.py +196 -0
- net_proto/lib/errors.py +61 -0
- net_proto/lib/inet_cksum.py +78 -0
- net_proto/lib/int_checks.py +147 -0
- net_proto/lib/packet_rx.py +105 -0
- net_proto/lib/proto.py +87 -0
- net_proto/lib/proto_assembler.py +61 -0
- net_proto/lib/proto_enum.py +146 -0
- net_proto/lib/proto_option.py +164 -0
- net_proto/lib/proto_parser.py +76 -0
- net_proto/lib/proto_struct.py +77 -0
- net_proto/lib/tracker.py +119 -0
- net_proto/protocols/arp/arp__assembler.py +79 -0
- net_proto/protocols/arp/arp__base.py +88 -0
- net_proto/protocols/arp/arp__enums.py +54 -0
- net_proto/protocols/arp/arp__errors.py +55 -0
- net_proto/protocols/arp/arp__header.py +247 -0
- net_proto/protocols/arp/arp__parser.py +147 -0
- net_proto/protocols/dhcp4/dhcp4__assembler.py +95 -0
- net_proto/protocols/dhcp4/dhcp4__base.py +108 -0
- net_proto/protocols/dhcp4/dhcp4__enums.py +96 -0
- net_proto/protocols/dhcp4/dhcp4__errors.py +55 -0
- net_proto/protocols/dhcp4/dhcp4__header.py +442 -0
- net_proto/protocols/dhcp4/dhcp4__parser.py +169 -0
- net_proto/protocols/dhcp4/options/dhcp4__option.py +67 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__client_id.py +144 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__end.py +109 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__host_name.py +143 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__lease_time.py +150 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__max_msg_size.py +160 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__message_type.py +148 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__overload.py +193 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__pad.py +109 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__param_req_list.py +160 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__rebinding_time.py +150 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__renewal_time.py +150 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__req_ip_addr.py +150 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__router.py +171 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__server_id.py +150 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__subnet_mask.py +150 -0
- net_proto/protocols/dhcp4/options/dhcp4__option__unknown.py +151 -0
- net_proto/protocols/dhcp4/options/dhcp4__options.py +463 -0
- net_proto/protocols/ethernet/ethernet__assembler.py +83 -0
- net_proto/protocols/ethernet/ethernet__base.py +112 -0
- net_proto/protocols/ethernet/ethernet__errors.py +55 -0
- net_proto/protocols/ethernet/ethernet__header.py +170 -0
- net_proto/protocols/ethernet/ethernet__parser.py +97 -0
- net_proto/protocols/ethernet_802_3/ethernet_802_3__assembler.py +84 -0
- net_proto/protocols/ethernet_802_3/ethernet_802_3__base.py +106 -0
- net_proto/protocols/ethernet_802_3/ethernet_802_3__errors.py +55 -0
- net_proto/protocols/ethernet_802_3/ethernet_802_3__header.py +175 -0
- net_proto/protocols/ethernet_802_3/ethernet_802_3__parser.py +113 -0
- net_proto/protocols/icmp4/icmp4__assembler.py +72 -0
- net_proto/protocols/icmp4/icmp4__base.py +88 -0
- net_proto/protocols/icmp4/icmp4__errors.py +55 -0
- net_proto/protocols/icmp4/icmp4__parser.py +139 -0
- net_proto/protocols/icmp4/message/icmp4__message.py +110 -0
- net_proto/protocols/icmp4/message/icmp4__message__destination_unreachable.py +298 -0
- net_proto/protocols/icmp4/message/icmp4__message__echo_reply.py +216 -0
- net_proto/protocols/icmp4/message/icmp4__message__echo_request.py +216 -0
- net_proto/protocols/icmp4/message/icmp4__message__parameter_problem.py +246 -0
- net_proto/protocols/icmp4/message/icmp4__message__time_exceeded.py +234 -0
- net_proto/protocols/icmp4/message/icmp4__message__unknown.py +172 -0
- net_proto/protocols/icmp6/icmp6__assembler.py +70 -0
- net_proto/protocols/icmp6/icmp6__base.py +90 -0
- net_proto/protocols/icmp6/icmp6__errors.py +55 -0
- net_proto/protocols/icmp6/icmp6__parser.py +202 -0
- net_proto/protocols/icmp6/message/icmp6__message.py +119 -0
- net_proto/protocols/icmp6/message/icmp6__message__destination_unreachable.py +231 -0
- net_proto/protocols/icmp6/message/icmp6__message__echo_reply.py +217 -0
- net_proto/protocols/icmp6/message/icmp6__message__echo_request.py +217 -0
- net_proto/protocols/icmp6/message/icmp6__message__packet_too_big.py +230 -0
- net_proto/protocols/icmp6/message/icmp6__message__parameter_problem.py +229 -0
- net_proto/protocols/icmp6/message/icmp6__message__time_exceeded.py +221 -0
- net_proto/protocols/icmp6/message/icmp6__message__unknown.py +173 -0
- net_proto/protocols/icmp6/message/mld2/icmp6__mld2__message__query.py +269 -0
- net_proto/protocols/icmp6/message/mld2/icmp6__mld2__message__report.py +274 -0
- net_proto/protocols/icmp6/message/mld2/icmp6__mld2__multicast_address_record.py +251 -0
- net_proto/protocols/icmp6/message/nd/icmp6__nd__message.py +89 -0
- net_proto/protocols/icmp6/message/nd/icmp6__nd__message__neighbor_advertisement.py +275 -0
- net_proto/protocols/icmp6/message/nd/icmp6__nd__message__neighbor_solicitation.py +276 -0
- net_proto/protocols/icmp6/message/nd/icmp6__nd__message__redirect.py +272 -0
- net_proto/protocols/icmp6/message/nd/icmp6__nd__message__router_advertisement.py +296 -0
- net_proto/protocols/icmp6/message/nd/icmp6__nd__message__router_solicitation.py +244 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option.py +62 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__dnssl.py +262 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__mtu.py +155 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__nonce.py +167 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__pi.py +223 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__ra_flags.py +189 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__rdnss.py +213 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__redirected_header.py +168 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__route_info.py +280 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__slla.py +147 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__tlla.py +147 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__option__unknown.py +147 -0
- net_proto/protocols/icmp6/message/nd/option/icmp6__nd__options.py +206 -0
- net_proto/protocols/ip4/ip4__assembler.py +199 -0
- net_proto/protocols/ip4/ip4__base.py +158 -0
- net_proto/protocols/ip4/ip4__errors.py +63 -0
- net_proto/protocols/ip4/ip4__header.py +350 -0
- net_proto/protocols/ip4/ip4__parser.py +195 -0
- net_proto/protocols/ip4/options/ip4__option.py +72 -0
- net_proto/protocols/ip4/options/ip4__option__cipso.py +215 -0
- net_proto/protocols/ip4/options/ip4__option__eol.py +106 -0
- net_proto/protocols/ip4/options/ip4__option__lsrr.py +190 -0
- net_proto/protocols/ip4/options/ip4__option__nop.py +106 -0
- net_proto/protocols/ip4/options/ip4__option__router_alert.py +144 -0
- net_proto/protocols/ip4/options/ip4__option__rr.py +193 -0
- net_proto/protocols/ip4/options/ip4__option__ssrr.py +190 -0
- net_proto/protocols/ip4/options/ip4__option__timestamp.py +308 -0
- net_proto/protocols/ip4/options/ip4__option__unknown.py +147 -0
- net_proto/protocols/ip4/options/ip4__options.py +223 -0
- net_proto/protocols/ip6/ip6__assembler.py +101 -0
- net_proto/protocols/ip6/ip6__base.py +159 -0
- net_proto/protocols/ip6/ip6__errors.py +63 -0
- net_proto/protocols/ip6/ip6__header.py +257 -0
- net_proto/protocols/ip6/ip6__parser.py +154 -0
- net_proto/protocols/ip6_dest_opts/ip6_dest_opts__assembler.py +108 -0
- net_proto/protocols/ip6_dest_opts/ip6_dest_opts__base.py +118 -0
- net_proto/protocols/ip6_dest_opts/ip6_dest_opts__errors.py +71 -0
- net_proto/protocols/ip6_dest_opts/ip6_dest_opts__header.py +144 -0
- net_proto/protocols/ip6_dest_opts/ip6_dest_opts__parser.py +146 -0
- net_proto/protocols/ip6_dest_opts/options/ip6_dest_opts__option.py +94 -0
- net_proto/protocols/ip6_dest_opts/options/ip6_dest_opts__option__pad1.py +111 -0
- net_proto/protocols/ip6_dest_opts/options/ip6_dest_opts__option__padn.py +146 -0
- net_proto/protocols/ip6_dest_opts/options/ip6_dest_opts__option__tunnel_encapsulation_limit.py +135 -0
- net_proto/protocols/ip6_dest_opts/options/ip6_dest_opts__option__unknown.py +150 -0
- net_proto/protocols/ip6_dest_opts/options/ip6_dest_opts__options.py +215 -0
- net_proto/protocols/ip6_frag/ip6_frag__assembler.py +81 -0
- net_proto/protocols/ip6_frag/ip6_frag__base.py +107 -0
- net_proto/protocols/ip6_frag/ip6_frag__errors.py +55 -0
- net_proto/protocols/ip6_frag/ip6_frag__header.py +165 -0
- net_proto/protocols/ip6_frag/ip6_frag__parser.py +129 -0
- net_proto/protocols/ip6_hbh/ip6_hbh__assembler.py +107 -0
- net_proto/protocols/ip6_hbh/ip6_hbh__base.py +118 -0
- net_proto/protocols/ip6_hbh/ip6_hbh__errors.py +71 -0
- net_proto/protocols/ip6_hbh/ip6_hbh__header.py +144 -0
- net_proto/protocols/ip6_hbh/ip6_hbh__parser.py +146 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__option.py +96 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__option__calipso.py +214 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__option__jumbo_payload.py +145 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__option__pad1.py +110 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__option__padn.py +146 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__option__router_alert.py +149 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__option__unknown.py +149 -0
- net_proto/protocols/ip6_hbh/options/ip6_hbh__options.py +248 -0
- net_proto/protocols/ip6_routing/ip6_routing__assembler.py +108 -0
- net_proto/protocols/ip6_routing/ip6_routing__base.py +121 -0
- net_proto/protocols/ip6_routing/ip6_routing__enums.py +64 -0
- net_proto/protocols/ip6_routing/ip6_routing__errors.py +63 -0
- net_proto/protocols/ip6_routing/ip6_routing__header.py +175 -0
- net_proto/protocols/ip6_routing/ip6_routing__parser.py +157 -0
- net_proto/protocols/llc/llc__assembler.py +80 -0
- net_proto/protocols/llc/llc__base.py +98 -0
- net_proto/protocols/llc/llc__enums.py +139 -0
- net_proto/protocols/llc/llc__errors.py +51 -0
- net_proto/protocols/llc/llc__header.py +169 -0
- net_proto/protocols/llc/llc__parser.py +106 -0
- net_proto/protocols/raw/raw__assembler.py +73 -0
- net_proto/protocols/raw/raw__base.py +128 -0
- net_proto/protocols/snap/snap__assembler.py +76 -0
- net_proto/protocols/snap/snap__base.py +95 -0
- net_proto/protocols/snap/snap__enums.py +72 -0
- net_proto/protocols/snap/snap__errors.py +51 -0
- net_proto/protocols/snap/snap__header.py +160 -0
- net_proto/protocols/snap/snap__parser.py +94 -0
- net_proto/protocols/tcp/options/tcp__option.py +62 -0
- net_proto/protocols/tcp/options/tcp__option__accecn0.py +209 -0
- net_proto/protocols/tcp/options/tcp__option__accecn1.py +208 -0
- net_proto/protocols/tcp/options/tcp__option__eol.py +105 -0
- net_proto/protocols/tcp/options/tcp__option__fastopen.py +182 -0
- net_proto/protocols/tcp/options/tcp__option__mss.py +144 -0
- net_proto/protocols/tcp/options/tcp__option__nop.py +105 -0
- net_proto/protocols/tcp/options/tcp__option__sack.py +220 -0
- net_proto/protocols/tcp/options/tcp__option__sackperm.py +137 -0
- net_proto/protocols/tcp/options/tcp__option__timestamps.py +168 -0
- net_proto/protocols/tcp/options/tcp__option__unknown.py +147 -0
- net_proto/protocols/tcp/options/tcp__option__wscale.py +157 -0
- net_proto/protocols/tcp/options/tcp__options.py +285 -0
- net_proto/protocols/tcp/tcp__assembler.py +130 -0
- net_proto/protocols/tcp/tcp__base.py +140 -0
- net_proto/protocols/tcp/tcp__errors.py +55 -0
- net_proto/protocols/tcp/tcp__header.py +348 -0
- net_proto/protocols/tcp/tcp__parser.py +145 -0
- net_proto/protocols/udp/udp__assembler.py +106 -0
- net_proto/protocols/udp/udp__base.py +122 -0
- net_proto/protocols/udp/udp__errors.py +73 -0
- net_proto/protocols/udp/udp__header.py +159 -0
- net_proto/protocols/udp/udp__parser.py +148 -0
- net_proto/py.typed +0 -0
- pytcp_net_proto-3.0.5.dist-info/METADATA +65 -0
- pytcp_net_proto-3.0.5.dist-info/RECORD +199 -0
- pytcp_net_proto-3.0.5.dist-info/WHEEL +5 -0
- pytcp_net_proto-3.0.5.dist-info/licenses/LICENSE +622 -0
- pytcp_net_proto-3.0.5.dist-info/top_level.txt +1 -0
net_proto/__init__.py
ADDED
|
@@ -0,0 +1,851 @@
|
|
|
1
|
+
################################################################################
|
|
2
|
+
## ##
|
|
3
|
+
## PyTCP - Python TCP/IP stack ##
|
|
4
|
+
## Copyright (C) 2020-present Sebastian Majewski ##
|
|
5
|
+
## ##
|
|
6
|
+
## This program is free software: you can redistribute it and/or modify ##
|
|
7
|
+
## it under the terms of the GNU General Public License as published by ##
|
|
8
|
+
## the Free Software Foundation, either version 3 of the License, or ##
|
|
9
|
+
## (at your option) any later version. ##
|
|
10
|
+
## ##
|
|
11
|
+
## This program is distributed in the hope that it will be useful, ##
|
|
12
|
+
## but WITHOUT ANY WARRANTY; without even the implied warranty of ##
|
|
13
|
+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ##
|
|
14
|
+
## GNU General Public License for more details. ##
|
|
15
|
+
## ##
|
|
16
|
+
## You should have received a copy of the GNU General Public License ##
|
|
17
|
+
## along with this program. If not, see <https://www.gnu.org/licenses/>. ##
|
|
18
|
+
## ##
|
|
19
|
+
## Author's email: ccie18643@gmail.com ##
|
|
20
|
+
## Github repository: https://github.com/ccie18643/PyTCP ##
|
|
21
|
+
## ##
|
|
22
|
+
################################################################################
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
This package contains classes representing network protocols.
|
|
27
|
+
|
|
28
|
+
net_proto/__init__.py
|
|
29
|
+
|
|
30
|
+
ver 3.0.5
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
from net_proto.lib.enums import EtherType, IpProto
|
|
34
|
+
from net_proto.lib.errors import PacketValidationError
|
|
35
|
+
from net_proto.lib.inet_cksum import inet_cksum
|
|
36
|
+
from net_proto.lib.int_checks import (
|
|
37
|
+
UINT_2__MAX,
|
|
38
|
+
UINT_2__MIN,
|
|
39
|
+
UINT_4__MAX,
|
|
40
|
+
UINT_4__MIN,
|
|
41
|
+
UINT_6__MAX,
|
|
42
|
+
UINT_6__MIN,
|
|
43
|
+
UINT_8__MAX,
|
|
44
|
+
UINT_8__MIN,
|
|
45
|
+
UINT_13__MAX,
|
|
46
|
+
UINT_13__MIN,
|
|
47
|
+
UINT_16__MAX,
|
|
48
|
+
UINT_16__MIN,
|
|
49
|
+
UINT_20__MAX,
|
|
50
|
+
UINT_20__MIN,
|
|
51
|
+
UINT_24__MAX,
|
|
52
|
+
UINT_24__MIN,
|
|
53
|
+
UINT_32__MAX,
|
|
54
|
+
UINT_32__MIN,
|
|
55
|
+
)
|
|
56
|
+
from net_proto.lib.packet_rx import PacketRx
|
|
57
|
+
from net_proto.lib.tracker import Tracker
|
|
58
|
+
from net_proto.protocols.arp.arp__assembler import ArpAssembler
|
|
59
|
+
from net_proto.protocols.arp.arp__enums import (
|
|
60
|
+
ARP__HARDWARE_LEN__ETHERNET,
|
|
61
|
+
ARP__PROTOCOL_LEN__IP4,
|
|
62
|
+
ArpHardwareType,
|
|
63
|
+
ArpOperation,
|
|
64
|
+
)
|
|
65
|
+
from net_proto.protocols.arp.arp__errors import (
|
|
66
|
+
ArpIntegrityError,
|
|
67
|
+
ArpSanityError,
|
|
68
|
+
)
|
|
69
|
+
from net_proto.protocols.arp.arp__header import (
|
|
70
|
+
ARP__HEADER__LEN,
|
|
71
|
+
ArpHeader,
|
|
72
|
+
)
|
|
73
|
+
from net_proto.protocols.arp.arp__parser import ArpParser
|
|
74
|
+
from net_proto.protocols.dhcp4.dhcp4__enums import (
|
|
75
|
+
Dhcp4MessageType,
|
|
76
|
+
Dhcp4Operation,
|
|
77
|
+
)
|
|
78
|
+
from net_proto.protocols.dhcp4.dhcp4__errors import (
|
|
79
|
+
Dhcp4IntegrityError,
|
|
80
|
+
Dhcp4SanityError,
|
|
81
|
+
)
|
|
82
|
+
from net_proto.protocols.dhcp4.dhcp4__header import (
|
|
83
|
+
DHCP4__HEADER__FILE__MAX_LEN,
|
|
84
|
+
DHCP4__HEADER__LEN,
|
|
85
|
+
DHCP4__HEADER__SNAME__MAX_LEN,
|
|
86
|
+
Dhcp4Header,
|
|
87
|
+
)
|
|
88
|
+
from net_proto.protocols.dhcp4.dhcp4__parser import Dhcp4Parser
|
|
89
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option import (
|
|
90
|
+
DHCP4__OPTION__LEN,
|
|
91
|
+
Dhcp4OptionType,
|
|
92
|
+
)
|
|
93
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__client_id import (
|
|
94
|
+
Dhcp4OptionClientId,
|
|
95
|
+
)
|
|
96
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__end import (
|
|
97
|
+
DHCP4__OPTION__END__LEN,
|
|
98
|
+
Dhcp4OptionEnd,
|
|
99
|
+
)
|
|
100
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__host_name import (
|
|
101
|
+
Dhcp4OptionHostName,
|
|
102
|
+
)
|
|
103
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__lease_time import (
|
|
104
|
+
Dhcp4OptionLeaseTime,
|
|
105
|
+
)
|
|
106
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__max_msg_size import (
|
|
107
|
+
Dhcp4OptionMaxMsgSize,
|
|
108
|
+
)
|
|
109
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__message_type import (
|
|
110
|
+
Dhcp4OptionMessageType,
|
|
111
|
+
)
|
|
112
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__overload import (
|
|
113
|
+
Dhcp4OptionOverload,
|
|
114
|
+
)
|
|
115
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__pad import (
|
|
116
|
+
DHCP4__OPTION__PAD__LEN,
|
|
117
|
+
Dhcp4OptionPad,
|
|
118
|
+
)
|
|
119
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__param_req_list import (
|
|
120
|
+
Dhcp4OptionParamReqList,
|
|
121
|
+
)
|
|
122
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__rebinding_time import (
|
|
123
|
+
Dhcp4OptionRebindingTime,
|
|
124
|
+
)
|
|
125
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__renewal_time import (
|
|
126
|
+
Dhcp4OptionRenewalTime,
|
|
127
|
+
)
|
|
128
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__req_ip_addr import (
|
|
129
|
+
Dhcp4OptionReqIpAddr,
|
|
130
|
+
)
|
|
131
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__router import (
|
|
132
|
+
Dhcp4OptionRouter,
|
|
133
|
+
)
|
|
134
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__server_id import (
|
|
135
|
+
Dhcp4OptionServerId,
|
|
136
|
+
)
|
|
137
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__subnet_mask import (
|
|
138
|
+
Dhcp4OptionSubnetMask,
|
|
139
|
+
)
|
|
140
|
+
from net_proto.protocols.dhcp4.options.dhcp4__option__unknown import (
|
|
141
|
+
Dhcp4OptionUnknown,
|
|
142
|
+
)
|
|
143
|
+
from net_proto.protocols.dhcp4.options.dhcp4__options import Dhcp4Options
|
|
144
|
+
from net_proto.protocols.ethernet.ethernet__assembler import EthernetAssembler
|
|
145
|
+
from net_proto.protocols.ethernet.ethernet__base import EthernetPayload
|
|
146
|
+
from net_proto.protocols.ethernet.ethernet__errors import (
|
|
147
|
+
EthernetIntegrityError,
|
|
148
|
+
EthernetSanityError,
|
|
149
|
+
)
|
|
150
|
+
from net_proto.protocols.ethernet.ethernet__header import (
|
|
151
|
+
ETHERNET__HEADER__LEN,
|
|
152
|
+
EthernetHeader,
|
|
153
|
+
)
|
|
154
|
+
from net_proto.protocols.ethernet.ethernet__parser import EthernetParser
|
|
155
|
+
from net_proto.protocols.ethernet_802_3.ethernet_802_3__assembler import (
|
|
156
|
+
Ethernet8023Assembler,
|
|
157
|
+
)
|
|
158
|
+
from net_proto.protocols.ethernet_802_3.ethernet_802_3__base import (
|
|
159
|
+
Ethernet8023Payload,
|
|
160
|
+
)
|
|
161
|
+
from net_proto.protocols.ethernet_802_3.ethernet_802_3__errors import (
|
|
162
|
+
Ethernet8023IntegrityError,
|
|
163
|
+
Ethernet8023SanityError,
|
|
164
|
+
)
|
|
165
|
+
from net_proto.protocols.ethernet_802_3.ethernet_802_3__header import (
|
|
166
|
+
ETHERNET_802_3__HEADER__LEN,
|
|
167
|
+
ETHERNET_802_3__PACKET__MAX_LEN,
|
|
168
|
+
ETHERNET_802_3__PAYLOAD__MAX_LEN,
|
|
169
|
+
Ethernet8023Header,
|
|
170
|
+
)
|
|
171
|
+
from net_proto.protocols.ethernet_802_3.ethernet_802_3__parser import (
|
|
172
|
+
Ethernet8023Parser,
|
|
173
|
+
)
|
|
174
|
+
from net_proto.protocols.icmp4.icmp4__assembler import Icmp4Assembler
|
|
175
|
+
from net_proto.protocols.icmp4.icmp4__errors import (
|
|
176
|
+
Icmp4IntegrityError,
|
|
177
|
+
Icmp4SanityError,
|
|
178
|
+
)
|
|
179
|
+
from net_proto.protocols.icmp4.icmp4__parser import Icmp4Parser
|
|
180
|
+
from net_proto.protocols.icmp4.message.icmp4__message import (
|
|
181
|
+
Icmp4Code,
|
|
182
|
+
Icmp4Message,
|
|
183
|
+
Icmp4Type,
|
|
184
|
+
)
|
|
185
|
+
from net_proto.protocols.icmp4.message.icmp4__message__destination_unreachable import (
|
|
186
|
+
ICMP4__DESTINATION_UNREACHABLE__LEN,
|
|
187
|
+
Icmp4DestinationUnreachableCode,
|
|
188
|
+
Icmp4MessageDestinationUnreachable,
|
|
189
|
+
)
|
|
190
|
+
from net_proto.protocols.icmp4.message.icmp4__message__echo_reply import (
|
|
191
|
+
ICMP4__ECHO_REPLY__LEN,
|
|
192
|
+
Icmp4EchoReplyCode,
|
|
193
|
+
Icmp4MessageEchoReply,
|
|
194
|
+
)
|
|
195
|
+
from net_proto.protocols.icmp4.message.icmp4__message__echo_request import (
|
|
196
|
+
ICMP4__ECHO_REQUEST__LEN,
|
|
197
|
+
Icmp4EchoRequestCode,
|
|
198
|
+
Icmp4MessageEchoRequest,
|
|
199
|
+
)
|
|
200
|
+
from net_proto.protocols.icmp4.message.icmp4__message__parameter_problem import (
|
|
201
|
+
ICMP4__PARAMETER_PROBLEM__LEN,
|
|
202
|
+
Icmp4MessageParameterProblem,
|
|
203
|
+
Icmp4ParameterProblemCode,
|
|
204
|
+
)
|
|
205
|
+
from net_proto.protocols.icmp4.message.icmp4__message__time_exceeded import (
|
|
206
|
+
ICMP4__TIME_EXCEEDED__LEN,
|
|
207
|
+
Icmp4MessageTimeExceeded,
|
|
208
|
+
Icmp4TimeExceededCode,
|
|
209
|
+
)
|
|
210
|
+
from net_proto.protocols.icmp4.message.icmp4__message__unknown import (
|
|
211
|
+
Icmp4MessageUnknown,
|
|
212
|
+
)
|
|
213
|
+
from net_proto.protocols.icmp6.icmp6__assembler import Icmp6Assembler
|
|
214
|
+
from net_proto.protocols.icmp6.icmp6__base import Icmp6
|
|
215
|
+
from net_proto.protocols.icmp6.icmp6__errors import (
|
|
216
|
+
Icmp6IntegrityError,
|
|
217
|
+
Icmp6SanityError,
|
|
218
|
+
)
|
|
219
|
+
from net_proto.protocols.icmp6.icmp6__parser import Icmp6Parser
|
|
220
|
+
from net_proto.protocols.icmp6.message.icmp6__message import (
|
|
221
|
+
Icmp6Code,
|
|
222
|
+
Icmp6Message,
|
|
223
|
+
Icmp6Type,
|
|
224
|
+
)
|
|
225
|
+
from net_proto.protocols.icmp6.message.icmp6__message__destination_unreachable import (
|
|
226
|
+
ICMP6__DESTINATION_UNREACHABLE__LEN,
|
|
227
|
+
Icmp6DestinationUnreachableCode,
|
|
228
|
+
Icmp6MessageDestinationUnreachable,
|
|
229
|
+
)
|
|
230
|
+
from net_proto.protocols.icmp6.message.icmp6__message__echo_reply import (
|
|
231
|
+
ICMP6__ECHO_REPLY__LEN,
|
|
232
|
+
Icmp6EchoReplyCode,
|
|
233
|
+
Icmp6MessageEchoReply,
|
|
234
|
+
)
|
|
235
|
+
from net_proto.protocols.icmp6.message.icmp6__message__echo_request import (
|
|
236
|
+
ICMP6__ECHO_REQUEST__LEN,
|
|
237
|
+
Icmp6EchoRequestCode,
|
|
238
|
+
Icmp6MessageEchoRequest,
|
|
239
|
+
)
|
|
240
|
+
from net_proto.protocols.icmp6.message.icmp6__message__packet_too_big import (
|
|
241
|
+
ICMP6__PACKET_TOO_BIG__LEN,
|
|
242
|
+
Icmp6MessagePacketTooBig,
|
|
243
|
+
Icmp6PacketTooBigCode,
|
|
244
|
+
)
|
|
245
|
+
from net_proto.protocols.icmp6.message.icmp6__message__parameter_problem import (
|
|
246
|
+
ICMP6__PARAMETER_PROBLEM__LEN,
|
|
247
|
+
Icmp6MessageParameterProblem,
|
|
248
|
+
Icmp6ParameterProblemCode,
|
|
249
|
+
)
|
|
250
|
+
from net_proto.protocols.icmp6.message.icmp6__message__time_exceeded import (
|
|
251
|
+
ICMP6__TIME_EXCEEDED__LEN,
|
|
252
|
+
Icmp6MessageTimeExceeded,
|
|
253
|
+
Icmp6TimeExceededCode,
|
|
254
|
+
)
|
|
255
|
+
from net_proto.protocols.icmp6.message.icmp6__message__unknown import (
|
|
256
|
+
Icmp6MessageUnknown,
|
|
257
|
+
)
|
|
258
|
+
from net_proto.protocols.icmp6.message.mld2.icmp6__mld2__message__query import (
|
|
259
|
+
ICMP6__MLD2__QUERY__LEN,
|
|
260
|
+
Icmp6Mld2MessageQuery,
|
|
261
|
+
Icmp6Mld2QueryCode,
|
|
262
|
+
)
|
|
263
|
+
from net_proto.protocols.icmp6.message.mld2.icmp6__mld2__message__report import (
|
|
264
|
+
ICMP6__MLD2__REPORT__LEN,
|
|
265
|
+
Icmp6Mld2MessageReport,
|
|
266
|
+
Icmp6Mld2ReportCode,
|
|
267
|
+
)
|
|
268
|
+
from net_proto.protocols.icmp6.message.mld2.icmp6__mld2__multicast_address_record import (
|
|
269
|
+
Icmp6Mld2MulticastAddressRecord,
|
|
270
|
+
Icmp6Mld2MulticastAddressRecordType,
|
|
271
|
+
)
|
|
272
|
+
from net_proto.protocols.icmp6.message.nd.icmp6__nd__message import (
|
|
273
|
+
Icmp6NdMessage,
|
|
274
|
+
)
|
|
275
|
+
from net_proto.protocols.icmp6.message.nd.icmp6__nd__message__neighbor_advertisement import (
|
|
276
|
+
ICMP6__ND__NEIGHBOR_ADVERTISEMENT__LEN,
|
|
277
|
+
Icmp6NdMessageNeighborAdvertisement,
|
|
278
|
+
Icmp6NdNeighborAdvertisementCode,
|
|
279
|
+
)
|
|
280
|
+
from net_proto.protocols.icmp6.message.nd.icmp6__nd__message__neighbor_solicitation import (
|
|
281
|
+
ICMP6__ND__NEIGHBOR_SOLICITATION__LEN,
|
|
282
|
+
Icmp6NdMessageNeighborSolicitation,
|
|
283
|
+
Icmp6NdNeighborSolicitationCode,
|
|
284
|
+
)
|
|
285
|
+
from net_proto.protocols.icmp6.message.nd.icmp6__nd__message__redirect import (
|
|
286
|
+
ICMP6__ND__REDIRECT__LEN,
|
|
287
|
+
Icmp6NdMessageRedirect,
|
|
288
|
+
Icmp6NdRedirectCode,
|
|
289
|
+
)
|
|
290
|
+
from net_proto.protocols.icmp6.message.nd.icmp6__nd__message__router_advertisement import (
|
|
291
|
+
ICMP6__ND__ROUTER_ADVERTISEMENT__LEN,
|
|
292
|
+
Icmp6NdMessageRouterAdvertisement,
|
|
293
|
+
Icmp6NdRouterAdvertisementCode,
|
|
294
|
+
)
|
|
295
|
+
from net_proto.protocols.icmp6.message.nd.icmp6__nd__message__router_solicitation import (
|
|
296
|
+
ICMP6__ND__ROUTER_SOLICITATION__LEN,
|
|
297
|
+
Icmp6NdMessageRouterSolicitation,
|
|
298
|
+
Icmp6NdRouterSolicitationCode,
|
|
299
|
+
)
|
|
300
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option import (
|
|
301
|
+
ICMP6__ND__OPTION__LEN,
|
|
302
|
+
Icmp6NdOption,
|
|
303
|
+
Icmp6NdOptionType,
|
|
304
|
+
)
|
|
305
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__dnssl import (
|
|
306
|
+
Icmp6NdOptionDnssl,
|
|
307
|
+
)
|
|
308
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__mtu import (
|
|
309
|
+
ICMP6__ND__OPTION__MTU__LEN,
|
|
310
|
+
Icmp6NdOptionMtu,
|
|
311
|
+
)
|
|
312
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__nonce import (
|
|
313
|
+
Icmp6NdOptionNonce,
|
|
314
|
+
)
|
|
315
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__pi import (
|
|
316
|
+
ICMP6__ND__OPTION__PI__LEN,
|
|
317
|
+
Icmp6NdOptionPi,
|
|
318
|
+
)
|
|
319
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__ra_flags import (
|
|
320
|
+
Icmp6NdOptionRaFlags,
|
|
321
|
+
)
|
|
322
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__rdnss import (
|
|
323
|
+
Icmp6NdOptionRdnss,
|
|
324
|
+
)
|
|
325
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__redirected_header import (
|
|
326
|
+
ICMP6__ND__OPTION__REDIRECTED_HEADER__LEN,
|
|
327
|
+
Icmp6NdOptionRedirectedHeader,
|
|
328
|
+
)
|
|
329
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__route_info import (
|
|
330
|
+
Icmp6NdOptionRouteInfo,
|
|
331
|
+
Icmp6NdRoutePreference,
|
|
332
|
+
)
|
|
333
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__slla import (
|
|
334
|
+
ICMP6__ND__OPTION__SLLA__LEN,
|
|
335
|
+
Icmp6NdOptionSlla,
|
|
336
|
+
)
|
|
337
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__tlla import (
|
|
338
|
+
ICMP6__ND__OPTION__TLLA__LEN,
|
|
339
|
+
Icmp6NdOptionTlla,
|
|
340
|
+
)
|
|
341
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__option__unknown import (
|
|
342
|
+
Icmp6NdOptionUnknown,
|
|
343
|
+
)
|
|
344
|
+
from net_proto.protocols.icmp6.message.nd.option.icmp6__nd__options import (
|
|
345
|
+
Icmp6NdOptions,
|
|
346
|
+
)
|
|
347
|
+
from net_proto.protocols.ip4.ip4__assembler import (
|
|
348
|
+
Ip4Assembler,
|
|
349
|
+
Ip4FragAssembler,
|
|
350
|
+
)
|
|
351
|
+
from net_proto.protocols.ip4.ip4__base import Ip4Payload
|
|
352
|
+
from net_proto.protocols.ip4.ip4__errors import (
|
|
353
|
+
Ip4IntegrityError,
|
|
354
|
+
Ip4SanityError,
|
|
355
|
+
)
|
|
356
|
+
from net_proto.protocols.ip4.ip4__header import (
|
|
357
|
+
IP4__DEFAULT_TTL,
|
|
358
|
+
IP4__HEADER__LEN,
|
|
359
|
+
IP4__HEADER__MAX_LEN,
|
|
360
|
+
IP4__MIN_MTU,
|
|
361
|
+
IP4__PAYLOAD__MAX_LEN,
|
|
362
|
+
Ip4Header,
|
|
363
|
+
)
|
|
364
|
+
from net_proto.protocols.ip4.ip4__parser import Ip4Parser
|
|
365
|
+
from net_proto.protocols.ip4.options.ip4__option import (
|
|
366
|
+
IP4__OPTION__LEN,
|
|
367
|
+
Ip4Option,
|
|
368
|
+
Ip4OptionType,
|
|
369
|
+
)
|
|
370
|
+
from net_proto.protocols.ip4.options.ip4__option__cipso import ( # noqa: F401
|
|
371
|
+
IP4__OPTION__CIPSO__DOI_LEN,
|
|
372
|
+
IP4__OPTION__CIPSO__HDR_LEN,
|
|
373
|
+
IP4__OPTION__CIPSO__MIN_LEN,
|
|
374
|
+
IP4__OPTION__CIPSO__TAG_HDR_LEN,
|
|
375
|
+
Ip4OptionCipso,
|
|
376
|
+
)
|
|
377
|
+
from net_proto.protocols.ip4.options.ip4__option__eol import (
|
|
378
|
+
IP4__OPTION__EOL__LEN,
|
|
379
|
+
Ip4OptionEol,
|
|
380
|
+
)
|
|
381
|
+
from net_proto.protocols.ip4.options.ip4__option__lsrr import ( # noqa: F401
|
|
382
|
+
IP4__OPTION__LSRR__HDR_LEN,
|
|
383
|
+
IP4__OPTION__LSRR__MIN_LEN,
|
|
384
|
+
IP4__OPTION__LSRR__POINTER_BASE,
|
|
385
|
+
IP4__OPTION__LSRR__SLOT_LEN,
|
|
386
|
+
Ip4OptionLsrr,
|
|
387
|
+
)
|
|
388
|
+
from net_proto.protocols.ip4.options.ip4__option__nop import (
|
|
389
|
+
IP4__OPTION__NOP__LEN,
|
|
390
|
+
Ip4OptionNop,
|
|
391
|
+
)
|
|
392
|
+
from net_proto.protocols.ip4.options.ip4__option__router_alert import ( # noqa: F401
|
|
393
|
+
IP4__OPTION__ROUTER_ALERT__LEN,
|
|
394
|
+
IP4__OPTION__ROUTER_ALERT__VALUE__EXAMINE,
|
|
395
|
+
Ip4OptionRouterAlert,
|
|
396
|
+
)
|
|
397
|
+
from net_proto.protocols.ip4.options.ip4__option__rr import ( # noqa: F401
|
|
398
|
+
IP4__OPTION__RR__HDR_LEN,
|
|
399
|
+
IP4__OPTION__RR__MIN_LEN,
|
|
400
|
+
IP4__OPTION__RR__POINTER_BASE,
|
|
401
|
+
IP4__OPTION__RR__SLOT_LEN,
|
|
402
|
+
Ip4OptionRr,
|
|
403
|
+
)
|
|
404
|
+
from net_proto.protocols.ip4.options.ip4__option__ssrr import ( # noqa: F401
|
|
405
|
+
IP4__OPTION__SSRR__HDR_LEN,
|
|
406
|
+
IP4__OPTION__SSRR__MIN_LEN,
|
|
407
|
+
IP4__OPTION__SSRR__POINTER_BASE,
|
|
408
|
+
IP4__OPTION__SSRR__SLOT_LEN,
|
|
409
|
+
Ip4OptionSsrr,
|
|
410
|
+
)
|
|
411
|
+
from net_proto.protocols.ip4.options.ip4__option__timestamp import ( # noqa: F401
|
|
412
|
+
IP4__OPTION__TIMESTAMP__ENTRY_LEN__TS_ONLY,
|
|
413
|
+
IP4__OPTION__TIMESTAMP__ENTRY_LEN__WITH_ADDR,
|
|
414
|
+
IP4__OPTION__TIMESTAMP__FLAG__TS_AND_ADDR,
|
|
415
|
+
IP4__OPTION__TIMESTAMP__FLAG__TS_ONLY,
|
|
416
|
+
IP4__OPTION__TIMESTAMP__FLAG__TS_PRESPEC,
|
|
417
|
+
IP4__OPTION__TIMESTAMP__HDR_LEN,
|
|
418
|
+
IP4__OPTION__TIMESTAMP__POINTER_BASE,
|
|
419
|
+
Ip4OptionTimestamp,
|
|
420
|
+
Ip4TimestampEntry,
|
|
421
|
+
)
|
|
422
|
+
from net_proto.protocols.ip4.options.ip4__option__unknown import (
|
|
423
|
+
Ip4OptionUnknown,
|
|
424
|
+
)
|
|
425
|
+
from net_proto.protocols.ip4.options.ip4__options import (
|
|
426
|
+
IP4__OPTIONS__MAX_LEN,
|
|
427
|
+
Ip4Options,
|
|
428
|
+
)
|
|
429
|
+
from net_proto.protocols.ip6.ip6__assembler import Ip6Assembler
|
|
430
|
+
from net_proto.protocols.ip6.ip6__base import Ip6Payload
|
|
431
|
+
from net_proto.protocols.ip6.ip6__errors import (
|
|
432
|
+
Ip6IntegrityError,
|
|
433
|
+
Ip6SanityError,
|
|
434
|
+
)
|
|
435
|
+
from net_proto.protocols.ip6.ip6__header import (
|
|
436
|
+
IP6__DEFAULT_HOP_LIMIT,
|
|
437
|
+
IP6__HEADER__LEN,
|
|
438
|
+
IP6__MIN_MTU,
|
|
439
|
+
IP6__PAYLOAD__MAX_LEN,
|
|
440
|
+
Ip6Header,
|
|
441
|
+
)
|
|
442
|
+
from net_proto.protocols.ip6.ip6__parser import Ip6Parser
|
|
443
|
+
from net_proto.protocols.ip6_frag.ip6_frag__assembler import Ip6FragAssembler
|
|
444
|
+
from net_proto.protocols.ip6_frag.ip6_frag__errors import (
|
|
445
|
+
Ip6FragIntegrityError,
|
|
446
|
+
Ip6FragSanityError,
|
|
447
|
+
)
|
|
448
|
+
from net_proto.protocols.ip6_frag.ip6_frag__header import (
|
|
449
|
+
IP6_FRAG__HEADER__LEN,
|
|
450
|
+
Ip6FragHeader,
|
|
451
|
+
)
|
|
452
|
+
from net_proto.protocols.ip6_frag.ip6_frag__parser import Ip6FragParser
|
|
453
|
+
from net_proto.protocols.llc.llc__assembler import LlcAssembler
|
|
454
|
+
from net_proto.protocols.llc.llc__base import Llc
|
|
455
|
+
from net_proto.protocols.llc.llc__enums import LlcControl, LlcSap
|
|
456
|
+
from net_proto.protocols.llc.llc__errors import (
|
|
457
|
+
LlcIntegrityError,
|
|
458
|
+
LlcSanityError,
|
|
459
|
+
)
|
|
460
|
+
from net_proto.protocols.llc.llc__header import (
|
|
461
|
+
LLC__HEADER__LEN,
|
|
462
|
+
LlcHeader,
|
|
463
|
+
)
|
|
464
|
+
from net_proto.protocols.llc.llc__parser import LlcParser
|
|
465
|
+
from net_proto.protocols.raw.raw__assembler import RawAssembler
|
|
466
|
+
from net_proto.protocols.snap.snap__assembler import SnapAssembler
|
|
467
|
+
from net_proto.protocols.snap.snap__base import Snap
|
|
468
|
+
from net_proto.protocols.snap.snap__enums import SnapCiscoProtocol, SnapOui
|
|
469
|
+
from net_proto.protocols.snap.snap__errors import (
|
|
470
|
+
SnapIntegrityError,
|
|
471
|
+
SnapSanityError,
|
|
472
|
+
)
|
|
473
|
+
from net_proto.protocols.snap.snap__header import (
|
|
474
|
+
SNAP__HEADER__LEN,
|
|
475
|
+
SnapHeader,
|
|
476
|
+
)
|
|
477
|
+
from net_proto.protocols.snap.snap__parser import SnapParser
|
|
478
|
+
from net_proto.protocols.tcp.options.tcp__option import (
|
|
479
|
+
TCP__OPTION__LEN,
|
|
480
|
+
TcpOption,
|
|
481
|
+
TcpOptionType,
|
|
482
|
+
)
|
|
483
|
+
from net_proto.protocols.tcp.options.tcp__option__accecn0 import (
|
|
484
|
+
TCP__OPTION__ACCECN0__LEN,
|
|
485
|
+
TcpOptionAccecn0,
|
|
486
|
+
)
|
|
487
|
+
from net_proto.protocols.tcp.options.tcp__option__accecn1 import (
|
|
488
|
+
TCP__OPTION__ACCECN1__LEN,
|
|
489
|
+
TcpOptionAccecn1,
|
|
490
|
+
)
|
|
491
|
+
from net_proto.protocols.tcp.options.tcp__option__eol import (
|
|
492
|
+
TCP__OPTION__EOL__LEN,
|
|
493
|
+
TcpOptionEol,
|
|
494
|
+
)
|
|
495
|
+
from net_proto.protocols.tcp.options.tcp__option__fastopen import (
|
|
496
|
+
TCP__OPTION__FASTOPEN__COOKIE_LEN_MAX,
|
|
497
|
+
TCP__OPTION__FASTOPEN__COOKIE_LEN_MIN,
|
|
498
|
+
TCP__OPTION__FASTOPEN__LEN_MIN,
|
|
499
|
+
TcpOptionFastOpen,
|
|
500
|
+
)
|
|
501
|
+
from net_proto.protocols.tcp.options.tcp__option__mss import (
|
|
502
|
+
TCP__OPTION__MSS__LEN,
|
|
503
|
+
TcpOptionMss,
|
|
504
|
+
)
|
|
505
|
+
from net_proto.protocols.tcp.options.tcp__option__nop import (
|
|
506
|
+
TCP__OPTION__NOP__LEN,
|
|
507
|
+
TcpOptionNop,
|
|
508
|
+
)
|
|
509
|
+
from net_proto.protocols.tcp.options.tcp__option__sack import (
|
|
510
|
+
TCP__OPTION__SACK__BLOCK_LEN,
|
|
511
|
+
TCP__OPTION__SACK__MAX_BLOCK_NUM,
|
|
512
|
+
TcpOptionSack,
|
|
513
|
+
TcpSackBlock,
|
|
514
|
+
)
|
|
515
|
+
from net_proto.protocols.tcp.options.tcp__option__sackperm import (
|
|
516
|
+
TCP__OPTION__SACKPERM__LEN,
|
|
517
|
+
TcpOptionSackperm,
|
|
518
|
+
)
|
|
519
|
+
from net_proto.protocols.tcp.options.tcp__option__timestamps import (
|
|
520
|
+
TCP__OPTION__TIMESTAMPS__LEN,
|
|
521
|
+
TcpOptionTimestamps,
|
|
522
|
+
TcpTimestamps,
|
|
523
|
+
)
|
|
524
|
+
from net_proto.protocols.tcp.options.tcp__option__unknown import (
|
|
525
|
+
TcpOptionUnknown,
|
|
526
|
+
)
|
|
527
|
+
from net_proto.protocols.tcp.options.tcp__option__wscale import (
|
|
528
|
+
TCP__OPTION__WSCALE__LEN,
|
|
529
|
+
TCP__OPTION__WSCALE__MAX_VALUE,
|
|
530
|
+
TcpOptionWscale,
|
|
531
|
+
)
|
|
532
|
+
from net_proto.protocols.tcp.options.tcp__options import (
|
|
533
|
+
TCP__OPTIONS__MAX_LEN,
|
|
534
|
+
TcpOptions,
|
|
535
|
+
)
|
|
536
|
+
from net_proto.protocols.tcp.tcp__assembler import TcpAssembler
|
|
537
|
+
from net_proto.protocols.tcp.tcp__errors import (
|
|
538
|
+
TcpIntegrityError,
|
|
539
|
+
TcpSanityError,
|
|
540
|
+
)
|
|
541
|
+
from net_proto.protocols.tcp.tcp__header import TCP__HEADER__LEN, TcpHeader
|
|
542
|
+
from net_proto.protocols.tcp.tcp__parser import TcpParser
|
|
543
|
+
from net_proto.protocols.udp.udp__assembler import UdpAssembler
|
|
544
|
+
from net_proto.protocols.udp.udp__errors import (
|
|
545
|
+
UdpIntegrityError,
|
|
546
|
+
UdpSanityError,
|
|
547
|
+
)
|
|
548
|
+
from net_proto.protocols.udp.udp__header import UDP__HEADER__LEN, UdpHeader
|
|
549
|
+
from net_proto.protocols.udp.udp__parser import UdpParser
|
|
550
|
+
|
|
551
|
+
__version__: str = "3.0.5"
|
|
552
|
+
|
|
553
|
+
__all__ = [
|
|
554
|
+
"ARP__HARDWARE_LEN__ETHERNET",
|
|
555
|
+
"ARP__HEADER__LEN",
|
|
556
|
+
"ARP__PROTOCOL_LEN__IP4",
|
|
557
|
+
"ArpAssembler",
|
|
558
|
+
"ArpHardwareType",
|
|
559
|
+
"ArpHeader",
|
|
560
|
+
"ArpIntegrityError",
|
|
561
|
+
"ArpOperation",
|
|
562
|
+
"ArpParser",
|
|
563
|
+
"ArpSanityError",
|
|
564
|
+
"DHCP4__HEADER__FILE__MAX_LEN",
|
|
565
|
+
"DHCP4__HEADER__LEN",
|
|
566
|
+
"DHCP4__HEADER__SNAME__MAX_LEN",
|
|
567
|
+
"DHCP4__OPTION__END__LEN",
|
|
568
|
+
"DHCP4__OPTION__LEN",
|
|
569
|
+
"DHCP4__OPTION__PAD__LEN",
|
|
570
|
+
"Dhcp4Header",
|
|
571
|
+
"Dhcp4IntegrityError",
|
|
572
|
+
"Dhcp4MessageType",
|
|
573
|
+
"Dhcp4Operation",
|
|
574
|
+
"Dhcp4OptionClientId",
|
|
575
|
+
"Dhcp4OptionEnd",
|
|
576
|
+
"Dhcp4OptionHostName",
|
|
577
|
+
"Dhcp4OptionLeaseTime",
|
|
578
|
+
"Dhcp4OptionMaxMsgSize",
|
|
579
|
+
"Dhcp4OptionMessageType",
|
|
580
|
+
"Dhcp4OptionOverload",
|
|
581
|
+
"Dhcp4OptionPad",
|
|
582
|
+
"Dhcp4OptionParamReqList",
|
|
583
|
+
"Dhcp4OptionRebindingTime",
|
|
584
|
+
"Dhcp4OptionRenewalTime",
|
|
585
|
+
"Dhcp4OptionReqIpAddr",
|
|
586
|
+
"Dhcp4OptionRouter",
|
|
587
|
+
"Dhcp4OptionServerId",
|
|
588
|
+
"Dhcp4OptionSubnetMask",
|
|
589
|
+
"Dhcp4OptionType",
|
|
590
|
+
"Dhcp4OptionUnknown",
|
|
591
|
+
"Dhcp4Options",
|
|
592
|
+
"Dhcp4Parser",
|
|
593
|
+
"Dhcp4SanityError",
|
|
594
|
+
"ETHERNET_802_3__HEADER__LEN",
|
|
595
|
+
"ETHERNET_802_3__PACKET__MAX_LEN",
|
|
596
|
+
"ETHERNET_802_3__PAYLOAD__MAX_LEN",
|
|
597
|
+
"ETHERNET__HEADER__LEN",
|
|
598
|
+
"EtherType",
|
|
599
|
+
"Ethernet8023Assembler",
|
|
600
|
+
"Ethernet8023Header",
|
|
601
|
+
"Ethernet8023IntegrityError",
|
|
602
|
+
"Ethernet8023Parser",
|
|
603
|
+
"Ethernet8023Payload",
|
|
604
|
+
"Ethernet8023SanityError",
|
|
605
|
+
"EthernetAssembler",
|
|
606
|
+
"EthernetHeader",
|
|
607
|
+
"EthernetIntegrityError",
|
|
608
|
+
"EthernetParser",
|
|
609
|
+
"EthernetPayload",
|
|
610
|
+
"EthernetSanityError",
|
|
611
|
+
"LLC__HEADER__LEN",
|
|
612
|
+
"Llc",
|
|
613
|
+
"LlcAssembler",
|
|
614
|
+
"LlcControl",
|
|
615
|
+
"LlcHeader",
|
|
616
|
+
"LlcIntegrityError",
|
|
617
|
+
"LlcParser",
|
|
618
|
+
"LlcSanityError",
|
|
619
|
+
"LlcSap",
|
|
620
|
+
"SNAP__HEADER__LEN",
|
|
621
|
+
"Snap",
|
|
622
|
+
"SnapAssembler",
|
|
623
|
+
"SnapCiscoProtocol",
|
|
624
|
+
"SnapHeader",
|
|
625
|
+
"SnapIntegrityError",
|
|
626
|
+
"SnapOui",
|
|
627
|
+
"SnapParser",
|
|
628
|
+
"SnapSanityError",
|
|
629
|
+
"ICMP4__DESTINATION_UNREACHABLE__LEN",
|
|
630
|
+
"ICMP4__ECHO_REPLY__LEN",
|
|
631
|
+
"ICMP4__ECHO_REQUEST__LEN",
|
|
632
|
+
"ICMP6__DESTINATION_UNREACHABLE__LEN",
|
|
633
|
+
"ICMP6__ECHO_REPLY__LEN",
|
|
634
|
+
"ICMP6__ECHO_REQUEST__LEN",
|
|
635
|
+
"ICMP6__PACKET_TOO_BIG__LEN",
|
|
636
|
+
"ICMP6__MLD2__REPORT__LEN",
|
|
637
|
+
"ICMP6__ND__NEIGHBOR_ADVERTISEMENT__LEN",
|
|
638
|
+
"ICMP6__ND__NEIGHBOR_SOLICITATION__LEN",
|
|
639
|
+
"ICMP6__ND__OPTION__LEN",
|
|
640
|
+
"ICMP6__ND__OPTION__MTU__LEN",
|
|
641
|
+
"ICMP6__ND__OPTION__PI__LEN",
|
|
642
|
+
"ICMP6__ND__OPTION__REDIRECTED_HEADER__LEN",
|
|
643
|
+
"ICMP6__ND__OPTION__SLLA__LEN",
|
|
644
|
+
"ICMP6__ND__OPTION__TLLA__LEN",
|
|
645
|
+
"ICMP6__ND__REDIRECT__LEN",
|
|
646
|
+
"ICMP6__ND__ROUTER_ADVERTISEMENT__LEN",
|
|
647
|
+
"ICMP6__ND__ROUTER_SOLICITATION__LEN",
|
|
648
|
+
"IP4__DEFAULT_TTL",
|
|
649
|
+
"IP4__HEADER__LEN",
|
|
650
|
+
"IP4__HEADER__MAX_LEN",
|
|
651
|
+
"IP4__MIN_MTU",
|
|
652
|
+
"IP4__OPTIONS__MAX_LEN",
|
|
653
|
+
"IP4__OPTION__CIPSO__DOI_LEN",
|
|
654
|
+
"IP4__OPTION__CIPSO__HDR_LEN",
|
|
655
|
+
"IP4__OPTION__EOL__LEN",
|
|
656
|
+
"IP4__OPTION__LEN",
|
|
657
|
+
"IP4__OPTION__LSRR__HDR_LEN",
|
|
658
|
+
"IP4__OPTION__LSRR__POINTER_BASE",
|
|
659
|
+
"IP4__OPTION__LSRR__SLOT_LEN",
|
|
660
|
+
"IP4__OPTION__NOP__LEN",
|
|
661
|
+
"IP4__OPTION__ROUTER_ALERT__LEN",
|
|
662
|
+
"IP4__OPTION__RR__HDR_LEN",
|
|
663
|
+
"IP4__OPTION__RR__SLOT_LEN",
|
|
664
|
+
"IP4__OPTION__SSRR__HDR_LEN",
|
|
665
|
+
"IP4__OPTION__SSRR__POINTER_BASE",
|
|
666
|
+
"IP4__OPTION__SSRR__SLOT_LEN",
|
|
667
|
+
"IP4__OPTION__TIMESTAMP__FLAG__TS_AND_ADDR",
|
|
668
|
+
"IP4__OPTION__TIMESTAMP__FLAG__TS_ONLY",
|
|
669
|
+
"IP4__OPTION__TIMESTAMP__FLAG__TS_PRESPEC",
|
|
670
|
+
"IP4__PAYLOAD__MAX_LEN",
|
|
671
|
+
"IP6_FRAG__HEADER__LEN",
|
|
672
|
+
"IP6__DEFAULT_HOP_LIMIT",
|
|
673
|
+
"IP6__HEADER__LEN",
|
|
674
|
+
"IP6__MIN_MTU",
|
|
675
|
+
"IP6__PAYLOAD__MAX_LEN",
|
|
676
|
+
"Icmp4Assembler",
|
|
677
|
+
"Icmp4Code",
|
|
678
|
+
"Icmp4DestinationUnreachableCode",
|
|
679
|
+
"Icmp4MessageDestinationUnreachable",
|
|
680
|
+
"Icmp4EchoReplyCode",
|
|
681
|
+
"Icmp4MessageEchoReply",
|
|
682
|
+
"Icmp4EchoRequestCode",
|
|
683
|
+
"Icmp4MessageEchoRequest",
|
|
684
|
+
"Icmp4IntegrityError",
|
|
685
|
+
"Icmp4Message",
|
|
686
|
+
"Icmp4MessageParameterProblem",
|
|
687
|
+
"Icmp4MessageTimeExceeded",
|
|
688
|
+
"Icmp4ParameterProblemCode",
|
|
689
|
+
"Icmp4Parser",
|
|
690
|
+
"Icmp4SanityError",
|
|
691
|
+
"Icmp4TimeExceededCode",
|
|
692
|
+
"Icmp4Type",
|
|
693
|
+
"Icmp4MessageUnknown",
|
|
694
|
+
"ICMP4__PARAMETER_PROBLEM__LEN",
|
|
695
|
+
"ICMP4__TIME_EXCEEDED__LEN",
|
|
696
|
+
"Icmp6",
|
|
697
|
+
"Icmp6Assembler",
|
|
698
|
+
"Icmp6Code",
|
|
699
|
+
"Icmp6DestinationUnreachableCode",
|
|
700
|
+
"Icmp6MessageDestinationUnreachable",
|
|
701
|
+
"Icmp6EchoReplyCode",
|
|
702
|
+
"Icmp6MessageEchoReply",
|
|
703
|
+
"Icmp6EchoRequestCode",
|
|
704
|
+
"Icmp6MessageEchoRequest",
|
|
705
|
+
"Icmp6PacketTooBigCode",
|
|
706
|
+
"Icmp6MessagePacketTooBig",
|
|
707
|
+
"Icmp6MessageParameterProblem",
|
|
708
|
+
"Icmp6MessageTimeExceeded",
|
|
709
|
+
"Icmp6ParameterProblemCode",
|
|
710
|
+
"Icmp6TimeExceededCode",
|
|
711
|
+
"ICMP6__PARAMETER_PROBLEM__LEN",
|
|
712
|
+
"ICMP6__TIME_EXCEEDED__LEN",
|
|
713
|
+
"Icmp6IntegrityError",
|
|
714
|
+
"Icmp6Message",
|
|
715
|
+
"Icmp6Mld2MulticastAddressRecord",
|
|
716
|
+
"Icmp6Mld2MulticastAddressRecordType",
|
|
717
|
+
"Icmp6Mld2ReportCode",
|
|
718
|
+
"ICMP6__MLD2__QUERY__LEN",
|
|
719
|
+
"Icmp6Mld2MessageQuery",
|
|
720
|
+
"Icmp6Mld2QueryCode",
|
|
721
|
+
"Icmp6Mld2MessageReport",
|
|
722
|
+
"Icmp6NdMessage",
|
|
723
|
+
"Icmp6NdNeighborAdvertisementCode",
|
|
724
|
+
"Icmp6NdMessageNeighborAdvertisement",
|
|
725
|
+
"Icmp6NdNeighborSolicitationCode",
|
|
726
|
+
"Icmp6NdMessageNeighborSolicitation",
|
|
727
|
+
"Icmp6NdRedirectCode",
|
|
728
|
+
"Icmp6NdMessageRedirect",
|
|
729
|
+
"Icmp6NdOption",
|
|
730
|
+
"Icmp6NdOptionMtu",
|
|
731
|
+
"Icmp6NdOptionNonce",
|
|
732
|
+
"Icmp6NdOptionPi",
|
|
733
|
+
"Icmp6NdOptionDnssl",
|
|
734
|
+
"Icmp6NdOptionRaFlags",
|
|
735
|
+
"Icmp6NdOptionRdnss",
|
|
736
|
+
"Icmp6NdOptionRedirectedHeader",
|
|
737
|
+
"Icmp6NdOptionRouteInfo",
|
|
738
|
+
"Icmp6NdOptionSlla",
|
|
739
|
+
"Icmp6NdOptionTlla",
|
|
740
|
+
"Icmp6NdOptionType",
|
|
741
|
+
"Icmp6NdOptionUnknown",
|
|
742
|
+
"Icmp6NdOptions",
|
|
743
|
+
"Icmp6NdRoutePreference",
|
|
744
|
+
"Icmp6NdRouterAdvertisementCode",
|
|
745
|
+
"Icmp6NdMessageRouterAdvertisement",
|
|
746
|
+
"Icmp6NdRouterSolicitationCode",
|
|
747
|
+
"Icmp6NdMessageRouterSolicitation",
|
|
748
|
+
"Icmp6Parser",
|
|
749
|
+
"Icmp6SanityError",
|
|
750
|
+
"Icmp6Type",
|
|
751
|
+
"Icmp6MessageUnknown",
|
|
752
|
+
"Ip4Assembler",
|
|
753
|
+
"Ip4FragAssembler",
|
|
754
|
+
"Ip4Header",
|
|
755
|
+
"Ip4IntegrityError",
|
|
756
|
+
"Ip4Option",
|
|
757
|
+
"Ip4OptionCipso",
|
|
758
|
+
"Ip4OptionEol",
|
|
759
|
+
"Ip4OptionLsrr",
|
|
760
|
+
"Ip4OptionNop",
|
|
761
|
+
"Ip4OptionRouterAlert",
|
|
762
|
+
"Ip4OptionRr",
|
|
763
|
+
"Ip4OptionSsrr",
|
|
764
|
+
"Ip4OptionTimestamp",
|
|
765
|
+
"Ip4OptionType",
|
|
766
|
+
"Ip4OptionUnknown",
|
|
767
|
+
"Ip4TimestampEntry",
|
|
768
|
+
"Ip4Options",
|
|
769
|
+
"Ip4Parser",
|
|
770
|
+
"Ip4Payload",
|
|
771
|
+
"Ip4SanityError",
|
|
772
|
+
"Ip6Assembler",
|
|
773
|
+
"Ip6FragAssembler",
|
|
774
|
+
"Ip6FragHeader",
|
|
775
|
+
"Ip6FragIntegrityError",
|
|
776
|
+
"Ip6FragParser",
|
|
777
|
+
"Ip6FragSanityError",
|
|
778
|
+
"Ip6Header",
|
|
779
|
+
"Ip6IntegrityError",
|
|
780
|
+
"Ip6Parser",
|
|
781
|
+
"Ip6Payload",
|
|
782
|
+
"Ip6SanityError",
|
|
783
|
+
"IpProto",
|
|
784
|
+
"PacketRx",
|
|
785
|
+
"PacketValidationError",
|
|
786
|
+
"RawAssembler",
|
|
787
|
+
"TCP__HEADER__LEN",
|
|
788
|
+
"TCP__OPTIONS__MAX_LEN",
|
|
789
|
+
"TCP__OPTION__ACCECN0__LEN",
|
|
790
|
+
"TCP__OPTION__ACCECN1__LEN",
|
|
791
|
+
"TCP__OPTION__EOL__LEN",
|
|
792
|
+
"TCP__OPTION__FASTOPEN__COOKIE_LEN_MAX",
|
|
793
|
+
"TCP__OPTION__FASTOPEN__COOKIE_LEN_MIN",
|
|
794
|
+
"TCP__OPTION__FASTOPEN__LEN_MIN",
|
|
795
|
+
"TCP__OPTION__LEN",
|
|
796
|
+
"TCP__OPTION__MSS__LEN",
|
|
797
|
+
"TCP__OPTION__NOP__LEN",
|
|
798
|
+
"TCP__OPTION__SACKPERM__LEN",
|
|
799
|
+
"TCP__OPTION__SACK__BLOCK_LEN",
|
|
800
|
+
"TCP__OPTION__SACK__MAX_BLOCK_NUM",
|
|
801
|
+
"TCP__OPTION__TIMESTAMPS__LEN",
|
|
802
|
+
"TCP__OPTION__WSCALE__LEN",
|
|
803
|
+
"TCP__OPTION__WSCALE__MAX_VALUE",
|
|
804
|
+
"TcpAssembler",
|
|
805
|
+
"TcpHeader",
|
|
806
|
+
"TcpIntegrityError",
|
|
807
|
+
"TcpOption",
|
|
808
|
+
"TcpOptionAccecn0",
|
|
809
|
+
"TcpOptionAccecn1",
|
|
810
|
+
"TcpOptionEol",
|
|
811
|
+
"TcpOptionFastOpen",
|
|
812
|
+
"TcpOptionMss",
|
|
813
|
+
"TcpOptionNop",
|
|
814
|
+
"TcpOptionSack",
|
|
815
|
+
"TcpOptionSackperm",
|
|
816
|
+
"TcpOptionTimestamps",
|
|
817
|
+
"TcpOptionType",
|
|
818
|
+
"TcpOptionUnknown",
|
|
819
|
+
"TcpOptionWscale",
|
|
820
|
+
"TcpOptions",
|
|
821
|
+
"TcpParser",
|
|
822
|
+
"TcpSackBlock",
|
|
823
|
+
"TcpSanityError",
|
|
824
|
+
"TcpTimestamps",
|
|
825
|
+
"Tracker",
|
|
826
|
+
"UDP__HEADER__LEN",
|
|
827
|
+
"UINT_13__MAX",
|
|
828
|
+
"UINT_13__MIN",
|
|
829
|
+
"UINT_16__MAX",
|
|
830
|
+
"UINT_16__MIN",
|
|
831
|
+
"UINT_20__MAX",
|
|
832
|
+
"UINT_20__MIN",
|
|
833
|
+
"UINT_24__MAX",
|
|
834
|
+
"UINT_24__MIN",
|
|
835
|
+
"UINT_2__MAX",
|
|
836
|
+
"UINT_2__MIN",
|
|
837
|
+
"UINT_32__MAX",
|
|
838
|
+
"UINT_32__MIN",
|
|
839
|
+
"UINT_4__MAX",
|
|
840
|
+
"UINT_4__MIN",
|
|
841
|
+
"UINT_6__MAX",
|
|
842
|
+
"UINT_6__MIN",
|
|
843
|
+
"UINT_8__MAX",
|
|
844
|
+
"UINT_8__MIN",
|
|
845
|
+
"UdpAssembler",
|
|
846
|
+
"UdpHeader",
|
|
847
|
+
"UdpIntegrityError",
|
|
848
|
+
"UdpParser",
|
|
849
|
+
"UdpSanityError",
|
|
850
|
+
"inet_cksum",
|
|
851
|
+
]
|