Date: Fri, 01 Feb 2019 15:21:38 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 133736] [udp] ip_id not protected ... Message-ID: <bug-133736-227-0h3jrMWBPa@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-133736-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=133736 Tom Jones <thj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events Status|Open |Closed CC| |thj@FreeBSD.org --- Comment #3 from Tom Jones <thj@FreeBSD.org> --- Hi, I wrote a python test case that I think should exercise this. I didn't manage to hit this case, if you can reproduce this on a modern FreeBSD please reopen the bug. If you can add an exact reproduction case that would be very helpful. server: #!/usr/bin/env python3 import socket import sys UDP_IP = "0.0.0.0" UDP_PORT = 5005 sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.bind((UDP_IP, UDP_PORT)) peers = {} while True: data, addr = sock.recvfrom(2500) #sys.stdout.write(".") #sys.stdout.flush() if addr in peers: if data != peers[addr]: print("mismatch in recv'd data") print("peer {} \n data: \t{} recvd: {}\t".format(addr, peers[addr], data)) exit() else: peers[addr] = data client: #!/usr/bin/env python3 import socket from multiprocessing import Process def sendthread(ip, port, message): sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP while True: try: sock.sendto(message, (ip, port)) except OSError as e: if e.errno == 55: pass if __name__ == '__main__': ip = "137.50.17.240" port = 5005 one = Process(target=sendthread, args=(ip, port, bytes("A" * 2000, encoding='ascii'))) two = Process(target=sendthread, args=(ip, port, bytes("B" * 2000, encoding='ascii'))) one.start() two.start() one.join() two.join() -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-133736-227-0h3jrMWBPa>
