Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- #ifdef HAVE_DUMB_UDPHDR
- printf("%s:%d -", inet_ntoa(ip_packet->ip_src), ntohs(udp->source));
- printf("> %s:%d", inet_ntoa(ip_packet->ip_dst), ntohs(udp->dest));
- #else
- printf("%s:%d -", inet_ntoa(ip_packet->ip_src), ntohs(udp->uh_sport));
- printf("> %s:%d", inet_ntoa(ip_packet->ip_dst), ntohs(udp->uh_dport));
- #endif
Add Comment
Please, Sign In to add comment