=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Building for ettercap-0.6.bnb38 gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -MM ./src/ec_binder.c ./src/ec_buffer.c ./src/ec_conn_buffer.c ./src/ec_debug.c ./src/ec_decodedata.c ./src/ec_dissector.c ./src/ec_dissector_bgp.c ./src/ec_dissector_ftp.c ./src/ec_dissector_hl_rcon.c ./src/ec_dissector_http.c ./src/ec_dissector_https.c ./src/ec_dissector_icq.c ./src/ec_dissector_imap.c ./src/ec_dissector_irc.c ./src/ec_dissector_ldap.c ./src/ec_dissector_mountd.c ./src/ec_dissector_msn.c ./src/ec_dissector_mysql.c ./src/ec_dissector_napster.c ./src/ec_dissector_nntp.c ./src/ec_dissector_pcanywhere.c ./src/ec_dissector_pop.c ./src/ec_dissector_portmap.c ./src/ec_dissector_quake3.c ./src/ec_dissector_rip.c ./src/ec_dissector_rlogin.c ./src/ec_dissector_smb.c ./src/ec_dissector_snmp.c ./src/ec_dissector_socks.c ./src/ec_dissector_ssh.c ./src/ec_dissector_telnet.c ./src/ec_dissector_vnc.c ./src/ec_dissector_x11.c ./src/ec_dissector_ymsg.c ./src/ec_doppleganger.c ./src/ec_dryad.c ./src/ec_error.c ./src/ec_filterdrop.c ./src/ec_fingerprint.c ./src/ec_grell.c ./src/ec_illithid.c ./src/ec_inet.c ./src/ec_inet_forge.c ./src/ec_logtofile.c ./src/ec_main.c ./src/ec_packet.c ./src/ec_parser.c ./src/ec_pcapfile.c ./src/ec_plugins.c ./src/ec_signal.c ./src/ec_threads.c ./src/ec_vbuf.c ./src/interface/console/ec_simple.c ./src/interface/ncurses/ec_interface.c ./src/interface/ncurses/ec_interface_factory.c ./src/interface/ncurses/ec_interface_form.c ./src/interface/ncurses/ec_interface_inject.c ./src/interface/ncurses/ec_interface_passive.c ./src/interface/ncurses/ec_interface_plugins.c ./src/interface/ncurses/ec_interface_sniff.c ./src/interface/ncurses/ec_interface_sniff_data.c ./src/OS/BSD/ec_inet_BSD.c > .depend gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_binder.o ./src/ec_binder.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_binder.c:23: ./src/ec_binder.c: In function 'Binder_Run': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_binder.c:68:21: note: in expansion of macro 'ERROR_MSG' if (tmpsock < 0) ERROR_MSG("socket()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_binder.c:81:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("listen()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_binder.c:94:21: note: in expansion of macro 'ERROR_MSG' if (bi_sock < 0) ERROR_MSG("accept()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_buffer.o ./src/ec_buffer.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_conn_buffer.o ./src/ec_conn_buffer.c ./src/ec_conn_buffer.c: In function 'ConnBuffer_Put': ./src/ec_conn_buffer.c:103:18: warning: variable 'R_Offset' set but not used [-Wunused-but-set-variable] unsigned long R_Offset, W_Offset; ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_debug.o ./src/ec_debug.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_decodedata.o ./src/ec_decodedata.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_decodedata.c:23: ./src/ec_decodedata.c: In function 'Decodedata_SetArrayIndex': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:189:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c: In function 'Decodedata_MakeConnectionList': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:269:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:284:81: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(Conn_Between_Hosts[number_of_connections].source_mac, data->source_mac); ^ In file included from ./src/ec_decodedata.c:30:0: ./src/include/ec_inet.h:35:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_decodedata.c:285:79: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(Conn_Between_Hosts[number_of_connections].dest_mac, data->dest_mac); ^ In file included from ./src/ec_decodedata.c:30:0: ./src/include/ec_inet.h:35:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_decodedata.c:23: ./src/ec_decodedata.c: In function 'Decodedata_MakePassiveList': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:650:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c: In function 'Decodedata_GetEnhanchedHexData': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:749:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c: In function 'Decodedata_GetType': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:882:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:896:16: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c: In function 'Decodedata_GetPassiveOS': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:945:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:974:13: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c: In function 'Decodedata_ConvertPassiveToHost': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_decodedata.c:1052:16: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector.o ./src/ec_dissector.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_dissector.c:23: ./src/ec_dissector.c: In function 'Dissector_StateMachine_SetStatus': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_dissector.c:395:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_bgp.o ./src/ec_dissector_bgp.c ./src/ec_dissector_bgp.c: In function 'Dissector_bgp': ./src/ec_dissector_bgp.c:126:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_bgp.c:126:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_bgp.c:126:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_bgp.c:150:42: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->pass, parameters + i + 3, (len>28) ? 28 : (len+1)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_bgp.c:98: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_ftp.o ./src/ec_dissector_ftp.c ./src/ec_dissector_ftp.c: In function 'Dissector_ftp': ./src/ec_dissector_ftp.c:50:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ftp.c:50:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ftp.c:50:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ftp.c:55:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "USER ", 5) ) { ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_ftp.c:23: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:57:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->user, payload + strlen("USER "), sizeof(data_to_ettercap->user)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_ftp.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:61:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "PASS ", 5) ) { ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_ftp.c:23: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:63:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload + strlen("PASS "), sizeof(data_to_ettercap->pass)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_ftp.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_hl_rcon.o ./src/ec_dissector_hl_rcon.c ./src/ec_dissector_hl_rcon.c: In function 'Dissector_hl_rcon': ./src/ec_dissector_hl_rcon.c:56:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *) (int)udp + UDP_HEADER + 4; // 1st 4 bytes dont matter ^ ./src/ec_dissector_hl_rcon.c:56:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER + 4; // 1st 4 bytes dont matter ^ ./src/ec_dissector_hl_rcon.c:56:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER + 4; // 1st 4 bytes dont matter ^ ./src/ec_dissector_hl_rcon.c:58:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "rcon", 4) ) ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_hl_rcon.c:32: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_hl_rcon.c:71:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload + pos, len+1); // we are sure that len is less then 28 bytes ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_hl_rcon.c:32: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_hl_rcon.c:76:39: warning: pointer targets in passing argument 2 of 'strlcat' differ in signedness [-Wpointer-sign] strlcat(data_to_ettercap->info, payload, (len>135) ? 135 : len+1); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_hl_rcon.c:32: /usr/include/string.h:103:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcat(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_http.o ./src/ec_dissector_http.c ./src/ec_dissector_http.c: In function 'Dissector_http_proxy': ./src/ec_dissector_http.c:125:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_http.c:125:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_http.c:125:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_dissector_http.c:23: ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_dissector_http.c:336:16: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_dissector_http.c:395:12: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_https.o ./src/ec_dissector_https.c ./src/ec_dissector_https.c: In function 'Dissector_https': ./src/ec_dissector_https.c:127:37: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, IPS, IPD, (tcp->doff * 4)+datalen, 0xE77E, 0, IPPROTO_TCP); ^ In file included from ./src/ec_dissector_https.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_dissector_https.c:198:43: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^ In file included from ./src/ec_dissector_https.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_dissector_https.c:198:56: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^ In file included from ./src/ec_dissector_https.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_dissector_https.c:198:63: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^ In file included from ./src/ec_dissector_https.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_dissector_https.c:199:37: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, (*index_ssl)->dest_ip, (*index_ssl)->source_ip, (tcp->doff * 4)+datalen, 0xE77E, 0, IPPROTO_TCP); ^ In file included from ./src/ec_dissector_https.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_icq.o ./src/ec_dissector_icq.c ./src/ec_dissector_icq.c: In function 'Dissector_icqv5': ./src/ec_dissector_icq.c:175:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_icq.c:175:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_icq.c:175:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_icq.c: In function 'Dissector_icqv7': ./src/ec_dissector_icq.c:237:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_icq.c:237:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_icq.c:237:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_imap.o ./src/ec_dissector_imap.c ./src/ec_dissector_imap.c: In function 'Dissector_imap': ./src/ec_dissector_imap.c:48:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_imap.c:48:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_imap.c:48:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_imap.c:50:29: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] if ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_imap.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:50:70: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] if ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_imap.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:50:101: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] if ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_imap.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:81:40: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] if ( (fromhere = strstr(payload, "AUTHENTICATE")) ) { ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_imap.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:101:41: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] char collector[strlen(payload)]; ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_imap.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:105:53: warning: pointer targets in passing argument 2 of 'Dissector_base64decode' differ in signedness [-Wpointer-sign] Dissector_base64decode(collector, payload); ^ In file included from ./src/ec_dissector_imap.c:25:0: ./src/include/ec_dissector.h:40:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ ./src/ec_dissector_imap.c:112:41: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] char collector[strlen(payload)]; ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_imap.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:116:53: warning: pointer targets in passing argument 2 of 'Dissector_base64decode' differ in signedness [-Wpointer-sign] Dissector_base64decode(collector, payload); ^ In file included from ./src/ec_dissector_imap.c:25:0: ./src/include/ec_dissector.h:40:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ ./src/ec_dissector_imap.c:124:41: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] char collector[strlen(payload)]; ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_imap.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:128:53: warning: pointer targets in passing argument 2 of 'Dissector_base64decode' differ in signedness [-Wpointer-sign] Dissector_base64decode(collector, payload); ^ In file included from ./src/ec_dissector_imap.c:25:0: ./src/include/ec_dissector.h:40:12: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_irc.o ./src/ec_dissector_irc.c ./src/ec_dissector_irc.c: In function 'Dissector_irc': ./src/ec_dissector_irc.c:49:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_irc.c:49:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_irc.c:49:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_ldap.o ./src/ec_dissector_ldap.c ./src/ec_dissector_ldap.c: In function 'Dissector_ldap': ./src/ec_dissector_ldap.c:54:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *) ((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ldap.c:54:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *) ((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ldap.c:54:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *) ((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_mountd.o ./src/ec_dissector_mountd.c ./src/ec_dissector_mountd.c: In function 'Dissector_mountdTCP': ./src/ec_dissector_mountd.c:53:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_mountd.c:53:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_mountd.c:53:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf = (char *)((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_msn.o ./src/ec_dissector_msn.c ./src/ec_dissector_msn.c: In function 'Dissector_msn': ./src/ec_dissector_msn.c:47:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_msn.c:47:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_msn.c:47:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_msn.c:57:18: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] p = strstr(collector, "MD5 I"); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_msn.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_msn.c:81:18: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] p = strstr(collector, "MD5 S"); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_msn.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_msn.c:106:18: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] p = strstr(collector, "MD5 S"); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_msn.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_mysql.o ./src/ec_dissector_mysql.c ./src/ec_dissector_mysql.c: In function 'Dissector_mysql': ./src/ec_dissector_mysql.c:48:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_mysql.c:48:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_mysql.c:48:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_mysql.c:65:26: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] while(collector[i] != collector[i-1] != collector[i-2] != 0) // search for 000 padding ^ ./src/ec_dissector_mysql.c:65:44: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] while(collector[i] != collector[i-1] != collector[i-2] != 0) // search for 000 padding ^ ./src/ec_dissector_mysql.c:68:21: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(seed, collector + i + 1, sizeof(seed)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_mysql.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_napster.o ./src/ec_dissector_napster.c ./src/ec_dissector_napster.c: In function 'Dissector_napster': ./src/ec_dissector_napster.c:56:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_napster.c:56:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_napster.c:56:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_dissector_napster.c:25: ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_dissector_napster.c:71:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_nntp.o ./src/ec_dissector_nntp.c ./src/ec_dissector_nntp.c: In function 'Dissector_nntp': ./src/ec_dissector_nntp.c:47:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_nntp.c:47:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_nntp.c:47:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_nntp.c:49:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "AUTHINFO USER", 13) ) ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_nntp.c:23: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_nntp.c:55:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "AUTHINFO PASS", 13) ) ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_nntp.c:23: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_pcanywhere.o ./src/ec_dissector_pcanywhere.c ./src/ec_dissector_pcanywhere.c: In function 'Dissector_pcanywhere': ./src/ec_dissector_pcanywhere.c:54:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_pcanywhere.c:54:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_pcanywhere.c:54:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_pop.o ./src/ec_dissector_pop.c ./src/ec_dissector_pop.c: In function 'Dissector_pop': ./src/ec_dissector_pop.c:50:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_pop.c:50:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_pop.c:50:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_pop.c:55:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "USER ", 5) ) { ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_pop.c:23: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:57:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->user, payload + strlen("USER "), sizeof(data_to_ettercap->user)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_pop.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:60:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "PASS ", 5) ) { ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_pop.c:23: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:62:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload + strlen("PASS "), sizeof(data_to_ettercap->pass)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_pop.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:65:22: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if ( !strncasecmp(payload, "APOP", 4) ) ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_pop.c:23: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_portmap.o ./src/ec_dissector_portmap.c ./src/ec_dissector_portmap.c: In function 'Dissector_portmapTCP': ./src/ec_dissector_portmap.c:83:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_portmap.c:83:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_portmap.c:83:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf = (char *)((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_quake3.o ./src/ec_dissector_quake3.c ./src/ec_dissector_quake3.c: In function 'Dissector_quake3': ./src/ec_dissector_quake3.c:52:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)( (int) udp + UDP_HEADER); ^ ./src/ec_dissector_quake3.c:52:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)( (int) udp + UDP_HEADER); ^ ./src/ec_dissector_quake3.c:52:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)( (int) udp + UDP_HEADER); ^ ./src/ec_dissector_quake3.c:60:20: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if(!strncasecmp(payload,"rcon",4)) ^ In file included from /usr/include/string.h:98:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_quake3.c:27: /usr/include/strings.h:64:6: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_quake3.c:72:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload, len); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_quake3.c:27: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_rip.o ./src/ec_dissector_rip.c ./src/ec_dissector_rip.c: In function 'Dissector_rip': ./src/ec_dissector_rip.c:77:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_rip.c:77:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_rip.c:77:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_rip.c:90:51: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload+8, sizeof(data_to_ettercap->pass)-1); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_rip.c:55: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_rlogin.o ./src/ec_dissector_rlogin.c ./src/ec_dissector_rlogin.c: In function 'Dissector_rlogin': ./src/ec_dissector_rlogin.c:63:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_rlogin.c:63:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_rlogin.c:63:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_smb.o ./src/ec_dissector_smb.c In file included from /usr/include/string.h:127:0, from ./src/include/ec_main.h:31, from ./src/ec_dissector_smb.c:23: ./src/ec_dissector_smb.c: In function 'GetBinaryE': ./src/ec_dissector_smb.c:89:15: warning: pointer targets in passing argument 1 of '__builtin___strcat_chk' differ in signedness [-Wpointer-sign] strcat(dest, dummy); ^ ./src/ec_dissector_smb.c:89:15: note: expected 'char *' but argument is of type 'unsigned char *' ./src/ec_dissector_smb.c:89:15: warning: pointer targets in passing argument 1 of '__strcat_ichk' differ in signedness [-Wpointer-sign] strcat(dest, dummy); ^ /usr/include/ssp/string.h:90:1: note: expected 'char *' but argument is of type 'unsigned char *' __ssp_bos_icheck2_restrict(strcat, char *, const char *) ^ ./src/ec_dissector_smb.c: In function 'Dissector_smb': ./src/ec_dissector_smb.c:106:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_smb.c:106:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_smb.c:106:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_smb.c:128:29: warning: pointer targets in passing argument 2 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(ptr, data_to_ettercap->info, 8); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:149:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] Blob = ptr; ^ ./src/ec_dissector_smb.c:173:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ( (ptr = (char *)memmem(ptr, 128, "NTLMSSP", 8)) == NULL) return 0; ^ ./src/ec_dissector_smb.c:174:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] Blob = ptr; ^ ./src/ec_dissector_smb.c:175:16: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_smb.c:23: /usr/include/string.h:55:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strchr(const char *, int); ^ ./src/ec_dissector_smb.c:175:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ ./src/ec_dissector_smb.c:204:22: warning: pointer targets in passing argument 1 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob+LM_Offset, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:204:38: warning: pointer targets in passing argument 2 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob+LM_Offset, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:209:25: warning: pointer targets in passing argument 1 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob+NT_Offset, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:209:41: warning: pointer targets in passing argument 2 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob+NT_Offset, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:221:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] Blob = ptr; ^ ./src/ec_dissector_smb.c:224:14: warning: pointer targets in passing argument 1 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:224:20: warning: pointer targets in passing argument 2 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:226:21: warning: pointer targets in passing argument 1 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob+24, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:226:30: warning: pointer targets in passing argument 2 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(Blob+24, data_to_ettercap->info, 24); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:239:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ( (ptr = (char *)memmem(ptr, 128, "NTLMSSP", 8)) == NULL) return 0; ^ ./src/ec_dissector_smb.c:240:16: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_smb.c:23: /usr/include/string.h:55:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strchr(const char *, int); ^ ./src/ec_dissector_smb.c:240:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ ./src/ec_dissector_smb.c:246:21: warning: pointer targets in passing argument 2 of 'GetBinaryE' differ in signedness [-Wpointer-sign] GetBinaryE(ptr, schallenge, 8); ^ ./src/ec_dissector_smb.c:82:6: note: expected 'unsigned char *' but argument is of type 'char *' void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_snmp.o ./src/ec_dissector_snmp.c ./src/ec_dissector_snmp.c: In function 'com_name': ./src/ec_dissector_snmp.c:83:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] name = (char *)calloc(ssize+5,1); ^ ./src/ec_dissector_snmp.c:85:14: warning: pointer targets in return differ in signedness [-Wpointer-sign] return name; ^ ./src/ec_dissector_snmp.c: In function 'Dissector_snmp': ./src/ec_dissector_snmp.c:99:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *) ((int)udp + UDP_HEADER); ^ ./src/ec_dissector_snmp.c:99:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *) ((int)udp + UDP_HEADER); ^ ./src/ec_dissector_snmp.c:99:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *) ((int)udp + UDP_HEADER); ^ ./src/ec_dissector_snmp.c:105:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dname = com_name(payload); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_socks.o ./src/ec_dissector_socks.c ./src/ec_dissector_socks.c: In function 'Dissector_socks': ./src/ec_dissector_socks.c:44:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_socks.c:44:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_socks.c:44:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_socks.c:62:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->user, ++payload, len+1); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_socks.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_socks.c:71:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->pass, ++payload, len+1); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_socks.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_ssh.o ./src/ec_dissector_ssh.c In file included from /tmp/pkgbuild/net/ettercap/work.alpha/.buildlink/include/openssl/des.h:3:0, from ./src/ec_dissector_ssh.c:40: /usr/include/des.h:69:0: warning: "DES_LONG" redefined #define DES_LONG u_int32_t ^ In file included from /usr/include/openssl/e_os2.h:56:0, from /usr/include/openssl/des.h:63, from /tmp/pkgbuild/net/ettercap/work.alpha/.buildlink/include/openssl/des.h:2, from ./src/ec_dissector_ssh.c:40: /usr/include/openssl/opensslconf.h:181:0: note: this is the location of the previous definition #define DES_LONG uint32_t ^ ./src/ec_dissector_ssh.c: In function 'ssh_session_id': ./src/ec_dissector_ssh.c:186:4: warning: implicit declaration of function 'MD5' [-Wimplicit-function-declaration] MD5(p, i + j + 8, sessid); ^ ./src/ec_dissector_ssh.c: In function 'reconstruct_stream': ./src/ec_dissector_ssh.c:240:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] datalen = (u_short *)(obuf + 2); ^ ./src/ec_dissector_ssh.c: In function 'getfrom_stream': ./src/ec_dissector_ssh.c:262:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] datalen = (u_short *)(ibuf+2); ^ ./src/ec_dissector_ssh.c: In function 'Dissector_ssh': ./src/ec_dissector_ssh.c:410:52: warning: pointer targets in passing argument 3 of 'reconstruct_stream' differ in signedness [-Wpointer-sign] reconstruct_stream(payload, datalen, (*index_ssl)->s_stream); ^ ./src/ec_dissector_ssh.c:234:6: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' void reconstruct_stream(u_char *ibuf, short bufflen, u_char *obuf) ^ ./src/ec_dissector_ssh.c:411:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] stream = (*index_ssl)->s_stream; ^ ./src/ec_dissector_ssh.c:417:52: warning: pointer targets in passing argument 3 of 'reconstruct_stream' differ in signedness [-Wpointer-sign] reconstruct_stream(payload, datalen, (*index_ssl)->d_stream); ^ ./src/ec_dissector_ssh.c:234:6: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' void reconstruct_stream(u_char *ibuf, short bufflen, u_char *obuf) ^ ./src/ec_dissector_ssh.c:418:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] stream = (*index_ssl)->d_stream; ^ ./src/ec_dissector_ssh.c:421:51: warning: pointer targets in passing argument 2 of 'getfrom_stream' differ in signedness [-Wpointer-sign] while ( (slen = getfrom_stream(stream, packet) ) > 0) ^ ./src/ec_dissector_ssh.c:254:5: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' int getfrom_stream(u_char *ibuf, u_char *obuf) ^ ./src/ec_dissector_ssh.c:424:15: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ssh_len = ptohl(packet); ^ ./src/ec_dissector_ssh.c:431:31: warning: pointer targets in passing argument 1 of 'des3_decrypt' differ in signedness [-Wpointer-sign] des3_decrypt(packet+4, (u_char *)pacchetto, ssh_len+ssh_mod, (*index_ssl)->state_source); ^ ./src/ec_dissector_ssh.c:129:6: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' void des3_decrypt(u_char *src, u_char *dst, int len, void *state) ^ ./src/ec_dissector_ssh.c:433:31: warning: pointer targets in passing argument 1 of 'des3_decrypt' differ in signedness [-Wpointer-sign] des3_decrypt(packet+4, (u_char *)pacchetto, ssh_len+ssh_mod, (*index_ssl)->state_dest); ^ ./src/ec_dissector_ssh.c:129:6: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' void des3_decrypt(u_char *src, u_char *dst, int len, void *state) ^ ./src/ec_dissector_ssh.c:308:38: warning: variable 'to_arrive' set but not used [-Wunused-but-set-variable] u_long ssh_len, ssh_mod, datalen, to_arrive; ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_telnet.o ./src/ec_dissector_telnet.c ./src/ec_dissector_telnet.c: In function 'Dissector_telnet': ./src/ec_dissector_telnet.c:64:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_telnet.c:64:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_telnet.c:64:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_vnc.o ./src/ec_dissector_vnc.c ./src/ec_dissector_vnc.c: In function 'Dissector_vnc': ./src/ec_dissector_vnc.c:47:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_vnc.c:47:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_vnc.c:47:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_vnc.c:49:83: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] if ( (Dissector_StateMachine_GetStatus(data_to_ettercap, NULL) == 0) && sscanf(payload, "RFB %03d.%03d\n", &major, &minor) ) ^ In file included from ./src/include/ec_main.h:26:0, from ./src/ec_dissector_vnc.c:23: /usr/include/stdio.h:257:6: note: expected 'const char * restrict' but argument is of type 'u_char * {aka unsigned char *}' int sscanf(const char * __restrict, const char * __restrict, ...) ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_x11.o ./src/ec_dissector_x11.c ./src/ec_dissector_x11.c: In function 'Dissector_x11': ./src/ec_dissector_x11.c:46:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_x11.c:46:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_x11.c:46:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_x11.c:48:21: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] payload = strstr(payload+12, "MIT-MAGIC-COOKIE-1"); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_x11.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_x11.c:48:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = strstr(payload+12, "MIT-MAGIC-COOKIE-1"); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_ymsg.o ./src/ec_dissector_ymsg.c ./src/ec_dissector_ymsg.c: In function 'Dissector_ymsg': ./src/ec_dissector_ymsg.c:47:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ymsg.c:47:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ymsg.c:47:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ymsg.c:63:21: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_ymsg.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_ymsg.c:63:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^ ./src/ec_dissector_ymsg.c:105:18: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_ymsg.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dissector_ymsg.c:105:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^ ./src/ec_dissector_ymsg.c:118:21: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] from = strdup(p); /* get the sender */ ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_ymsg.c:23: /usr/include/string.h:80:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strdup(const char *); ^ ./src/ec_dissector_ymsg.c:129:19: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] to = strdup(p); /* get the receiver */ ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_ymsg.c:23: /usr/include/string.h:80:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strdup(const char *); ^ ./src/ec_dissector_ymsg.c:141:24: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] message = strdup(p); /* get the receiver */ ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dissector_ymsg.c:23: /usr/include/string.h:80:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strdup(const char *); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_doppleganger.o ./src/ec_doppleganger.c ./src/ec_doppleganger.c: In function 'Doppleganger_reARP': ./src/ec_doppleganger.c:82:61: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC1); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:83:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:83:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:85:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:86:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:87:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:91:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:91:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:93:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:94:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:95:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:100:61: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC2); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:101:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:101:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:103:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:104:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:105:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:109:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:109:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:111:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:112:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:113:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:125:49: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] if (buf1) Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:125:56: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] if (buf1) Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:126:49: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] if (buf2) Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:126:56: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] if (buf2) Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:130:28: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:131:28: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:134:28: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:135:28: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:137:54: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] if (buf1) Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:139:54: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] if (buf2) Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c: In function 'Doppleganger_Main': ./src/ec_doppleganger.c:163:67: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (buf1) Inet_GetMACfromString(((dopple_param *)param)->MAC1, PoorMAC1); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:166:67: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (buf2) Inet_GetMACfromString(((dopple_param *)param)->MAC2, PoorMAC2); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:186:38: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:186:45: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:190:43: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:192:38: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:192:45: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:194:30: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:195:30: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:196:43: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:199:38: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:199:45: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:203:43: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:205:36: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:205:43: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:207:30: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:208:30: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:209:43: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:218:44: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, BroadMAC, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:222:54: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:224:44: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, BroadMAC, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:226:36: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:228:49: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:232:44: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, BroadMAC, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:236:54: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:238:34: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, BroadMAC, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:240:36: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:242:49: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:257:61: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC2); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:258:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:258:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:262:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:264:36: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:264:43: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:266:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:267:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:268:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:272:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:272:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:276:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:278:36: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:278:43: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:280:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:281:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:282:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:287:61: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC1); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:288:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:288:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:292:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:294:41: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:294:48: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:296:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:297:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:298:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:302:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:302:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_IP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:306:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:308:36: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:308:43: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:310:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:311:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:312:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:340:61: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC2); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:341:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:341:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:343:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:344:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:345:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:347:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:347:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:349:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:350:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:351:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:355:61: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC1); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:356:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:356:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:358:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:359:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:360:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:362:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:362:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:364:35: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:365:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:366:51: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:395:41: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:395:48: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:397:30: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:398:30: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:403:41: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:403:48: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_doppleganger.c:405:30: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:406:30: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^ In file included from ./src/ec_doppleganger.c:29:0: ./src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_doppleganger.c:411:52: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] if (buf1) Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:413:52: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] if (buf2) Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^ In file included from ./src/ec_doppleganger.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dryad.o ./src/ec_dryad.c ./src/ec_dryad.c: In function 'Dryad_Main': ./src/ec_dryad.c:99:30: warning: pointer targets in passing argument 1 of 'Pcapfile_Read' differ in signedness [-Wpointer-sign] len = Pcapfile_Read(recvpck.aligned, MTU); ^ In file included from ./src/ec_dryad.c:36:0: ./src/include/ec_pcapfile.h:5:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Pcapfile_Read(char *buf, short MTU); ^ ./src/ec_dryad.c:101:40: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, NULL); ^ In file included from ./src/ec_dryad.c:28:0: ./src/include/ec_inet.h:59:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_dryad.c:112:52: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(data_to_ettercap.mac, eth->source_mac); // STORE THE MAC ^ In file included from ./src/ec_dryad.c:28:0: ./src/include/ec_inet.h:35:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_dryad.c:123:58: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(data_to_ettercap.mac, arp->source_add); // STORE THE MAC ^ In file included from ./src/ec_dryad.c:28:0: ./src/include/ec_inet.h:35:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ In file included from /usr/include/string.h:127:0, from ./src/include/ec_main.h:31, from ./src/ec_dryad.c:23: ./src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_dryad.c:126:44: note: in expansion of macro 'int_ntoa' strcpy(data_to_ettercap.ip, int_ntoa(arp->source_ip)); // STORE THE IP ^ ./src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_dryad.c:126:44: note: in expansion of macro 'int_ntoa' strcpy(data_to_ettercap.ip, int_ntoa(arp->source_ip)); // STORE THE IP ^ ./src/ec_dryad.c:128:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if ((*(u_long *)(arp->source_ip) & NetMask) != MyIP) // Non Local IP ^ ./src/ec_dryad.c:165:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] icmp = (ICMP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:165:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] icmp = (ICMP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:183:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:183:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:199:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:199:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:201:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp_data = (u_char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dryad.c:201:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp_data = (u_char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dryad.c:202:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp_datalen = (int)ip + ntohs(ip->t_len) - (int)tcp_data; ^ ./src/ec_dryad.c:202:59: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp_datalen = (int)ip + ntohs(ip->t_len) - (int)tcp_data; ^ ./src/ec_dryad.c:204:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] pck_len = (int)tcp_data - (int)ip; ^ ./src/ec_dryad.c:204:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] pck_len = (int)tcp_data - (int)ip; ^ ./src/ec_dryad.c: In function 'Dryad_Get_Banner': ./src/ec_dryad.c:345:32: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] if ( (ptr = strstr(data, "Server:")) ) ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dryad.c:23: /usr/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' char *strstr(const char *, const char *); ^ ./src/ec_dryad.c:378:24: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(ptr)) ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dryad.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/ec_dryad.c:380:38: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] for (i=0 ; i < strlen(ptr); i++ ) ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dryad.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/ec_dryad.c:390:50: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] strlcpy(data_to_ettercap->banner, ptr, sizeof(data_to_ettercap->banner)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_dryad.c:23: /usr/include/string.h:104:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlcpy(char *, const char *, size_t); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_error.o ./src/ec_error.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_filterdrop.o ./src/ec_filterdrop.c ./src/ec_filterdrop.c: In function 'FilterDrop_MakefilterTCP': ./src/ec_filterdrop.c:79:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_filterdrop.c:79:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_filterdrop.c:80:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_filterdrop.c:80:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_filterdrop.c:80:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_filterdrop.c:81:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] droplen = datalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ ./src/ec_filterdrop.c:81:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] droplen = datalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ ./src/ec_filterdrop.c:82:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] maxlen -= ((int)data-(int)ip); // MTU - (ip + tcp header) ^ ./src/ec_filterdrop.c:82:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] maxlen -= ((int)data-(int)ip); // MTU - (ip + tcp header) ^ ./src/ec_filterdrop.c: In function 'FilterDrop_MakefilterUDP': ./src/ec_filterdrop.c:134:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_filterdrop.c:134:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_filterdrop.c:135:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_filterdrop.c:135:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_filterdrop.c:135:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_filterdrop.c: In function 'FilterDrop_DoFilter': ./src/ec_filterdrop.c:206:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rest = *buflen-((u_int)ptr-(u_int)buf); ^ ./src/ec_filterdrop.c:206:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rest = *buflen-((u_int)ptr-(u_int)buf); ^ ./src/ec_filterdrop.c:232:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] ptr = (u_char *)((int)ptr + (filter->slen + filter->wildcard)); // move the ptr after the replaced string ^ ./src/ec_filterdrop.c:232:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ptr = (u_char *)((int)ptr + (filter->slen + filter->wildcard)); // move the ptr after the replaced string ^ ./src/ec_filterdrop.c:252:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rest = end-((u_int)ptr-(u_int)buf); ^ ./src/ec_filterdrop.c:252:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rest = end-((u_int)ptr-(u_int)buf); ^ ./src/ec_filterdrop.c:254:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rest = end-((u_int)ptr-(u_int)buf) - (filter->slen + filter->wildcard); ^ ./src/ec_filterdrop.c:254:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rest = end-((u_int)ptr-(u_int)buf) - (filter->slen + filter->wildcard); ^ ./src/ec_filterdrop.c:261:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] ptr = (u_char *)((int)ptr + filter->rlen); // move the ptr after the replaced string ^ ./src/ec_filterdrop.c:261:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ptr = (u_char *)((int)ptr + filter->rlen); // move the ptr after the replaced string ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_filterdrop.c:23: ./src/ec_filterdrop.c: In function 'FilterDrop_SaveFilter': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_filterdrop.c:488:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_fingerprint.o ./src/ec_fingerprint.c ./src/ec_fingerprint.c: In function 'Fingerprint_send_probes': ./src/ec_fingerprint.c:108:25: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( probe_pck, MACS, MACD, ETH_P_IP ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_fingerprint.c:110:19: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:111:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS, open_port, SYN_SEQ, 0, TH_BOGUS|TH_SYN, 0, 0); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:112:30: warning: pointer targets in passing argument 1 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS , OPT_LEN); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:103:17: warning: pointer targets in passing argument 2 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^ ./src/ec_fingerprint.c:112:66: note: in expansion of macro 'OPTIONS' Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS , OPT_LEN); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:115:19: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:116:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+1, open_port, SYN_SEQ, 0, 0, 0, 0); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:117:30: warning: pointer targets in passing argument 1 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:103:17: warning: pointer targets in passing argument 2 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^ ./src/ec_fingerprint.c:117:66: note: in expansion of macro 'OPTIONS' Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:120:19: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:121:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+2, open_port, SYN_SEQ, 0, TH_SYN|TH_FIN|TH_URG|TH_PSH, 0, 0); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:122:30: warning: pointer targets in passing argument 1 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:103:17: warning: pointer targets in passing argument 2 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^ ./src/ec_fingerprint.c:122:66: note: in expansion of macro 'OPTIONS' Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:125:19: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:126:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+3, open_port, SYN_SEQ, 0, TH_ACK, 0, 0); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:127:30: warning: pointer targets in passing argument 1 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:103:17: warning: pointer targets in passing argument 2 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^ ./src/ec_fingerprint.c:127:66: note: in expansion of macro 'OPTIONS' Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:130:19: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:131:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+4, closed_port, SYN_SEQ, 0, TH_SYN, 0, 0); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:132:30: warning: pointer targets in passing argument 1 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:103:17: warning: pointer targets in passing argument 2 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^ ./src/ec_fingerprint.c:132:66: note: in expansion of macro 'OPTIONS' Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:135:19: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:136:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+5, closed_port, SYN_SEQ, 0, TH_ACK, 0, 0); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:137:30: warning: pointer targets in passing argument 1 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:103:17: warning: pointer targets in passing argument 2 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^ ./src/ec_fingerprint.c:137:66: note: in expansion of macro 'OPTIONS' Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:140:19: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:141:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+6, closed_port, SYN_SEQ, 0, TH_FIN|TH_PSH|TH_URG, 0, 0); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:142:30: warning: pointer targets in passing argument 1 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:103:17: warning: pointer targets in passing argument 2 of 'Inet_Forge_Insert_TCPOpt' differ in signedness [-Wpointer-sign] #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^ ./src/ec_fingerprint.c:142:66: note: in expansion of macro 'OPTIONS' Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:53:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:145:31: warning: pointer targets in passing argument 1 of 'Inet_Forge_packet_destroy' differ in signedness [-Wpointer-sign] Inet_Forge_packet_destroy( probe_pck ); ^ In file included from ./src/ec_fingerprint.c:27:0: ./src/include/ec_inet_forge.h:10:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_packet_destroy( u_char *buf ); ^ ./src/ec_fingerprint.c: In function 'Fingerprint_parse_probes': ./src/ec_fingerprint.c:165:37: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &type); ^ In file included from ./src/ec_fingerprint.c:26:0: ./src/include/ec_inet.h:59:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_fingerprint.c: In function 'Fingerprint_Parse_packet': ./src/ec_fingerprint.c:344:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_fingerprint.c:344:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_fingerprint.c: In function 'Fingerprint_Simple_Scan': ./src/ec_fingerprint.c:369:32: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + TCP_HEADER ); ^ In file included from ./src/ec_fingerprint.c:26:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_fingerprint.c:376:31: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] Inet_GetRawPacket(sock, recvpck.aligned, MTU, NULL); ^ In file included from ./src/ec_fingerprint.c:26:0: ./src/include/ec_inet.h:59:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_fingerprint.c:377:32: warning: pointer targets in passing argument 1 of 'Fingerprint_Parse_packet' differ in signedness [-Wpointer-sign] Fingerprint_Parse_packet(recvpck.aligned); ^ ./src/ec_fingerprint.c:336:6: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' void Fingerprint_Parse_packet(char *buffer) ^ ./src/ec_fingerprint.c: In function 'Fingerprint_OS': ./src/ec_fingerprint.c:411:46: warning: pointer targets in passing argument 3 of 'Inet_GetIfaceInfo' differ in signedness [-Wpointer-sign] Inet_GetIfaceInfo(Options.netiface, &MTU, MACS, (unsigned long *)&IPS, 0); ^ In file included from ./src/ec_fingerprint.c:26:0: ./src/include/ec_inet.h:54:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, unsigned long *IP, unsigned long *NetMask); ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_fingerprint.c:23: ./src/ec_fingerprint.c: In function 'Fingerprint_MAC': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_fingerprint.c:452:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_fingerprint.c:471:13: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_grell.o ./src/ec_grell.c ./src/ec_grell.c: In function 'Grell_Dissector': ./src/ec_grell.c:105:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf = Inet_Forge_packet(MAX_DATA*5+data_to_ettercap->datalen+10); // prepare the packet for the HTTP dissector ^ ./src/ec_grell.c:106:20: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( buf+40, data_to_ettercap->source_port, // create a fake tcp header ^ In file included from ./src/ec_grell.c:33:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_grell.c:111:25: warning: pointer targets in passing argument 7 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] payload, ^ In file included from ./src/ec_grell.c:33:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_grell.c:114:19: warning: pointer targets in passing argument 1 of 'Dissector_http' differ in signedness [-Wpointer-sign] Dissector_http(buf+40, data_to_ettercap, NULL, 1, 443); ^ In file included from ./src/ec_grell.c:34:0: ./src/include/ec_dissector.h:75:23: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern FUNC_DISSECTOR(Dissector_http); // 80 8080 ^ ./src/include/ec_dissector.h:43:34: note: in definition of macro 'FUNC_DISSECTOR' #define FUNC_DISSECTOR(func) int func( u_char *data, CONNECTION *data_to_ettercap, SNIFFED_DATA *sniff_data_to_ettercap, int Conn_Mode, short SERV_PORT ) ^ ./src/ec_grell.c:116:31: warning: pointer targets in passing argument 1 of 'Inet_Forge_packet_destroy' differ in signedness [-Wpointer-sign] Inet_Forge_packet_destroy( buf ); ^ In file included from ./src/ec_grell.c:33:0: ./src/include/ec_inet_forge.h:10:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_packet_destroy( u_char *buf ); ^ ./src/ec_grell.c: In function 'Grell_spawn': ./src/ec_grell.c:559:20: warning: pointer targets in passing argument 1 of 'server_init' differ in signedness [-Wpointer-sign] i = server_init(buf, sizeof(buf)-2, &son_data); ^ ./src/ec_grell.c:286:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static int server_init(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:563:17: warning: pointer targets in passing argument 1 of 'server_write' differ in signedness [-Wpointer-sign] server_write(buf, i, &son_data); ^ ./src/ec_grell.c:274:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static int server_write(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:564:17: warning: pointer targets in passing argument 1 of 'client_parse' differ in signedness [-Wpointer-sign] client_parse(buf, i, &son_data); ^ ./src/ec_grell.c:120:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static void client_parse(char *buf, int len, public_data *son_data) ^ ./src/ec_grell.c:583:31: warning: pointer targets in passing argument 1 of 'client_read' differ in signedness [-Wpointer-sign] if ((i = client_read(buf, i-2, &son_data)) <= 0) break; ^ ./src/ec_grell.c:238:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static int client_read(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:585:27: warning: pointer targets in passing argument 1 of 'server_write' differ in signedness [-Wpointer-sign] if (server_write(buf, i, &son_data) != i) break; ^ ./src/ec_grell.c:274:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static int server_write(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:586:23: warning: pointer targets in passing argument 1 of 'client_parse' differ in signedness [-Wpointer-sign] client_parse(buf, i, &son_data); ^ ./src/ec_grell.c:120:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static void client_parse(char *buf, int len, public_data *son_data) ^ ./src/ec_grell.c:593:31: warning: pointer targets in passing argument 1 of 'server_read' differ in signedness [-Wpointer-sign] if ((i = server_read(buf, i-2, &son_data)) <= 0) break; ^ ./src/ec_grell.c:268:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static int server_read(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:595:27: warning: pointer targets in passing argument 1 of 'client_write' differ in signedness [-Wpointer-sign] if (client_write(buf, i, &son_data) != i) break; ^ ./src/ec_grell.c:244:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static int client_write(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:596:23: warning: pointer targets in passing argument 1 of 'server_parse' differ in signedness [-Wpointer-sign] server_parse(buf, i, &son_data); ^ ./src/ec_grell.c:179:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' static void server_parse(char *buf, int len, public_data *son_data) ^ ./src/ec_grell.c: In function 'Grell_start': ./src/ec_grell.c:651:95: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] father_data.client_fd = accept(proxy_fd, (struct sockaddr *)&father_data.client_sin, &dummy); ^ In file included from ./src/include/ec_inet_structures.h:10:0, from ./src/ec_grell.c:32: /usr/include/sys/socket.h:649:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ ./src/ec_grell.c:669:95: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] father_data.client_fd = accept(https_fd, (struct sockaddr *)&father_data.client_sin, &dummy); ^ In file included from ./src/include/ec_inet_structures.h:10:0, from ./src/ec_grell.c:32: /usr/include/sys/socket.h:649:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_illithid.o ./src/ec_illithid.c ./src/ec_illithid.c: In function 'Illithid_GetConnections': ./src/ec_illithid.c:283:63: warning: pointer targets in passing argument 3 of 'Inet_GetIfaceInfo' differ in signedness [-Wpointer-sign] Inet_GetIfaceInfo( ((illithid_param *)param)->iface, &MTU, MyMAC, &MyIP, &NetMask); ^ In file included from ./src/ec_illithid.c:28:0: ./src/include/ec_inet.h:54:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, unsigned long *IP, unsigned long *NetMask); ^ ./src/ec_illithid.c:302:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ins_pck = Inet_Forge_packet(MTU); ^ ./src/ec_illithid.c:310:30: warning: pointer targets in passing argument 1 of 'Pcapfile_Read' differ in signedness [-Wpointer-sign] len = Pcapfile_Read(recvpck.aligned, MTU); ^ In file included from ./src/ec_illithid.c:38:0: ./src/include/ec_pcapfile.h:5:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Pcapfile_Read(char *buf, short MTU); ^ ./src/ec_illithid.c:312:40: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^ In file included from ./src/ec_illithid.c:28:0: ./src/include/ec_inet.h:59:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_illithid.c:316:25: warning: pointer targets in passing argument 1 of 'Pcapfile_Write' differ in signedness [-Wpointer-sign] Pcapfile_Write(recvpck.aligned, len); ^ In file included from ./src/ec_illithid.c:38:0: ./src/include/ec_pcapfile.h:6:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Pcapfile_Write(char *buf, short len); ^ ./src/ec_illithid.c:420:50: warning: pointer targets in passing argument 1 of 'Illithid_ToBeSniffed_mac' differ in signedness [-Wpointer-sign] PckDir = Illithid_ToBeSniffed_mac(MAC1, MAC2, &data_to_ettercap); ^ ./src/ec_illithid.c:102:5: note: expected 'char *' but argument is of type 'unsigned char *' int Illithid_ToBeSniffed_mac(char *source, char *dest, CONNECTION *data); ^ ./src/ec_illithid.c:420:56: warning: pointer targets in passing argument 2 of 'Illithid_ToBeSniffed_mac' differ in signedness [-Wpointer-sign] PckDir = Illithid_ToBeSniffed_mac(MAC1, MAC2, &data_to_ettercap); ^ ./src/ec_illithid.c:102:5: note: expected 'char *' but argument is of type 'unsigned char *' int Illithid_ToBeSniffed_mac(char *source, char *dest, CONNECTION *data); ^ ./src/ec_illithid.c:491:67: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, eth->dest_mac); ^ In file included from ./src/ec_illithid.c:28:0: ./src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_illithid.c:511:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:511:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:517:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp_data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:517:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp_data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:517:28: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] tcp_data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:518:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp_datalen = (int)ip + ntohs(ip->t_len) - (int)tcp_data; ^ ./src/ec_illithid.c:518:62: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp_datalen = (int)ip + ntohs(ip->t_len) - (int)tcp_data; ^ ./src/ec_illithid.c:575:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:575:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:581:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] udp_data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_illithid.c:581:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] udp_data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_illithid.c:581:28: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] udp_data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_illithid.c:636:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:636:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:671:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:671:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:673:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:673:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:673:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:675:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + ntohs(ip->t_len) - (int)data; // I need it before modifications.... ^ ./src/ec_illithid.c:675:58: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + ntohs(ip->t_len) - (int)data; // I need it before modifications.... ^ ./src/ec_illithid.c:710:64: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, data_to_ettercap.source_mac, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:710:84: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, data_to_ettercap.source_mac, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:711:58: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, ip->dest_ip, ip->source_ip, TCP_HEADER, session.elem2.IPID+session.elem2.PacketSent+1, 0, IPPROTO_TCP); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:712:59: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_tcp( pck_to_send, ntohs(tcp->dest), ntohs(tcp->source), ntohl(tcp->ack_seq), session.elem1.Seq+session.elem1.datalen, TH_ACK, 0, 0); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:721:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] session.elem1.datalen = (int)ip + ntohs(ip->t_len) - (int)data; // now i store the modified datalen ^ ./src/ec_illithid.c:721:75: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] session.elem1.datalen = (int)ip + ntohs(ip->t_len) - (int)data; // now i store the modified datalen ^ ./src/ec_illithid.c:741:80: warning: pointer targets in passing argument 2 of 'Inet_SendLargeTCPPacket' differ in signedness [-Wpointer-sign] session.elem1.PacketSent += Inet_SendLargeTCPPacket(sock, recvpck.aligned, len, MTU); ^ In file included from ./src/ec_illithid.c:28:0: ./src/include/ec_inet.h:46:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendLargeTCPPacket(int sock, char *buffer, int len, int MTU); ^ ./src/ec_illithid.c:753:41: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, len); ^ In file included from ./src/ec_illithid.c:28:0: ./src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_illithid.c:776:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf = Inet_Forge_packet( ETH_HEADER + IP_HEADER + TCP_HEADER ); ^ ./src/ec_illithid.c:778:34: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf, MyMAC, session.elem2.MAC, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:779:28: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( buf + ETH_HEADER, session.elem1.IP, session.elem2.IP, ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:783:29: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( buf + ETH_HEADER + IP_HEADER, ntohs(session.elem1.Port), ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:792:34: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( buf, MyMAC, session.elem1.MAC, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:793:28: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] Inet_Forge_ip( buf + ETH_HEADER, session.elem2.IP, session.elem1.IP, ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:797:29: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] Inet_Forge_tcp( buf + ETH_HEADER + IP_HEADER, ntohs(session.elem2.Port), ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:806:40: warning: pointer targets in passing argument 1 of 'Inet_Forge_packet_destroy' differ in signedness [-Wpointer-sign] Inet_Forge_packet_destroy( buf ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:10:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_packet_destroy( u_char *buf ); ^ ./src/ec_illithid.c:768:21: warning: variable 'saved_session' set but not used [-Wunused-but-set-variable] Ielem **saved_session; ^ ./src/ec_illithid.c:831:52: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session.elem2.MAC, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:833:46: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session.elem1.IP, session.elem2.IP, ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:838:47: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_tcp( pck_to_send, ntohs(session.elem1.Port), ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:843:60: warning: pointer targets in passing argument 7 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] inj.data, inj.datalen); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:850:52: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session.elem2.MAC, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:852:46: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session.elem1.IP, session.elem2.IP, ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:857:47: warning: pointer targets in passing argument 1 of 'Inet_Forge_udp' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_udp( pck_to_send, ntohs(session.elem1.Port), ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:47:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_udp( u_char *buf, ^ ./src/ec_illithid.c:859:60: warning: pointer targets in passing argument 4 of 'Inet_Forge_udp' differ in signedness [-Wpointer-sign] inj.data, inj.datalen); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:47:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_udp( u_char *buf, ^ ./src/ec_illithid.c: In function 'Illithid_Reset_Conn': ./src/ec_illithid.c:1101:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf1 = Inet_Forge_packet( ETH_HEADER + IP_HEADER + TCP_HEADER ); ^ ./src/ec_illithid.c:1103:49: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session->elem2.MAC, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:1104:43: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session->elem1.IP, ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:1109:44: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_tcp( pck_to_send, ntohs(session->elem1.Port), ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:1115:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf2 = Inet_Forge_packet( ETH_HEADER + IP_HEADER + TCP_HEADER ); ^ ./src/ec_illithid.c:1117:49: warning: pointer targets in passing argument 1 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session->elem1.MAC, ETH_P_IP ); ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:1118:43: warning: pointer targets in passing argument 1 of 'Inet_Forge_ip' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session->elem2.IP, ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:24:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:1123:44: warning: pointer targets in passing argument 1 of 'Inet_Forge_tcp' differ in signedness [-Wpointer-sign] pck_to_send += Inet_Forge_tcp( pck_to_send, ntohs(session->elem2.Port), ^ In file included from ./src/ec_illithid.c:29:0: ./src/include/ec_inet_forge.h:38:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_tcp( u_char *buf, ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_inet.o ./src/ec_inet.c ./src/ec_inet.c: In function 'Inet_GetMyInfo': ./src/ec_inet.c:206:46: warning: pointer targets in passing argument 3 of 'Inet_GetIfaceInfo' differ in signedness [-Wpointer-sign] Inet_GetIfaceInfo(Options.netiface, NULL, MAC_Add, &IP_Add, &NetMask); ^ ./src/ec_inet.c:103:5: note: expected 'char *' but argument is of type 'unsigned char *' int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, u_long *IP, u_long *NetMask); ^ In file included from /usr/include/stdio.h:597:0, from src/include/ec_main.h:26, from ./src/ec_inet.c:26: src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_inet.c:211:50: note: in expansion of macro 'int_ntoa' snprintf(IP, sizeof(IP), "%s", int_ntoa(IP_Add)); ^ src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_inet.c:223:62: note: in expansion of macro 'int_ntoa' snprintf(MySubnet, sizeof(MySubnet), "%s", int_ntoa(NetMask)); ^ In file included from src/include/ec_main.h:40:0, from ./src/ec_inet.c:26: ./src/ec_inet.c: In function 'Inet_HostInLAN': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:289:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ In file included from /usr/include/stdio.h:597:0, from src/include/ec_main.h:26, from ./src/ec_inet.c:26: src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_inet.c:294:68: note: in expansion of macro 'int_ntoa' snprintf(Host_In_LAN[k].ip, sizeof(Host_In_LAN[k].ip), "%s", int_ntoa(current->IP_Add)); ^ In file included from src/include/ec_main.h:40:0, from ./src/ec_inet.c:26: ./src/ec_inet.c: In function 'Inet_Save_Host_List': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:333:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c: In function 'Inet_Load_Host_List': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:360:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:380:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ In file included from /usr/include/stdio.h:597:0, from src/include/ec_main.h:26, from ./src/ec_inet.c:26: src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_inet.c:384:65: note: in expansion of macro 'int_ntoa' snprintf(Host_In_LAN[0].ip, sizeof(Host_In_LAN[0].ip), "%s", int_ntoa(N_IP)); ^ ./src/ec_inet.c:385:44: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(Host_In_LAN[0].mac, N_MAC); ^ ./src/ec_inet.c:85:6: note: expected 'unsigned char *' but argument is of type 'char *' void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c: In function 'Inet_Host_in_LAN_list_broadping': ./src/ec_inet.c:441:57: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, head->MAC_Add, ETH_BROADCAST, ETH_P_IP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:452:29: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ ./src/ec_inet.c:108:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:469:37: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^ ./src/ec_inet.c:107:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ In file included from src/include/ec_main.h:40:0, from ./src/ec_inet.c:26: src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:487:20: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("malloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c: In function 'Inet_Host_in_LAN_list': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:520:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("malloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:524:35: warning: pointer targets in passing argument 3 of 'Inet_GetIfaceInfo' differ in signedness [-Wpointer-sign] Inet_GetIfaceInfo(iface, &MTU, head->MAC_Add, &head->IP_Add, &NetMask); ^ ./src/ec_inet.c:103:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, u_long *IP, u_long *NetMask); ^ In file included from ./src/ec_inet.c:51:0: src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_inet.c:565:64: note: in expansion of macro 'int_ntoa' fprintf(stdout, "Spoofing source IP with %s...\n", int_ntoa(Options.spoofIp)); ^ ./src/ec_inet.c:680:59: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.buf, head->MAC_Add, ETH_BROADCAST, ETH_P_ARP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:701:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] ARP_BROADCAST, dest_ip ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_inet.c:704:41: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.buf, ETH_HEADER + ARP_HEADER); ^ ./src/ec_inet.c:108:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:720:35: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] ARP_BROADCAST, dest_ip ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_inet.c:723:44: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.buf, ETH_HEADER + ARP_HEADER); ^ ./src/ec_inet.c:108:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:758:38: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] leng = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^ ./src/ec_inet.c:107:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ In file included from src/include/ec_main.h:40:0, from ./src/ec_inet.c:26: src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:779:16: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("malloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c: In function 'Inet_NoSniff': ./src/ec_inet.c:828:52: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[0].mac, MyMAC); ^ ./src/ec_inet.c:86:5: note: expected 'unsigned char *' but argument is of type 'char *' int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:829:52: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, DestMAC); ^ ./src/ec_inet.c:86:5: note: expected 'unsigned char *' but argument is of type 'char *' int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:831:44: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.buf, MyMAC, DestMAC, ETH_P_IP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:831:51: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.buf, MyMAC, DestMAC, ETH_P_IP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:843:35: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.buf, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ ./src/ec_inet.c:108:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:866:37: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^ ./src/ec_inet.c:107:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_inet.c:875:33: warning: pointer targets in passing argument 1 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(MACS, HEther->source_mac); ^ ./src/ec_inet.c:85:6: note: expected 'char *' but argument is of type 'unsigned char *' void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:875:39: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(MACS, HEther->source_mac); ^ ./src/ec_inet.c:85:6: note: expected 'unsigned char *' but argument is of type 'char *' void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c: In function 'Inet_CheckSwitch': ./src/ec_inet.c:976:50: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[1].mac, DestMAC); ^ ./src/ec_inet.c:86:5: note: expected 'unsigned char *' but argument is of type 'char *' int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:985:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:985:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:992:33: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ ./src/ec_inet.c:108:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:994:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_ARP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:994:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_ARP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:996:24: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] DestMAC, fakeip, ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_inet.c:997:24: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] DestMAC, destip ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/ec_inet.c:1001:37: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + ARP_HEADER); ^ ./src/ec_inet.c:108:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:1009:40: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len=Inet_GetRawPacket(sock, recvpck.aligned, MTU, &type); ^ ./src/ec_inet.c:107:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_inet.c:1038:50: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[2].mac, SourceMAC); ^ ./src/ec_inet.c:86:5: note: expected 'unsigned char *' but argument is of type 'char *' int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:1039:50: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[1].mac, DestMAC); ^ ./src/ec_inet.c:86:5: note: expected 'unsigned char *' but argument is of type 'char *' int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:1048:46: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:1048:53: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^ In file included from ./src/ec_inet.c:52:0: src/include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_inet.c:1055:33: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^ ./src/ec_inet.c:108:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:1062:40: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len=Inet_GetRawPacket(sock, recvpck.aligned, MTU, &type); ^ ./src/ec_inet.c:107:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ In file included from src/include/ec_main.h:40:0, from ./src/ec_inet.c:26: ./src/ec_inet.c: In function 'Inet_OpenSocket': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:1155:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("Addresses doesn't mach"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet.c:1163:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("socket()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c: In function 'Inet_SendLargeTCPPacket': ./src/ec_inet.c:1235:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_inet.c:1235:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_inet.c:1236:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_inet.c:1236:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_inet.c:1237:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + MTU - (int)data; ^ ./src/ec_inet.c:1237:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + MTU - (int)data; ^ ./src/ec_inet.c:1238:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] totdatalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ ./src/ec_inet.c:1238:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] totdatalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_inet_forge.o ./src/ec_inet_forge.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_inet_forge.c:23: ./src/ec_inet_forge.c: In function 'Inet_Forge_packet': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_inet_forge.c:53:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet_forge.c: In function 'Inet_Forge_Insert_TCPOpt': ./src/ec_inet_forge.c:222:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_inet_forge.c:222:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_inet_forge.c:222:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_inet_forge.c:226:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ ./src/ec_inet_forge.c:226:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ ./src/ec_inet_forge.c:217:8: warning: variable 'total_len' set but not used [-Wunused-but-set-variable] int total_len, datalen; ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_logtofile.o ./src/ec_logtofile.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_logtofile.c:23: ./src/ec_logtofile.c: In function 'LogToFile_Collect': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_logtofile.c:120:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c: In function 'LogToFile': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_logtofile.c:159:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c: In function 'LogToFile_FilteredData': ./src/ec_logtofile.c:191:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_logtofile.c:191:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_logtofile.c:192:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_logtofile.c:192:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_logtofile.c:192:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_logtofile.c:206:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_logtofile.c:206:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_logtofile.c:207:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_logtofile.c:207:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_logtofile.c:207:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_logtofile.c:208:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ ./src/ec_logtofile.c:208:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] datalen = (int)ip + ntohs(ip->t_len) - (int)data; ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_logtofile.c:23: ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_logtofile.c:224:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c: In function 'LogToFile_DumpPass': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_logtofile.c:250:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c: In function 'LogToFile_MakePassiveReport': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_logtofile.c:319:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ In file included from ./src/ec_logtofile.c:29:0: ./src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_logtofile.c:325:45: note: in expansion of macro 'int_ntoa' fprintf(fto, " ETTERCAP REPORT for %s", int_ntoa(MyIP)); ^ ./src/include/ec_inet_structures.h:236:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) ^ ./src/ec_logtofile.c:326:41: note: in expansion of macro 'int_ntoa' fprintf(fto, " netmask: %s\n", int_ntoa(NetMask)); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_main.o ./src/ec_main.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_packet.o ./src/ec_packet.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_packet.c:23: ./src/ec_packet.c: In function 'packet_create_object': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_packet.c:45:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_packet.c:91:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*po)->L4.header = (u_char *) ((int)ip + ip->h_len * 4); /* default */ ^ ./src/ec_packet.c:91:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (*po)->L4.header = (u_char *) ((int)ip + ip->h_len * 4); /* default */ ^ ./src/ec_packet.c:99:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] icmp = (ICMP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:99:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] icmp = (ICMP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:113:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:113:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:130:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*po)->data.data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_packet.c:130:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (*po)->data.data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_packet.c:130:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] (*po)->data.data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_packet.c:141:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:141:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:161:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*po)->data.data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_packet.c:161:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (*po)->data.data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_packet.c:161:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] (*po)->data.data = (char *)((int)tcp + tcp->doff * 4); ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_packet.c:23: ./src/ec_packet.c: In function 'packet_duplicate': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_packet.c:216:13: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("incorrect level specified"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_packet.c:223:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_parser.o ./src/ec_parser.c ./src/ec_parser.c: In function 'Parser_ParseParameters': ./src/ec_parser.c:366:81: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if ( strcmp(Host_Dest.mac, "") && Inet_GetMACfromString(Host_Dest.mac, check ) == -1) // check for valid mac ^ In file included from ./src/ec_parser.c:37:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:368:85: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if ( strcmp(Host_Source.mac, "") && Inet_GetMACfromString(Host_Source.mac, check ) == -1) // check for valid mac ^ In file included from ./src/ec_parser.c:37:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:407:54: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (Inet_GetMACfromString(Host_Dest.mac, check ) == -1) // check for valid mac ^ In file included from ./src/ec_parser.c:37:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:412:54: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (Inet_GetMACfromString(Host_Dest.mac, check ) == -1) // check for valid mac ^ In file included from ./src/ec_parser.c:37:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:414:56: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (Inet_GetMACfromString(Host_Source.mac, check ) == -1) // check for valid mac ^ In file included from ./src/ec_parser.c:37:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:462:47: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (Inet_GetMACfromString(second, check ) == -1) // if it is a mac take it in dest, else it is the source ip ^ In file included from ./src/ec_parser.c:37:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ In file included from src/include/ec_main.h:40:0, from ./src/ec_parser.c:24: ./src/ec_parser.c: In function 'Parser_AddStr': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_parser.c:493:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c: In function 'Parser_ParseConfFile': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_parser.c:527:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c: In function 'Parser_Filters': ./src/ec_parser.c:815:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] i = ((int)q-(int)p) - strlen(""); ^ ./src/ec_parser.c:815:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] i = ((int)q-(int)p) - strlen(""); ^ ./src/ec_parser.c:819:63: warning: pointer targets in passing argument 2 of 'FilterDrop_ParseWildcard' differ in signedness [-Wpointer-sign] filter->wildcard = FilterDrop_ParseWildcard(tmp_search, filter->display_search, sizeof(tmp_search)); ^ In file included from ./src/ec_parser.c:41:0: src/include/ec_filterdrop.h:10:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_ParseWildcard(char *dst, char *src, size_t size); ^ ./src/ec_parser.c:820:43: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] filter->slen = FilterDrop_strescape(filter->search, tmp_search); ^ In file included from ./src/ec_parser.c:41:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/ec_parser.c:827:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] i = ((int)q-(int)p) - strlen(""); ^ ./src/ec_parser.c:827:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] i = ((int)q-(int)p) - strlen(""); ^ ./src/ec_parser.c:831:43: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] filter->rlen = FilterDrop_strescape(filter->replace, filter->display_replace); ^ In file included from ./src/ec_parser.c:41:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/ec_parser.c:831:60: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] filter->rlen = FilterDrop_strescape(filter->replace, filter->display_replace); ^ In file included from ./src/ec_parser.c:41:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ In file included from src/include/ec_main.h:40:0, from ./src/ec_parser.c:24: ./src/ec_parser.c: In function 'Parser_LoadFilters': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_parser.c:949:13: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_parser.c:959:13: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c: In function 'Parser_Expand_List': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_parser.c:1102:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("realloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c: In function 'Parser_HostList': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_parser.c:1139:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_pcapfile.o ./src/ec_pcapfile.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_pcapfile.c:23: ./src/ec_pcapfile.c: In function 'Pcapfile_Read': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_pcapfile.c:102:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fread()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_pcapfile.c: In function 'Pcapfile_Write': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_pcapfile.c:235:10: note: in expansion of macro 'ERROR_MSG' ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_pcapfile.c:263:7: note: in expansion of macro 'ERROR_MSG' ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_pcapfile.c:266:7: note: in expansion of macro 'ERROR_MSG' ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_plugins.o ./src/ec_plugins.c In file included from src/include/ec_main.h:40:0, from ./src/ec_plugins.c:24: ./src/ec_plugins.c: In function 'Plugin_Load': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_plugins.c:217:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_signal.o ./src/ec_signal.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_threads.o ./src/ec_threads.c In file included from ./src/include/ec_main.h:40:0, from ./src/ec_threads.c:23: ./src/ec_threads.c: In function 'ECThread_register': ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_threads.c:67:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_vbuf.o ./src/ec_vbuf.c In file included from ./src/ec_vbuf.c:25:0: ./src/ec_vbuf.c: In function 'vbuf_strcpy': ./src/include/ec_vbuf.h:27:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:90:15: note: in expansion of macro 'vbuf_ptr' i = strlen(vbuf_ptr(vbuf)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_vbuf.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ In file included from /usr/include/string.h:127:0, from ./src/include/ec_main.h:31, from ./src/ec_vbuf.c:23: ./src/include/ec_vbuf.h:27:31: warning: pointer targets in passing argument 2 of '__builtin___strcpy_chk' differ in signedness [-Wpointer-sign] #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:95:16: note: in expansion of macro 'vbuf_ptr' strcpy(dst, vbuf_ptr(vbuf)); ^ ./src/include/ec_vbuf.h:27:31: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:95:16: note: in expansion of macro 'vbuf_ptr' strcpy(dst, vbuf_ptr(vbuf)); ^ ./src/include/ec_vbuf.h:27:31: warning: pointer targets in passing argument 2 of '__strcpy_ichk' differ in signedness [-Wpointer-sign] #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:95:16: note: in expansion of macro 'vbuf_ptr' strcpy(dst, vbuf_ptr(vbuf)); ^ /usr/include/ssp/string.h:89:1: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ In file included from ./src/ec_vbuf.c:25:0: ./src/ec_vbuf.c: In function 'vbuf_strdup': ./src/include/ec_vbuf.h:27:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:108:15: note: in expansion of macro 'vbuf_ptr' i = strlen(vbuf_ptr(vbuf)); ^ In file included from ./src/include/ec_main.h:31:0, from ./src/ec_vbuf.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ In file included from ./src/include/ec_main.h:40:0, from ./src/ec_vbuf.c:23: ./src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/ec_vbuf.c:115:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("calloc()"); ^ ./src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ In file included from /usr/include/string.h:127:0, from ./src/include/ec_main.h:31, from ./src/ec_vbuf.c:23: ./src/include/ec_vbuf.h:27:31: warning: pointer targets in passing argument 2 of '__builtin___strcpy_chk' differ in signedness [-Wpointer-sign] #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:117:14: note: in expansion of macro 'vbuf_ptr' strcpy(p, vbuf_ptr(vbuf)); ^ ./src/include/ec_vbuf.h:27:31: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:117:14: note: in expansion of macro 'vbuf_ptr' strcpy(p, vbuf_ptr(vbuf)); ^ ./src/include/ec_vbuf.h:27:31: warning: pointer targets in passing argument 2 of '__strcpy_ichk' differ in signedness [-Wpointer-sign] #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:117:14: note: in expansion of macro 'vbuf_ptr' strcpy(p, vbuf_ptr(vbuf)); ^ /usr/include/ssp/string.h:89:1: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' __ssp_bos_icheck2_restrict(strcpy, char *, const char *) ^ In file included from /usr/include/stdio.h:597:0, from ./src/include/ec_main.h:26, from ./src/ec_vbuf.c:23: ./src/ec_vbuf.c: In function 'vbuf_printf': ./src/include/ec_vbuf.h:27:31: warning: pointer targets in passing argument 1 of '__builtin___vsnprintf_chk' differ in signedness [-Wpointer-sign] #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:147:18: note: in expansion of macro 'vbuf_ptr' i = vsnprintf(vbuf_ptr(vbuf), vbuf_len(vbuf), fmt, ap); ^ ./src/include/ec_vbuf.h:27:31: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^ ./src/ec_vbuf.c:147:18: note: in expansion of macro 'vbuf_ptr' i = vsnprintf(vbuf_ptr(vbuf), vbuf_len(vbuf), fmt, ap); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/console/ec_simple.o ./src/interface/console/ec_simple.c ./src/interface/console/ec_simple.c: In function 'Simple_FingerPrint': ./src/interface/console/ec_simple.c:116:30: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(MACs, MAC); ^ In file included from ./src/interface/console/ec_simple.c:37:0: src/include/ec_inet.h:35:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ In file included from src/include/ec_main.h:40:0, from ./src/interface/console/ec_simple.c:23: ./src/interface/console/ec_simple.c: In function 'Simple_Daemonize': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/console/ec_simple.c:301:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("signal()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/console/ec_simple.c:304:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("signal()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/console/ec_simple.c:307:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("signal()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/console/ec_simple.c:310:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("signal()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/console/ec_simple.c:313:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fork()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/console/ec_simple.c:321:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("setsid()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/console/ec_simple.c: In function 'Simple_Run': ./src/interface/console/ec_simple.c:507:50: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(Host_Source.mac, Inet_MacFromIP(inet_addr(Host_Source.ip))); ^ In file included from ./src/interface/console/ec_simple.c:37:0: src/include/ec_inet.h:35:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/interface/console/ec_simple.c:515:48: warning: pointer targets in passing argument 2 of 'Inet_PutMACinString' differ in signedness [-Wpointer-sign] Inet_PutMACinString(Host_Dest.mac, Inet_MacFromIP(inet_addr(Host_Dest.ip))); ^ In file included from ./src/interface/console/ec_simple.c:37:0: src/include/ec_inet.h:35:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface.o ./src/interface/ncurses/ec_interface.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface_factory.o ./src/interface/ncurses/ec_interface_factory.c ./src/interface/ncurses/ec_interface_factory.c: In function 'Interface_Factory_ETH': ./src/interface/ncurses/ec_interface_factory.c:133:63: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (Inet_GetMACfromString(field_buffer(eth_form[3], 0), eth->source_mac) == -1) ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:41:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/interface/ncurses/ec_interface_factory.c:140:63: warning: pointer targets in passing argument 2 of 'Inet_GetMACfromString' differ in signedness [-Wpointer-sign] if (Inet_GetMACfromString(field_buffer(eth_form[5], 0), eth->dest_mac) == -1) ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:41:0: src/include/ec_inet.h:36:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/interface/ncurses/ec_interface_factory.c: In function 'Interface_Factory_TCP': ./src/interface/ncurses/ec_interface_factory.c:346:19: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(tmp, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:45:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:347:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(tmp) != 0) // load from file ^ In file included from src/include/ec_main.h:31:0, from ./src/interface/ncurses/ec_interface_factory.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c:350:22: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] fts = fopen(tmp, "r"); ^ In file included from src/include/ec_main.h:26:0, from ./src/interface/ncurses/ec_interface_factory.c:23: /usr/include/stdio.h:230:7: note: expected 'const char * restrict' but argument is of type 'u_char * {aka unsigned char *}' FILE *fopen(const char * __restrict , const char * __restrict); ^ In file included from /usr/include/stdio.h:597:0, from src/include/ec_main.h:26, from ./src/interface/ncurses/ec_interface_factory.c:23: ./src/interface/ncurses/ec_interface_factory.c:366:16: warning: pointer targets in passing argument 1 of '__fgets_chk' differ in signedness [-Wpointer-sign] fgets(tmp, 1460, fts); ^ /usr/include/ssp/stdio.h:49:7: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' char *__fgets_chk(char *, int, size_t, FILE *); ^ ./src/interface/ncurses/ec_interface_factory.c:367:41: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:367:50: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:373:22: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(tmp, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:45:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:374:41: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:374:50: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:379:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] for(i=0; i<=strlen(tmp); i++) ^ In file included from src/include/ec_main.h:31:0, from ./src/interface/ncurses/ec_interface_factory.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c: In function 'Interface_Factory_UDP': ./src/interface/ncurses/ec_interface_factory.c:513:19: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(tmp, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:45:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:514:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(tmp) != 0) // load from file ^ In file included from src/include/ec_main.h:31:0, from ./src/interface/ncurses/ec_interface_factory.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c:517:22: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] fts = fopen(tmp, "r"); ^ In file included from src/include/ec_main.h:26:0, from ./src/interface/ncurses/ec_interface_factory.c:23: /usr/include/stdio.h:230:7: note: expected 'const char * restrict' but argument is of type 'u_char * {aka unsigned char *}' FILE *fopen(const char * __restrict , const char * __restrict); ^ In file included from /usr/include/stdio.h:597:0, from src/include/ec_main.h:26, from ./src/interface/ncurses/ec_interface_factory.c:23: ./src/interface/ncurses/ec_interface_factory.c:533:16: warning: pointer targets in passing argument 1 of '__fgets_chk' differ in signedness [-Wpointer-sign] fgets(tmp, 1460, fts); ^ /usr/include/ssp/stdio.h:49:7: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' char *__fgets_chk(char *, int, size_t, FILE *); ^ ./src/interface/ncurses/ec_interface_factory.c:534:41: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:534:50: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:540:22: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(tmp, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:45:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:541:41: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:541:50: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c: In function 'Interface_Factory_RAW': ./src/interface/ncurses/ec_interface_factory.c:620:19: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(tmp, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:45:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:621:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(tmp) != 0) // load from file ^ In file included from src/include/ec_main.h:31:0, from ./src/interface/ncurses/ec_interface_factory.c:23: /usr/include/string.h:61:9: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c:624:22: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] fts = fopen(tmp, "r"); ^ In file included from src/include/ec_main.h:26:0, from ./src/interface/ncurses/ec_interface_factory.c:23: /usr/include/stdio.h:230:7: note: expected 'const char * restrict' but argument is of type 'u_char * {aka unsigned char *}' FILE *fopen(const char * __restrict , const char * __restrict); ^ In file included from /usr/include/stdio.h:597:0, from src/include/ec_main.h:26, from ./src/interface/ncurses/ec_interface_factory.c:23: ./src/interface/ncurses/ec_interface_factory.c:640:16: warning: pointer targets in passing argument 1 of '__fgets_chk' differ in signedness [-Wpointer-sign] fgets(tmp, 1460, fts); ^ /usr/include/ssp/stdio.h:49:7: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' char *__fgets_chk(char *, int, size_t, FILE *); ^ ./src/interface/ncurses/ec_interface_factory.c:641:41: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:641:50: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:647:22: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(tmp, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:45:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:648:41: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:648:50: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c: In function 'Interface_Factory_Run': ./src/interface/ncurses/ec_interface_factory.c:1344:29: warning: pointer targets in passing argument 2 of 'Inet_SendRawPacket' differ in signedness [-Wpointer-sign] Inet_SendRawPacket(sock, buf, forged_pck-buf); ^ In file included from ./src/interface/ncurses/ec_interface_factory.c:41:0: src/include/ec_inet.h:60:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface_form.o ./src/interface/ncurses/ec_interface_form.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface_inject.o ./src/interface/ncurses/ec_interface_inject.c ./src/interface/ncurses/ec_interface_inject.c: In function 'Interface_Inject_Run': ./src/interface/ncurses/ec_interface_inject.c:155:31: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] len = FilterDrop_strescape(inject_data, inject_sequence); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_inject.c: In function 'Interface_Inject_Filter': ./src/interface/ncurses/ec_interface_inject.c:464:30: warning: pointer targets in passing argument 3 of 'set_field_buffer' differ in signedness [-Wpointer-sign] set_field_buffer(f[7], 0, filters[Fil_Pointer].display_search); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:36:0: /usr/include/form.h:352:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int set_field_buffer(FIELD *, int, const char *); ^ ./src/interface/ncurses/ec_interface_inject.c:467:31: warning: pointer targets in passing argument 3 of 'set_field_buffer' differ in signedness [-Wpointer-sign] set_field_buffer(f[11], 0, filters[Fil_Pointer].display_replace); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:36:0: /usr/include/form.h:352:14: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' int set_field_buffer(FIELD *, int, const char *); ^ ./src/interface/ncurses/ec_interface_inject.c:503:19: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(filters[Fil_Pointer].display_search, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:46:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_inject.c:504:76: warning: pointer targets in passing argument 2 of 'FilterDrop_ParseWildcard' differ in signedness [-Wpointer-sign] filters[Fil_Pointer].wildcard = FilterDrop_ParseWildcard(tmp_search, filters->display_search, sizeof(tmp_search)); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:43:0: src/include/ec_filterdrop.h:10:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_ParseWildcard(char *dst, char *src, size_t size); ^ ./src/interface/ncurses/ec_interface_inject.c:505:56: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] filters[Fil_Pointer].slen = FilterDrop_strescape(filters[Fil_Pointer].search, tmp_search); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_inject.c:508:19: warning: pointer targets in passing argument 1 of 'trim_buffer' differ in signedness [-Wpointer-sign] trim_buffer(filters[Fil_Pointer].display_replace, ' '); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:46:0: src/include/ec_interface_form.h:13:13: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_inject.c:509:56: warning: pointer targets in passing argument 1 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] filters[Fil_Pointer].rlen = FilterDrop_strescape(filters[Fil_Pointer].replace, filters[Fil_Pointer].display_replace); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_inject.c:509:86: warning: pointer targets in passing argument 2 of 'FilterDrop_strescape' differ in signedness [-Wpointer-sign] filters[Fil_Pointer].rlen = FilterDrop_strescape(filters[Fil_Pointer].replace, filters[Fil_Pointer].display_replace); ^ In file included from ./src/interface/ncurses/ec_interface_inject.c:43:0: src/include/ec_filterdrop.h:9:12: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' extern int FilterDrop_strescape( char *dst, char *src); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface_passive.o ./src/interface/ncurses/ec_interface_passive.c ./src/interface/ncurses/ec_interface_passive.c: In function 'Interface_Passive_Submit': ./src/interface/ncurses/ec_interface_passive.c:531:28: warning: too many arguments for format [-Wformat-extra-args] mvwprintw(f_win, 0, 2, "Fingerprint submitter: (press F10 to exit) ", MAX_INJECT); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface_plugins.o ./src/interface/ncurses/ec_interface_plugins.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface_sniff.o ./src/interface/ncurses/ec_interface_sniff.c gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/interface/ncurses/ec_interface_sniff_data.o ./src/interface/ncurses/ec_interface_sniff_data.c In file included from src/include/ec_main.h:40:0, from ./src/interface/ncurses/ec_interface_sniff_data.c:23: ./src/interface/ncurses/ec_interface_sniff_data.c: In function 'Interface_Sniff_Data_LogToFile': src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/ncurses/ec_interface_sniff_data.c:297:13: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/ncurses/ec_interface_sniff_data.c:307:16: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ src/include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/interface/ncurses/ec_interface_sniff_data.c:315:16: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("fopen()"); ^ src/include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/ncurses/ec_interface_sniff_data.c: In function 'Interface_Sniff_Data_Inject': ./src/interface/ncurses/ec_interface_sniff_data.c:822:36: warning: pointer targets in passing argument 1 of 'Interface_Inject_Run' differ in signedness [-Wpointer-sign] data_len = Interface_Inject_Run(inject_data.data, proto, app); ^ In file included from ./src/interface/ncurses/ec_interface_sniff_data.c:41:0: src/include/ec_interface_inject.h:6:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Interface_Inject_Run(u_char *inject_data, char proto, char *app); ^ gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/OS/BSD/ec_inet_BSD.o ./src/OS/BSD/ec_inet_BSD.c In file included from ./src/OS/BSD/../../include/ec_main.h:40:0, from ./src/OS/BSD/ec_inet_BSD.c:25: ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_FindIFace': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:104:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("getifaddrs()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_CorrectIface': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:254:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" getifaddrs()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_GetIfaceInfo': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:354:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("sysctl()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:357:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("malloc()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:360:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("sysctl()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:384:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("ioctl(SIOCGIFADDR)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:391:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("ioctl(SIOCGIFNETMASK)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_OpenRawSock': ./src/OS/BSD/ec_inet_BSD.c:463:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] insns[1].k = htons(*(short *)MyMAC); // put MyMac in the filter... ^ ./src/OS/BSD/ec_inet_BSD.c:463:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ./src/OS/BSD/ec_inet_BSD.c:463:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ./src/OS/BSD/ec_inet_BSD.c:463:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] In file included from ./src/OS/BSD/../../include/ec_main.h:40:0, from ./src/OS/BSD/ec_inet_BSD.c:25: ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:482:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" ioctl(BIOCVERSION)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:497:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" ioctl(BIOCSETIF)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:503:6: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" ioctl(BIOCGBLEN)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:506:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" ioctl(BIOCGDLT)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:513:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" ioctl(BIOCSHDRCMPLT)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:518:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" ioctl(BIOCIMMEDIATE)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:522:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG(" ioctl(BIOCSETF)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_GetRawPacket': ./src/OS/BSD/ec_inet_BSD.c:560:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf = (char *)calloc(size, sizeof(char)); // size is global and set by BIOCGBLEN ^ In file included from ./src/OS/BSD/../../include/ec_main.h:40:0, from ./src/OS/BSD/ec_inet_BSD.c:25: ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_SetPromisc': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:631:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("ioctl(BIOCPROMISC)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_DisableForwarding': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:663:5: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("sysctl() | net.inet.ip.forwarding"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_RestoreForwarding': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:686:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("sysctl()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_MacFromIP': ./src/OS/BSD/ec_inet_BSD.c:710:13: error: 'RTF_LLINFO' undeclared (first use in this function) mib[5] = RTF_LLINFO; ^ ./src/OS/BSD/ec_inet_BSD.c:710:13: note: each undeclared identifier is reported only once for each function it appears in In file included from ./src/OS/BSD/../../include/ec_main.h:40:0, from ./src/OS/BSD/ec_inet_BSD.c:25: ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:713:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("sysctl()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:716:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("malloc()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:721:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("sysctl()"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:761:48: warning: pointer targets in passing argument 2 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, ETH_BROADCAST, ETH_P_ARP ); ^ In file included from ./src/OS/BSD/ec_inet_BSD.c:30:0: ./src/OS/BSD/../../include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/OS/BSD/ec_inet_BSD.c:761:55: warning: pointer targets in passing argument 3 of 'Inet_Forge_ethernet' differ in signedness [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, ETH_BROADCAST, ETH_P_ARP ); ^ In file included from ./src/OS/BSD/ec_inet_BSD.c:30:0: ./src/OS/BSD/../../include/ec_inet_forge.h:12:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/OS/BSD/ec_inet_BSD.c:764:26: warning: pointer targets in passing argument 3 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] MyMAC, MyIP, ^ In file included from ./src/OS/BSD/ec_inet_BSD.c:30:0: ./src/OS/BSD/../../include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/OS/BSD/ec_inet_BSD.c:765:26: warning: pointer targets in passing argument 5 of 'Inet_Forge_arp' differ in signedness [-Wpointer-sign] ARP_BROADCAST, ip ); ^ In file included from ./src/OS/BSD/ec_inet_BSD.c:30:0: ./src/OS/BSD/../../include/ec_inet_forge.h:17:12: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' extern int Inet_Forge_arp( u_char *buf, ^ ./src/OS/BSD/ec_inet_BSD.c:781:43: warning: pointer targets in passing argument 2 of 'Inet_GetRawPacket' differ in signedness [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^ ./src/OS/BSD/ec_inet_BSD.c:533:5: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type) ^ ./src/OS/BSD/ec_inet_BSD.c:790:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if ( *(unsigned long *)arppkt->source_ip == ip ) ^ In file included from ./src/OS/BSD/../../include/ec_main.h:40:0, from ./src/OS/BSD/ec_inet_BSD.c:25: ./src/OS/BSD/ec_inet_BSD.c: In function 'rtmsg_arp': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:883:10: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("writing on PF_ROUTE socket"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:889:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("reading on PF_ROUTE socket"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_UnSetARPEntry': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:906:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("socket(PF_ROUTE)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:900:24: warning: variable 'sdl' set but not used [-Wunused-but-set-variable] struct sockaddr_dl *sdl; ^ In file included from ./src/OS/BSD/../../include/ec_main.h:40:0, from ./src/OS/BSD/ec_inet_BSD.c:25: ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_SetARPEntry': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:937:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("socket(PF_ROUTE)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'rtmsg_route': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:1169:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("writing to routing socket"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_UnsetRoute': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:1190:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("socket(PF_ROUTE)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c: In function 'Inet_SetRoute': ./src/OS/BSD/../../include/ec_error.h:11:51: warning: passing argument 2 of 'Error_critical_msg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^ ./src/OS/BSD/ec_inet_BSD.c:1228:7: note: in expansion of macro 'ERROR_MSG' ERROR_MSG("socket(PF_ROUTE)"); ^ ./src/OS/BSD/../../include/ec_error.h:9:13: note: expected 'char *' but argument is of type 'const char *' extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ *** Error code 1 Stop. make: stopped in /tmp/pkgbuild/net/ettercap/work.alpha/ettercap-0.6.b *** Error code 1 Stop. make[1]: stopped in /usr/pkgsrc/net/ettercap *** Error code 1 Stop. make: stopped in /usr/pkgsrc/net/ettercap