the question changed
now I have variable with type u_int32_t where is IP address, how to show it in the normal way?
Type: Posts; User: vgevorgy
the question changed
now I have variable with type u_int32_t where is IP address, how to show it in the normal way?
yeah
I have created the struct for netflow header:
struct NF5_HEADER {
u_int16_t version;
u_int16_t flows;
u_int32_t uptime_ms;
u_int32_t time_sec;
u_int32_t time_nanosec;
u_int32_t...
I think my problem is that I don't know how to use Offset and "Field Length in Bytes" information for getting the needed data from buffer
that is netflow (version 5) packet
and yeah I know what parts I need:
the packet have header http://www.packetshaper.com/documentation/packetguide/current/info/netflow5-header.htm for first I need the header
I have also tried hex:
for(int i = 0; i < sizeof buf; i++) {
printf("%x\n", buf[i]);
}
here is output:
0
5
Hello
I want to capture NetFlow packets that was sent by fprobe.
The fprobe is on my local machine and it send packets to 127.0.0.1:2055 via UDP.
So, I have wrote program which open 2055 port...