We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
... /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../../../../include -Wall -g -O2 -MT socket_pcap_la-socket_pcap.lo -MD -MP -MF .deps/socket_pcap_la-socket_pcap.Tpo -c -o socket_pcap_la-socket_pcap.lo `test -f 'socket_pcap.c' || echo './'`socket_pcap.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../../../../include -Wall -g -O2 -MT socket_pcap_la-socket_pcap.lo -MD -MP -MF .deps/socket_pcap_la-socket_pcap.Tpo -c socket_pcap.c -fPIC -DPIC -o .libs/socket_pcap_la-socket_pcap.o socket_pcap.c: In function 'callback_proto': socket_pcap.c:157:22: warning: initialization makes integer from pointer without a cast [enabled by default] uint8_t loc_index = (uint8_t *) useless; ^ socket_pcap.c:199:69: error: 'eth' undeclared (first use in this function) snprintf(mac_src, sizeof(mac_src), "%.2X-%.2X-%.2X-%.2X-%.2X-%.2X",eth->h_source[0] , eth->h_source[1] , eth->h_source[2] , eth->h_source[3] , eth->h_source[4] , eth->h_source[5]); ^ socket_pcap.c:199:69: note: each undeclared identifier is reported only once for each function it appears in socket_pcap.c:291:3: warning: implicit declaration of function 'run_actions' [-Wimplicit-function-declaration] run_actions(main_ct.clist[action_idx], &_msg); ^ socket_pcap.c:165:11: warning: variable 'frag_id' set but not used [-Wunused-but-set-variable] uint32_t frag_id = 0; ^ socket_pcap.c: In function 'proto_collect': socket_pcap.c:417:25: warning: initialization makes integer from pointer without a cast [enabled by default] unsigned int loc_idx = (int *) arg; ^ socket_pcap.c:467:77: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ret = pcap_loop(sniffer_proto[loc_idx], 0, (pcap_handler) callback_proto, (u_char*) loc_idx); ^ socket_pcap.c: In function 'load_module': socket_pcap.c:655:7: warning: assignment makes pointer from integer without a cast [enabled by default] arg = i; ^ make[4]: *** [socket_pcap_la-socket_pcap.lo] Error 1 make[4]: Leaving directory `/opt/homer/captagent/src/modules/socket/pcap' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/opt/homer/captagent/src/modules/socket/pcap' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/homer/captagent/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/opt/homer/captagent/src' make: *** [all-recursive] Error 1
The text was updated successfully, but these errors were encountered:
Update socket_pcap.c
869a4ab
24a91b7
thank you!
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: