OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
exabgp
/
reactor
/
network
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
📄
connection.py
10.33 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
error.py
1.56 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
incoming.py
1.07 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
outgoing.py
2.74 KB
03/14/2021 06:29:12 PM
rw-r--r--
📄
tcp.py
9.72 KB
03/13/2021 04:30:48 PM
rw-r--r--
Editing: incoming.py
Close
from exabgp.util.errstr import errstr from .connection import Connection from .tcp import nagle from .tcp import asynchronous from .error import NetworkError from .error import NotConnected from exabgp.bgp.message import Notify class Incoming(Connection): direction = 'incoming' def __init__(self, afi, peer, local, io): Connection.__init__(self, afi, peer, local) self.logger.debug('connection from %s' % self.peer, 'network') try: self.io = io asynchronous(self.io, self.peer) nagle(self.io, self.peer) self.success() except NetworkError as exc: self.close() raise NotConnected(errstr(exc)) def notification(self, code, subcode, message): try: notification = Notify(code, subcode, message).message() for boolean in self.writer(notification): yield False self.close() except NetworkError: pass # This is only be used when closing session due to unconfigured peers - so issues do not matter