ngrep

"error: 'struct udphdr' has no member named 'source'" ... huh?

I'm trying to compile a program called ngrep, and when I ran configure, things seemed to go well, but when I run make, I get: ngrep.c: In function ‘process’: ngrep.c:544: error: ‘struct udphdr’ has no member named ‘source’ ngrep.c:545: error: ‘struct udphdr’ has no member named ‘dest’ make: *** [ngrep.o] Error 1 What does that mean, a...

Python and NGREP

I want to be able to start and stop an NGREP process from inside my python code. I really dont have experience with python on a system level. Normally I run NGREP from the command line, but I would like to be able to run it from a script every hour and capture the trace and then process the results. Can anyone point me in the direction...

Monitor socket with ngrep or perl for activity, then issue command

I'd like to use ngrep and/or perl to monitor the incoming data stream on a socket, then, when the appropriate characters arrive, like in this case, the string "192.168.1.101:8080", input to the data stream a redirect to another ipaddress, such as "192.168.1.102" Is this even possible? ...