Skip to content

Commit dee907f

Browse files
committed
moving tcp/protocol constants to constants.py
1 parent 904a9ed commit dee907f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

constants.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -- coding: utf-8
2+
""" TCP and UDP constants and protocols """
3+
4+
import dpkt
5+
6+
# TCP flag constants
7+
TH_URG=dpkt.tcp.TH_URG
8+
TH_ACK=dpkt.tcp.TH_ACK
9+
TH_PSH=dpkt.tcp.TH_PUSH
10+
TH_RST=dpkt.tcp.TH_RST
11+
TH_SYN=dpkt.tcp.TH_SYN
12+
TH_FIN=dpkt.tcp.TH_FIN
13+
14+
# Protocols
15+
TCP=dpkt.tcp.TCP
16+
UDP=dpkt.udp.UDP
17+
SCTP=dpkt.sctp.SCTP
18+

0 commit comments

Comments
 (0)