OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
exabgp
/
protocol
/
ip
/
tcp
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
__init__.py
0 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📁
__pycache__
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
flag.py
752 bytes
03/13/2021 04:30:48 PM
rw-r--r--
Editing: flag.py
Close
# encoding: utf-8 """ tcpflags.py Created by Thomas Mangin on 2010-02-04. Copyright (c) 2009-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ from exabgp.protocol.resource import BitResource # ====================================================================== TCPFlag # https://www.iana.org/assignments/tcp-header-flags class TCPFlag(BitResource): NAME = 'tcp flag' FIN = 0x01 SYN = 0x02 RST = 0x04 PUSH = 0x08 ACK = 0x10 URGENT = 0x20 codes = dict( (k.lower().replace('_', '-'), v) for (k, v) in {'FIN': FIN, 'SYN': SYN, 'RST': RST, 'PUSH': PUSH, 'ACK': ACK, 'URGENT': URGENT,}.items() ) names = dict([(r, l) for (l, r) in codes.items()])