In Linux, does UDP use the same buffer for incoming and outgoing packets?
If I want to overflow this buffer, it shouldn't matter if I code in C or in Python, right?
In Linux, does UDP use the same buffer for incoming and outgoing packets?
If I want to overflow this buffer, it shouldn't matter if I code in C or in Python, right?
the linux kernel does not define a single or set of buffers for packets per say, but dynamically creates and destroys many buffers as data is passed up and down to/from higher layers (2 and above).
see this very detailed article on linux network, and in particular look at page 4 on how a buffer is connected to a nic for transmit, and then destroyed as soon as transmission is complete: http://www.linuxjournal.com/article/1312?page=0,0
as for overflowing the buffer, obviously you would need a langague capable of manual memory operations, but linux buffers are a memory location with a control structure associated, so you may not be able to overflow it without the control system interfering.