You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO(tftpd): Serving file tp_recovery.bin to host 192.168.0.2...
sysctl: cannot stat /proc/sys/net/inet/udp/maxdgram: Нет такого файла или каталога
INFO(tftpd): Serving file tp_recovery.bin to host 192.168.0.2...
sysctl: cannot stat /proc/sys/net/inet/udp/maxdgram: Нет такого файла или каталога
The text was updated successfully, but these errors were encountered:
alex-eri
added a commit
to alex-eri/ptftpd
that referenced
this issue
Apr 6, 2021
Hello, I have corrected it by placing an exception in the get_max_udp_datagram_size() method in tftpserver.py file as follows:
def get_max_udp_datagram_size():
"""Retrieve the maximum UDP datagram size allowed by the system."""
try:
val = subprocess.check_output(['sysctl', '-n', 'net.inet.udp.maxdgram'])
except Exception as err:
val = subprocess.check_output(['sysctl', '-n', 'net.core.rmem_max'])
return int(val)
We noticed that syctl does not get this system variable net.inet.udp.maxdgram, so we add the one that in my case (ubuntu server) finds: net.core.rmem_max
Linux 5.10.20-1-lts
The text was updated successfully, but these errors were encountered: