OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
exabgp
/
protocol
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
1.17 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
__pycache__
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
family.py
8.84 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
ip
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📁
iso
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
resource.py
1.85 KB
03/13/2021 04:31:16 PM
rw-r--r--
Editing: __init__.py
Close
# encoding: utf-8 """ __init__.py Created by Thomas Mangin on 2010-01-15. Copyright (c) 2009-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ from exabgp.util import character from exabgp.protocol.resource import Resource # ===================================================================== Protocol # https://www.iana.org/assignments/protocol-numbers/ class Protocol(Resource): NAME = 'protocol' ICMP = 0x01 IGMP = 0x02 TCP = 0x06 EGP = 0x08 UDP = 0x11 RSVP = 0x2E GRE = 0x2F ESP = 0x32 AH = 0x33 OSPF = 0x59 IPIP = 0x5E PIM = 0x67 SCTP = 0x84 codes = dict( (k.lower().replace('_', '-'), v) for (k, v) in { 'ICMP': ICMP, 'IGMP': IGMP, 'TCP': TCP, 'EGP': EGP, 'UDP': UDP, 'RSVP': RSVP, 'GRE': GRE, 'ESP': ESP, 'AH': AH, 'OSPF': OSPF, 'IPIP': IPIP, 'PIM': PIM, 'SCTP': SCTP, }.items() ) names = dict([(r, l) for (l, r) in codes.items()]) def pack(self): return character(self)