snq
Experienced Member
I'm writing my own little DOS networking library in C++ (Watcom). So far it's going okay and I'm at the point where an application using the library can communicate with the rest of the network over UDP. I got some basic TCP stuff as well but I figured I'd finish UDP first as it's a lot easier than TCP.
Anyway, I was doing a bit of testing by sending off UDP packets from my regular PC to the test machine running my test app at a rate of around 25 packets/sec. All seemed to be going fine, until after about 5 mins all of a sudden my router starts duplicating every single packet my PC sent out.
What it does exactly is send a copy of the packet to the destination machine (it will keep the IP but the mac address changes) and at the same time sends off an ICMP redirect (type 5, code 1) packet to my PC with gateway address set to my DOS machine's IP. And once it starts doing this, it does this for every single packet, forever.
My app receives both the original and the copy sent by the router fine and they're both coming from the same IP but different mac addresses.
As far as I can tell nothing special happens before my router starts minding my business, so I have no idea what's triggering this? It's pretty annoying because I obviously don't want a 2nd copy of every packet.
I should probably mention that my app does not send responses to any of these packets, a scenario that probably wouldn't happen all too often in reality. So maybe my router thinks something must be fishy here and that's why it starts acting up?
Anyway, I was doing a bit of testing by sending off UDP packets from my regular PC to the test machine running my test app at a rate of around 25 packets/sec. All seemed to be going fine, until after about 5 mins all of a sudden my router starts duplicating every single packet my PC sent out.
What it does exactly is send a copy of the packet to the destination machine (it will keep the IP but the mac address changes) and at the same time sends off an ICMP redirect (type 5, code 1) packet to my PC with gateway address set to my DOS machine's IP. And once it starts doing this, it does this for every single packet, forever.
My app receives both the original and the copy sent by the router fine and they're both coming from the same IP but different mac addresses.
As far as I can tell nothing special happens before my router starts minding my business, so I have no idea what's triggering this? It's pretty annoying because I obviously don't want a 2nd copy of every packet.
I should probably mention that my app does not send responses to any of these packets, a scenario that probably wouldn't happen all too often in reality. So maybe my router thinks something must be fishy here and that's why it starts acting up?