OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
exabgp
/
bgp
/
message
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
865 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📁
__pycache__
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
direction.py
427 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📄
keepalive.py
1.05 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
message.py
5.79 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
nop.py
717 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📄
notification.py
6.23 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
open
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
operational.py
10.3 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
refresh.py
2.29 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
unknown.py
891 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📁
update
-
03/16/2023 12:55:54 PM
rwxr-xr-x
Editing: keepalive.py
Close
# encoding: utf-8 """ keepalive.py Created by Thomas Mangin on 2009-11-05. Copyright (c) 2009-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ from exabgp.util import character from exabgp.util import hexstring from exabgp.bgp.message.message import Message from exabgp.bgp.message.notification import Notify # =================================================================== KeepAlive # @Message.register class KeepAlive(Message): ID = Message.CODE.KEEPALIVE TYPE = character(Message.CODE.KEEPALIVE) def message(self, negotiated=None): return self._message(b'') def __str__(self): return "KEEPALIVE" @classmethod def unpack_message(cls, data, negotiated): # pylint: disable=W0613 # This can not happen at decode time as we check the length of the KEEPALIVE message # But could happen when calling the function programmatically if data: raise Notify('Keepalive can not have any payload but contains %s', hexstring(data)) return cls()