mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-09-09 11:45:20 -05:00
[WIP] NATNEG: Added backup command
This commit is contained in:
@@ -381,12 +381,15 @@ def handle_natneg_backup_test(nn, recv_data, addr, socket):
|
||||
TODO
|
||||
|
||||
Description:
|
||||
TODO
|
||||
Untested
|
||||
"""
|
||||
logger.log(logging.WARNING,
|
||||
"Received unimplemented command NN_BACKUP_TEST (0x08)"
|
||||
" from %s:%d...", *addr)
|
||||
logger.log(logging.DEBUG, "%s", utils.pretty_print_hex(output))
|
||||
logger.log(logging.DEBUG, "Received backup command from %s:%d...", *addr)
|
||||
logger.log(logging.DEBUG, "%s", utils.pretty_print_hex(recv_data))
|
||||
|
||||
# Backup response
|
||||
output = bytearray(recv_data)
|
||||
output[7] = 0x09 # NN_BACKUP_ACK
|
||||
nn.write_queue.put((output, addr, socket))
|
||||
|
||||
|
||||
def handle_natneg_backup_ack(nn, recv_data, addr, socket):
|
||||
|
||||
Reference in New Issue
Block a user