UDPCap Extension
1 Attachment(s)
UDPCap extension Version: 0.0.0.1 Description: Allows plugin developers to catch UDP packets sent to the server with the ability of getting IP, port, length of data, data itself, etc. Also plugins can selectively prevent futher processing of the packets or vice versa. Please notice that the extension is currently only for the Windows OS, although it contains the required gamedata for Linux OSes. Changelog:
Spoiler
Sample plugin:
Spoiler
Compatibility: The extension is tested and confirmed working on these games/OSes:
Credit: Zephyrus - Copypasted some code from Console Cleaner extension at first, but then removed it. Source Code: https://github.com/naydef/UDPCap-ext Bugs/Improvements:
Note:
Feedback is very welcomed! Files: |
Re: UDPCap Extension
Wow! This is fantastic! Can't wait to set this up on my server!
I can think of several use cases, but most of them require one of:
I'll see if I can use this to log voice chat to disk. In the meantime, the features above and a linux .so binary would be useful. I can confirm, it works like a charm for TF2 on Windows 10. Again, thanks, this is fantastic extension! |
Re: UDPCap Extension
Quote:
|
Re: UDPCap Extension
Quote:
When sending a replacement packet from the client to the server, SrcDS will expect the source IP address to be consistent with that client's - some internet IP, whereas the actual source IP will be SrcDS' localhost. Given that SrcDS distinguishes clients by IP:port data in the packet, I expect the packet would be disregarded. Similarly, to send a modified outbound packet to a client, the socket ext will bind to some port other than SrcDS' port; as such, NAT or not, the client will ignore the packet since it came from the wrong port on albeit the right IP. I'm not sure what implementation you had in mind when you said that Socket ext could be used to send the modified packet - please clarify. |
Re: UDPCap Extension
You could push length/data by reference and allow it to be changed plugin side to allow modifying the packets.
|
Re: UDPCap Extension
Quote:
|
Re: UDPCap Extension
All it is is a detour. After calling the forward, it then calls the original function with the same params (unless plugin returns Plugin_Handled or whatever). It would be easy to change the params passed in to the original function.
|
Re: UDPCap Extension
Quote:
|
Re: UDPCap Extension
hi
not worked !!! please update !! http://s8.picofile.com/file/8322372068/Captur333e.PNG i used last sm v1.8 and used this version ext: https://forums.alliedmods.net/attach...3&d=1512164184 |
Re: UDPCap Extension
Quote:
|
All times are GMT -4. The time now is 00:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.