=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for ettercap-0.6.bnb34 clang -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 clang -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 ./src/ec_binder.c:68:21: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (tmpsock < 0) ERROR_MSG("socket()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_binder.c:81:7: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("listen()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_binder.c:94:21: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (bi_sock < 0) ERROR_MSG("accept()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 3 warnings generated. clang -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 clang -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 clang -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 clang -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 ./src/ec_decodedata.c:189:7: warning: passing 'const char [25]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:269:10: warning: passing 'const char [30]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:284:81: warning: passing 'char [20]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(Conn_Between_Hosts[number_of_connections].source_mac, data->source_mac); ^~~~~~~~~~~~~~~~ ./src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_decodedata.c:285:79: warning: passing 'char [20]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(Conn_Between_Hosts[number_of_connections].dest_mac, data->dest_mac); ^~~~~~~~~~~~~~ ./src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_decodedata.c:650:10: warning: passing 'const char [27]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:749:7: warning: passing 'const char [31]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:882:10: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:896:16: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:945:10: warning: passing 'const char [24]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:974:13: warning: passing 'const char [24]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:1052:16: warning: passing 'const char [32]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 11 warnings generated. clang -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 ./src/ec_dissector.c:395:10: warning: passing 'const char [33]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 1 warning generated. clang -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:126:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_bgp.c:126:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_bgp.c:150:42: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->pass, parameters + i + 3, (len>28) ? 28 : (len+1)); ^~~~~~~~~~~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 3 warnings generated. clang -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:50:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ftp.c:50:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ftp.c:55:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "USER ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:57:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->user, payload + strlen("USER "), sizeof(data_to_ettercap->user)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:61:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "PASS ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:63:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload + strlen("PASS "), sizeof(data_to_ettercap->pass)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 6 warnings generated. clang -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:56:14: warning: cast to 'char *' from smaller integer type 'int' [-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: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER + 4; // 1st 4 bytes dont matter ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_hl_rcon.c:58:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "rcon", 4) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_hl_rcon.c:71:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload + pos, len+1); // we are sure that len is less then 28 bytes ^~~~~~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_hl_rcon.c:76:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(data_to_ettercap->info, payload, (len>135) ? 135 : len+1); ^~~~~~~ /usr/include/string.h:102:37: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ 5 warnings generated. clang -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:125:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_http.c:125:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_http.c:336:16: warning: passing 'const char [21]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_dissector_http.c:395:12: warning: passing 'const char [21]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 4 warnings generated. clang -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:127:37: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, IPS, IPD, (tcp->doff * 4)+datalen, 0xE77E, 0, IPPROTO_TCP); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_dissector_https.c:198:43: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_dissector_https.c:198:56: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_dissector_https.c:198:63: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_dissector_https.c:199:37: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-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); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ 5 warnings generated. clang -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:175:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_icq.c:175:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_icq.c:237:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_icq.c:237:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. clang -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:48:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_imap.c:48:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_imap.c:50:29: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:50:70: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:50:101: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:81:40: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (fromhere = strstr(payload, "AUTHENTICATE")) ) { ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:101:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] char collector[strlen(payload)]; ^~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:105:53: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] Dissector_base64decode(collector, payload); ^~~~~~~ ./src/include/ec_dissector.h:40:63: note: passing argument to parameter 'bufcoded' here extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ ./src/ec_dissector_imap.c:112:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] char collector[strlen(payload)]; ^~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:116:53: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] Dissector_base64decode(collector, payload); ^~~~~~~ ./src/include/ec_dissector.h:40:63: note: passing argument to parameter 'bufcoded' here extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ ./src/ec_dissector_imap.c:124:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] char collector[strlen(payload)]; ^~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:128:53: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] Dissector_base64decode(collector, payload); ^~~~~~~ ./src/include/ec_dissector.h:40:63: note: passing argument to parameter 'bufcoded' here extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ 12 warnings generated. clang -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:49:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_irc.c:49:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -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:54:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) ((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ldap.c:54:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) ((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -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:53:10: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_mountd.c:53:8: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -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:47:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_msn.c:47:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_msn.c:57:18: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "MD5 I"); ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_msn.c:81:18: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "MD5 S"); ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_msn.c:106:18: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "MD5 S"); ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ 5 warnings generated. clang -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:48:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_mysql.c:48:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_mysql.c:68:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(seed, collector + i + 1, sizeof(seed)); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 3 warnings generated. clang -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:56:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_napster.c:56:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_napster.c:71:10: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 3 warnings generated. clang -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:47:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_nntp.c:47:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_nntp.c:49:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "AUTHINFO USER", 13) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_nntp.c:55:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "AUTHINFO PASS", 13) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ 4 warnings generated. clang -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:54:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_pcanywhere.c:54:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_pcanywhere.c:99:21: warning: comparison of constant 1000 with expression of type 'u_char' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare] if (*ptr>1000) return 0; ~~~~^~~~~ 3 warnings generated. clang -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:50:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_pop.c:50:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_pop.c:55:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "USER ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:57:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->user, payload + strlen("USER "), sizeof(data_to_ettercap->user)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:60:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "PASS ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:62:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload + strlen("PASS "), sizeof(data_to_ettercap->pass)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:65:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( !strncasecmp(payload, "APOP", 4) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ 7 warnings generated. clang -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:83:10: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_portmap.c:83:8: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -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:52:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)( (int) udp + UDP_HEADER); ^ ./src/ec_dissector_quake3.c:52:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)( (int) udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_quake3.c:60:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if(!strncasecmp(payload,"rcon",4)) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_quake3.c:72:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload, len); ^~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 4 warnings generated. clang -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:77:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER; ^ ./src/ec_dissector_rip.c:77:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_rip.c:90:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->pass, payload+8, sizeof(data_to_ettercap->pass)-1); ^~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 3 warnings generated. clang -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:63:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_rlogin.c:63:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -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 ./src/ec_dissector_smb.c:89:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcat(dest, dummy); ^~~~ /usr/include/string.h:54:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ ./src/ec_dissector_smb.c:106:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_smb.c:106:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:128:29: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(ptr, data_to_ettercap->info, 8); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:149:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Blob = ptr; ^ ~~~ ./src/ec_dissector_smb.c:173:13: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (ptr = (char *)memmem(ptr, 128, "NTLMSSP", 8)) == NULL) return 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:174:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Blob = ptr; ^ ~~~ ./src/ec_dissector_smb.c:175:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^~~ /usr/include/string.h:55:26: note: passing argument to parameter here char *strchr(const char *, int); ^ ./src/ec_dissector_smb.c:175:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ ~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:204:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+LM_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:204:38: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+LM_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:209:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+NT_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:209:41: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+NT_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:221:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Blob = ptr; ^ ~~~ ./src/ec_dissector_smb.c:224:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob, data_to_ettercap->info, 24); ^~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:224:20: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:226:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+24, data_to_ettercap->info, 24); ^~~~~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:226:30: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+24, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:239:13: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (ptr = (char *)memmem(ptr, 128, "NTLMSSP", 8)) == NULL) return 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:240:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^~~ /usr/include/string.h:55:26: note: passing argument to parameter here char *strchr(const char *, int); ^ ./src/ec_dissector_smb.c:240:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ ~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:246:21: warning: passing 'char [512]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(ptr, schallenge, 8); ^~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ 22 warnings generated. clang -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:83:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] name = (char *)calloc(ssize+5,1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_snmp.c:85:14: warning: returning 'u_char *' (aka 'unsigned char *') from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return name; ^~~~ ./src/ec_dissector_snmp.c:99:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) ((int)udp + UDP_HEADER); ^ ./src/ec_dissector_snmp.c:99:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) ((int)udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_snmp.c:105:10: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] dname = com_name(payload); ^ ~~~~~~~~~~~~~~~~~ 5 warnings generated. clang -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:44:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_socks.c:44:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_socks.c:62:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->user, ++payload, len+1); ^~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_socks.c:71:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->pass, ++payload, len+1); ^~~~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 4 warnings generated. clang -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 ./src/ec_dissector_ssh.c:40: In file included from /data/scratch/net/ettercap/work/.buildlink/include/openssl/des.h:3: /usr/include/des.h:69:9: warning: 'DES_LONG' macro redefined [-Wmacro-redefined] #define DES_LONG u_int32_t ^ /usr/include/openssl/opensslconf.h:181:9: note: previous definition is here #define DES_LONG uint32_t ^ ./src/ec_dissector_ssh.c:186:4: warning: implicit declaration of function 'MD5' is invalid in C99 [-Wimplicit-function-declaration] MD5(p, i + j + 8, sessid); ^ ./src/ec_dissector_ssh.c:240:12: warning: assigning to 'short *' from 'u_short *' (aka 'unsigned short *') converts between pointers to integer types with different sign [-Wpointer-sign] datalen = (u_short *)(obuf + 2); ^ ~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:262:12: warning: assigning to 'short *' from 'u_short *' (aka 'unsigned short *') converts between pointers to integer types with different sign [-Wpointer-sign] datalen = (u_short *)(ibuf+2); ^ ~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:410:52: warning: passing 'char [3010]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] reconstruct_stream(payload, datalen, (*index_ssl)->s_stream); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:234:62: note: passing argument to parameter 'obuf' here void reconstruct_stream(u_char *ibuf, short bufflen, u_char *obuf) ^ ./src/ec_dissector_ssh.c:411:22: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char [3010]' converts between pointers to integer types with different sign [-Wpointer-sign] stream = (*index_ssl)->s_stream; ^ ~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:417:52: warning: passing 'char [3010]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] reconstruct_stream(payload, datalen, (*index_ssl)->d_stream); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:234:62: note: passing argument to parameter 'obuf' here void reconstruct_stream(u_char *ibuf, short bufflen, u_char *obuf) ^ ./src/ec_dissector_ssh.c:418:22: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char [3010]' converts between pointers to integer types with different sign [-Wpointer-sign] stream = (*index_ssl)->d_stream; ^ ~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:421:51: warning: passing 'char [2000]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] while ( (slen = getfrom_stream(stream, packet) ) > 0) ^~~~~~ ./src/ec_dissector_ssh.c:254:42: note: passing argument to parameter 'obuf' here int getfrom_stream(u_char *ibuf, u_char *obuf) ^ ./src/ec_dissector_ssh.c:431:31: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] des3_decrypt(packet+4, (u_char *)pacchetto, ssh_len+ssh_mod, (*index_ssl)->state_source); ^~~~~~~~ ./src/ec_dissector_ssh.c:129:27: note: passing argument to parameter 'src' here void des3_decrypt(u_char *src, u_char *dst, int len, void *state) ^ ./src/ec_dissector_ssh.c:433:31: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] des3_decrypt(packet+4, (u_char *)pacchetto, ssh_len+ssh_mod, (*index_ssl)->state_dest); ^~~~~~~~ ./src/ec_dissector_ssh.c:129:27: note: passing argument to parameter 'src' here void des3_decrypt(u_char *src, u_char *dst, int len, void *state) ^ 11 warnings generated. clang -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:64:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_telnet.c:64:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -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:47:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_vnc.c:47:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_vnc.c:49:83: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (Dissector_StateMachine_GetStatus(data_to_ettercap, NULL) == 0) && sscanf(payload, "RFB %03d.%03d\n", &major, &minor) ) ^~~~~~~ /usr/include/stdio.h:257:36: note: passing argument to parameter here int sscanf(const char * __restrict, const char * __restrict, ...) ^ 3 warnings generated. clang -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:46:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_x11.c:46:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_x11.c:48:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = strstr(payload+12, "MIT-MAGIC-COOKIE-1"); ^~~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_x11.c:48:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = strstr(payload+12, "MIT-MAGIC-COOKIE-1"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. clang -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:47:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dissector_ymsg.c:47:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ymsg.c:63:21: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_ymsg.c:63:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ymsg.c:105:18: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_ymsg.c:105:9: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "\xC0\x80"); /* standard ymesg separator */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ymsg.c:118:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] from = strdup(p); /* get the sender */ ^ /usr/include/string.h:79:26: note: passing argument to parameter here char *strdup(const char *); ^ ./src/ec_dissector_ymsg.c:129:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] to = strdup(p); /* get the receiver */ ^ /usr/include/string.h:79:26: note: passing argument to parameter here char *strdup(const char *); ^ ./src/ec_dissector_ymsg.c:141:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] message = strdup(p); /* get the receiver */ ^ /usr/include/string.h:79:26: note: passing argument to parameter here char *strdup(const char *); ^ 9 warnings generated. clang -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:82:61: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC1); ^~~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:83:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:83:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:85:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip), ^~~~~~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:86:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:87:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:91:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:91:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC1, ETH_P_ARP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:93:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1), ^~~~~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:94:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip) ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:95:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:100:61: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC2); ^~~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:101:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:101:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:103:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip), ^~~~~~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:104:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:105:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:109:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:109:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC2, ETH_P_ARP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:111:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2), ^~~~~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:112:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip) ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:113:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:125:49: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if (buf1) Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:125:56: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if (buf1) Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:126:49: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if (buf2) Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:126:56: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if (buf2) Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:130:28: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1), ^~~~~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:131:28: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:134:28: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2), ^~~~~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:135:28: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:137:54: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (buf1) Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:139:54: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (buf2) Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:163:67: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (buf1) Inet_GetMACfromString(((dopple_param *)param)->MAC1, PoorMAC1); ^~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:166:67: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (buf2) Inet_GetMACfromString(((dopple_param *)param)->MAC2, PoorMAC2); ^~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:186:38: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:186:45: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_IP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:190:43: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:192:38: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:192:45: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:194:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:195:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:196:43: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:199:38: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:199:45: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_IP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:203:43: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:205:36: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:205:43: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:207:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:208:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:209:43: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:218:44: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, BroadMAC, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:222:54: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:224:44: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, BroadMAC, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:226:36: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:228:49: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:232:44: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, BroadMAC, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:236:54: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:238:34: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, BroadMAC, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:240:36: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:242:49: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:257:61: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC2); ^~~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:258:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:258:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_IP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:262:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:264:36: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:264:43: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:266:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:267:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip) ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:268:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:272:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:272:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_IP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:276:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:278:36: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:278:43: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:280:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:281:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:282:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:287:61: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC1); ^~~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:288:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:288:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_IP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:292:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:294:41: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:294:48: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:296:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:297:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip) ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:298:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:302:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:302:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_IP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:306:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:308:36: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:308:43: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:310:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:311:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:312:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:340:61: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC2); ^~~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:341:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:341:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, SmartMAC2, ETH_P_ARP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:343:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:344:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC2, inet_addr(Host_In_LAN[i].ip) ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:345:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:347:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:347:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:349:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:350:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:351:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:355:61: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, SmartMAC1); ^~~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_doppleganger.c:356:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:356:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, SmartMAC1, ETH_P_ARP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:358:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:359:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SmartMAC1, inet_addr(Host_In_LAN[i].ip) ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:360:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:362:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:362:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:364:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(Host_In_LAN[i].ip), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:365:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:366:51: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:395:41: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:395:48: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf1, MyMAC, PoorMAC2, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:397:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP1), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:398:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC2, inet_addr(PoorIP2) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:403:41: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_doppleganger.c:403:48: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf2, MyMAC, PoorMAC1, ETH_P_ARP ); ^~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_doppleganger.c:405:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, inet_addr(PoorIP2), ^~~~~ ./src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_doppleganger.c:406:30: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] PoorMAC1, inet_addr(PoorIP1) ); ^~~~~~~~ ./src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_doppleganger.c:411:52: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (buf1) Inet_SendRawPacket(dopple_sock, buf1, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_doppleganger.c:413:52: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (buf2) Inet_SendRawPacket(dopple_sock, buf2, ETH_HEADER + ARP_HEADER); ^~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ 126 warnings generated. clang -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:99:30: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Pcapfile_Read(recvpck.aligned, MTU); ^~~~~~~~~~~~~~~ ./src/include/ec_pcapfile.h:5:32: note: passing argument to parameter 'buf' here extern int Pcapfile_Read(char *buf, short MTU); ^ ./src/ec_dryad.c:101:40: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, NULL); ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:59:46: note: passing argument to parameter 'buffer' here extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_dryad.c:112:52: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(data_to_ettercap.mac, eth->source_mac); // STORE THE MAC ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_dryad.c:123:58: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(data_to_ettercap.mac, arp->source_add); // STORE THE MAC ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_dryad.c:165:23: warning: cast to 'ICMP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] icmp = (ICMP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:183:22: warning: cast to 'UDP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:199:22: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_dryad.c:201:27: warning: cast to 'u_char *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] tcp_data = (u_char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_dryad.c:345:32: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (ptr = strstr(data, "Server:")) ) ^~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dryad.c:378:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(ptr)) ^~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dryad.c:380:38: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (i=0 ; i < strlen(ptr); i++ ) ^~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dryad.c:390:50: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(data_to_ettercap->banner, ptr, sizeof(data_to_ettercap->banner)); ^~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 12 warnings generated. clang -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 clang -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:79:10: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_filterdrop.c:80:11: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_filterdrop.c:80:9: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_filterdrop.c:134:10: warning: cast to 'UDP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_filterdrop.c:135:11: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_filterdrop.c:135:9: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] data = (char *)((int)udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_filterdrop.c:232:16: warning: cast to 'u_char *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] ptr = (u_char *)((int)ptr + (filter->slen + filter->wildcard)); // move the ptr after the replaced string ^ ./src/ec_filterdrop.c:261:16: warning: cast to 'u_char *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] ptr = (u_char *)((int)ptr + filter->rlen); // move the ptr after the replaced string ^ ./src/ec_filterdrop.c:488:7: warning: passing 'const char [22]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 9 warnings generated. clang -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:108:25: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( probe_pck, MACS, MACD, ETH_P_IP ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_fingerprint.c:110:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:111:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS, open_port, SYN_SEQ, 0, TH_BOGUS|TH_SYN, 0, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:112:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS , OPT_LEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:53:46: note: passing argument to parameter 'buf' here extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:112:66: warning: passing 'char [21]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS , OPT_LEN); ^~~~~~~ ./src/ec_fingerprint.c:103:17: note: expanded from macro 'OPTIONS' #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:54:46: note: passing argument to parameter 'options' here u_char *options, // raw options buffer ^ ./src/ec_fingerprint.c:115:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:116:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+1, open_port, SYN_SEQ, 0, 0, 0, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:117:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:53:46: note: passing argument to parameter 'buf' here extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:117:66: warning: passing 'char [21]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~ ./src/ec_fingerprint.c:103:17: note: expanded from macro 'OPTIONS' #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:54:46: note: passing argument to parameter 'options' here u_char *options, // raw options buffer ^ ./src/ec_fingerprint.c:120:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:121:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:122:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:53:46: note: passing argument to parameter 'buf' here extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:122:66: warning: passing 'char [21]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~ ./src/ec_fingerprint.c:103:17: note: expanded from macro 'OPTIONS' #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:54:46: note: passing argument to parameter 'options' here u_char *options, // raw options buffer ^ ./src/ec_fingerprint.c:125:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:126:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+3, open_port, SYN_SEQ, 0, TH_ACK, 0, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:127:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:53:46: note: passing argument to parameter 'buf' here extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:127:66: warning: passing 'char [21]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~ ./src/ec_fingerprint.c:103:17: note: expanded from macro 'OPTIONS' #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:54:46: note: passing argument to parameter 'options' here u_char *options, // raw options buffer ^ ./src/ec_fingerprint.c:130:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:131:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+4, closed_port, SYN_SEQ, 0, TH_SYN, 0, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:132:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:53:46: note: passing argument to parameter 'buf' here extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:132:66: warning: passing 'char [21]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~ ./src/ec_fingerprint.c:103:17: note: expanded from macro 'OPTIONS' #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:54:46: note: passing argument to parameter 'options' here u_char *options, // raw options buffer ^ ./src/ec_fingerprint.c:135:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:136:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( probe_pck + ETH_HEADER + IP_HEADER, PORTS+5, closed_port, SYN_SEQ, 0, TH_ACK, 0, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:137:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:53:46: note: passing argument to parameter 'buf' here extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:137:66: warning: passing 'char [21]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~ ./src/ec_fingerprint.c:103:17: note: expanded from macro 'OPTIONS' #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:54:46: note: passing argument to parameter 'options' here u_char *options, // raw options buffer ^ ./src/ec_fingerprint.c:140:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( probe_pck + ETH_HEADER, IPS, IPD, TCP_HEADER, IP_ID++, 0, IPPROTO_TCP); ^~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_fingerprint.c:141:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_fingerprint.c:142:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:53:46: note: passing argument to parameter 'buf' here extern int Inet_Forge_Insert_TCPOpt( u_char *buf, ^ ./src/ec_fingerprint.c:142:66: warning: passing 'char [21]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_Insert_TCPOpt( probe_pck + ETH_HEADER + IP_HEADER, OPTIONS ,OPT_LEN ); ^~~~~~~ ./src/ec_fingerprint.c:103:17: note: expanded from macro 'OPTIONS' #define OPTIONS "\003\003\012\001\002\004\001\011\010\012\077\077\077\077\000\000\000\000\000\000" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:54:46: note: passing argument to parameter 'options' here u_char *options, // raw options buffer ^ ./src/ec_fingerprint.c:145:31: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_packet_destroy( probe_pck ); ^~~~~~~~~ ./src/include/ec_inet_forge.h:10:47: note: passing argument to parameter 'buf' here extern int Inet_Forge_packet_destroy( u_char *buf ); ^ ./src/ec_fingerprint.c:165:37: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &type); ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:59:46: note: passing argument to parameter 'buffer' here extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_fingerprint.c:344:12: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_fingerprint.c:369:32: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + TCP_HEADER ); ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_fingerprint.c:376:31: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetRawPacket(sock, recvpck.aligned, MTU, NULL); ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:59:46: note: passing argument to parameter 'buffer' here extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_fingerprint.c:377:32: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Fingerprint_Parse_packet(recvpck.aligned); ^~~~~~~~~~~~~~~ ./src/ec_fingerprint.c:336:37: note: passing argument to parameter 'buffer' here void Fingerprint_Parse_packet(char *buffer) ^ ./src/ec_fingerprint.c:411:46: warning: passing 'unsigned char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetIfaceInfo(Options.netiface, &MTU, MACS, (unsigned long *)&IPS, 0); ^~~~ ./src/include/ec_inet.h:54:59: note: passing argument to parameter 'MyMAC' here extern int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, unsigned long *IP, unsigned long *NetMask); ^ ./src/ec_fingerprint.c:452:10: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_fingerprint.c:471:13: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 38 warnings generated. clang -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:105:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-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: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( buf+40, data_to_ettercap->source_port, // create a fake tcp header ^~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_grell.c:111:25: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] payload, ^~~~~~~ ./src/include/ec_inet_forge.h:44:36: note: passing argument to parameter 'data' here u_char *data, // payload ^ ./src/ec_grell.c:114:19: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Dissector_http(buf+40, data_to_ettercap, NULL, 1, 443); ^~~~~~ ./src/include/ec_dissector.h:75:8: note: passing argument to parameter 'data' here extern FUNC_DISSECTOR(Dissector_http); // 80 8080 ^ ./src/include/ec_dissector.h:43:48: note: expanded from 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: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_packet_destroy( buf ); ^~~ ./src/include/ec_inet_forge.h:10:47: note: passing argument to parameter 'buf' here extern int Inet_Forge_packet_destroy( u_char *buf ); ^ ./src/ec_grell.c:559:20: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = server_init(buf, sizeof(buf)-2, &son_data); ^~~ ./src/ec_grell.c:286:30: note: passing argument to parameter 'buf' here static int server_init(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:563:17: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] server_write(buf, i, &son_data); ^~~ ./src/ec_grell.c:274:31: note: passing argument to parameter 'buf' here static int server_write(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:564:17: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] client_parse(buf, i, &son_data); ^~~ ./src/ec_grell.c:120:32: note: passing argument to parameter 'buf' here static void client_parse(char *buf, int len, public_data *son_data) ^ ./src/ec_grell.c:583:31: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((i = client_read(buf, i-2, &son_data)) <= 0) break; ^~~ ./src/ec_grell.c:238:30: note: passing argument to parameter 'buf' here static int client_read(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:585:27: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (server_write(buf, i, &son_data) != i) break; ^~~ ./src/ec_grell.c:274:31: note: passing argument to parameter 'buf' here static int server_write(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:586:23: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] client_parse(buf, i, &son_data); ^~~ ./src/ec_grell.c:120:32: note: passing argument to parameter 'buf' here static void client_parse(char *buf, int len, public_data *son_data) ^ ./src/ec_grell.c:593:31: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((i = server_read(buf, i-2, &son_data)) <= 0) break; ^~~ ./src/ec_grell.c:268:30: note: passing argument to parameter 'buf' here static int server_read(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:595:27: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (client_write(buf, i, &son_data) != i) break; ^~~ ./src/ec_grell.c:244:31: note: passing argument to parameter 'buf' here static int client_write(char *buf, size_t size, public_data *son_data) ^ ./src/ec_grell.c:596:23: warning: passing 'u_char [10000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] server_parse(buf, i, &son_data); ^~~ ./src/ec_grell.c:179:32: note: passing argument to parameter 'buf' here static void server_parse(char *buf, int len, public_data *son_data) ^ ./src/ec_grell.c:651:95: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] father_data.client_fd = accept(proxy_fd, (struct sockaddr *)&father_data.client_sin, &dummy); ^~~~~~ /usr/include/sys/socket.h:649:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ ./src/ec_grell.c:669:95: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] father_data.client_fd = accept(https_fd, (struct sockaddr *)&father_data.client_sin, &dummy); ^~~~~~ /usr/include/sys/socket.h:649:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 16 warnings generated. clang -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:283:63: warning: passing 'unsigned char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetIfaceInfo( ((illithid_param *)param)->iface, &MTU, MyMAC, &MyIP, &NetMask); ^~~~~ ./src/include/ec_inet.h:54:59: note: passing argument to parameter 'MyMAC' here extern int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, unsigned long *IP, unsigned long *NetMask); ^ ./src/ec_illithid.c:302:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ins_pck = Inet_Forge_packet(MTU); ^ ~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_illithid.c:310:30: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Pcapfile_Read(recvpck.aligned, MTU); ^~~~~~~~~~~~~~~ ./src/include/ec_pcapfile.h:5:32: note: passing argument to parameter 'buf' here extern int Pcapfile_Read(char *buf, short MTU); ^ ./src/ec_illithid.c:312:40: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:59:46: note: passing argument to parameter 'buffer' here extern int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_illithid.c:316:25: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Pcapfile_Write(recvpck.aligned, len); ^~~~~~~~~~~~~~~ ./src/include/ec_pcapfile.h:6:33: note: passing argument to parameter 'buf' here extern int Pcapfile_Write(char *buf, short len); ^ ./src/ec_illithid.c:420:50: warning: passing 'unsigned char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] PckDir = Illithid_ToBeSniffed_mac(MAC1, MAC2, &data_to_ettercap); ^~~~ ./src/ec_illithid.c:102:36: note: passing argument to parameter 'source' here int Illithid_ToBeSniffed_mac(char *source, char *dest, CONNECTION *data); ^ ./src/ec_illithid.c:420:56: warning: passing 'unsigned char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] PckDir = Illithid_ToBeSniffed_mac(MAC1, MAC2, &data_to_ettercap); ^~~~ ./src/ec_illithid.c:102:50: note: passing argument to parameter 'dest' here int Illithid_ToBeSniffed_mac(char *source, char *dest, CONNECTION *data); ^ ./src/ec_illithid.c:491:67: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, eth->dest_mac); ^~~~~~~~~~~~~ ./src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_illithid.c:511:22: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:517:30: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp_data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:517:28: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] tcp_data = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_illithid.c:575:22: warning: cast to 'UDP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:581:30: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] udp_data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_illithid.c:581:28: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] udp_data = (char *)((int)udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_illithid.c:636:25: warning: cast to 'UDP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:671:25: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_illithid.c:673:26: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_illithid.c:673:24: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_illithid.c:710:64: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, data_to_ettercap.source_mac, ETH_P_IP ); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:710:84: warning: passing 'char [20]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, data_to_ettercap.source_mac, ETH_P_IP ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_illithid.c:711:58: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-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); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:712:59: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-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); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:741:80: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] session.elem1.PacketSent += Inet_SendLargeTCPPacket(sock, recvpck.aligned, len, MTU); ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:46:52: note: passing argument to parameter 'buffer' here extern int Inet_SendLargeTCPPacket(int sock, char *buffer, int len, int MTU); ^ ./src/ec_illithid.c:753:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, len); ^~~~~~~~~~~~~~~ ./src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_illithid.c:776:17: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] buf = Inet_Forge_packet( ETH_HEADER + IP_HEADER + TCP_HEADER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_illithid.c:778:34: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf, MyMAC, session.elem2.MAC, ETH_P_IP ); ^~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:779:28: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( buf + ETH_HEADER, session.elem1.IP, session.elem2.IP, ^~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:783:29: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( buf + ETH_HEADER + IP_HEADER, ntohs(session.elem1.Port), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:792:34: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( buf, MyMAC, session.elem1.MAC, ETH_P_IP ); ^~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:793:28: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ip( buf + ETH_HEADER, session.elem2.IP, session.elem1.IP, ^~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:797:29: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_tcp( buf + ETH_HEADER + IP_HEADER, ntohs(session.elem2.Port), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:806:40: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_packet_destroy( buf ); ^~~ ./src/include/ec_inet_forge.h:10:47: note: passing argument to parameter 'buf' here extern int Inet_Forge_packet_destroy( u_char *buf ); ^ ./src/ec_illithid.c:831:52: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session.elem2.MAC, ETH_P_IP ); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:833:46: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session.elem1.IP, session.elem2.IP, ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:838:47: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_tcp( pck_to_send, ntohs(session.elem1.Port), ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:843:60: warning: passing 'char [1001]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] inj.data, inj.datalen); ^~~~~~~~ ./src/include/ec_inet_forge.h:44:36: note: passing argument to parameter 'data' here u_char *data, // payload ^ ./src/ec_illithid.c:850:52: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session.elem2.MAC, ETH_P_IP ); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:852:46: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session.elem1.IP, session.elem2.IP, ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:857:47: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_udp( pck_to_send, ntohs(session.elem1.Port), ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:47:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_udp( u_char *buf, ^ ./src/ec_illithid.c:859:60: warning: passing 'char [1001]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] inj.data, inj.datalen); ^~~~~~~~ ./src/include/ec_inet_forge.h:50:36: note: passing argument to parameter 'data' here u_char *data, // payload ^ ./src/ec_illithid.c:1101:18: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] buf1 = Inet_Forge_packet( ETH_HEADER + IP_HEADER + TCP_HEADER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_illithid.c:1103:49: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session->elem2.MAC, ETH_P_IP ); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:1104:43: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session->elem1.IP, ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:1109:44: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_tcp( pck_to_send, ntohs(session->elem1.Port), ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ ./src/ec_illithid.c:1115:18: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] buf2 = Inet_Forge_packet( ETH_HEADER + IP_HEADER + TCP_HEADER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_illithid.c:1117:49: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, session->elem1.MAC, ETH_P_IP ); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_illithid.c:1118:43: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, session->elem2.IP, ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_illithid.c:1123:44: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_tcp( pck_to_send, ntohs(session->elem2.Port), ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:38:36: note: passing argument to parameter 'buf' here extern int Inet_Forge_tcp( u_char *buf, ^ 48 warnings generated. clang -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:206:46: warning: passing 'unsigned char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetIfaceInfo(Options.netiface, NULL, MAC_Add, &IP_Add, &NetMask); ^~~~~~~ ./src/ec_inet.c:103:52: note: passing argument to parameter 'MyMAC' here int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, u_long *IP, u_long *NetMask); ^ ./src/ec_inet.c:289:7: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:333:7: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:360:7: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:380:7: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:385:44: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(Host_In_LAN[0].mac, N_MAC); ^~~~~ ./src/ec_inet.c:85:59: note: passing argument to parameter 'MAC' here void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:441:57: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, head->MAC_Add, ETH_BROADCAST, ETH_P_IP ); ^~~~~~~~~~~~~ src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_inet.c:452:29: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:108:40: note: passing argument to parameter 'buffer' here int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:469:37: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:107:39: note: passing argument to parameter 'buffer' here int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_inet.c:487:20: warning: passing 'const char [32]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("malloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:520:7: warning: passing 'const char [22]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("malloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:524:35: warning: passing 'u_char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetIfaceInfo(iface, &MTU, head->MAC_Add, &head->IP_Add, &NetMask); ^~~~~~~~~~~~~ ./src/ec_inet.c:103:52: note: passing argument to parameter 'MyMAC' here int Inet_GetIfaceInfo(char *iface, int *MTU, char *MyMAC, u_long *IP, u_long *NetMask); ^ ./src/ec_inet.c:680:59: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.buf, head->MAC_Add, ETH_BROADCAST, ETH_P_ARP ); ^~~~~~~~~~~~~ src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_inet.c:701:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ARP_BROADCAST, dest_ip ); ^~~~~~~~~~~~~ src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_inet.c:704:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.buf, ETH_HEADER + ARP_HEADER); ^~~~~~~~~~~ ./src/ec_inet.c:108:40: note: passing argument to parameter 'buffer' here int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:720:35: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ARP_BROADCAST, dest_ip ); ^~~~~~~~~~~~~ src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_inet.c:723:44: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.buf, ETH_HEADER + ARP_HEADER); ^~~~~~~~~~~ ./src/ec_inet.c:108:40: note: passing argument to parameter 'buffer' here int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:758:38: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] leng = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:107:39: note: passing argument to parameter 'buffer' here int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_inet.c:779:16: warning: passing 'const char [22]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("malloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:828:52: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[0].mac, MyMAC); ^~~~~ ./src/ec_inet.c:86:60: note: passing argument to parameter 'MAC' here int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:829:52: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[i].mac, DestMAC); ^~~~~~~ ./src/ec_inet.c:86:60: note: passing argument to parameter 'MAC' here int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:831:44: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.buf, MyMAC, DestMAC, ETH_P_IP ); ^~~~~ src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_inet.c:831:51: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.buf, MyMAC, DestMAC, ETH_P_IP ); ^~~~~~~ src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_inet.c:843:35: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.buf, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~~~~~~~~ ./src/ec_inet.c:108:40: note: passing argument to parameter 'buffer' here int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:866:37: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:107:39: note: passing argument to parameter 'buffer' here int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_inet.c:875:33: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(MACS, HEther->source_mac); ^~~~ ./src/ec_inet.c:85:32: note: passing argument to parameter 'mac_string' here void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:875:39: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(MACS, HEther->source_mac); ^~~~~~~~~~~~~~~~~~ ./src/ec_inet.c:85:59: note: passing argument to parameter 'MAC' here void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:976:50: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[1].mac, DestMAC); ^~~~~~~ ./src/ec_inet.c:86:60: note: passing argument to parameter 'MAC' here int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:985:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^~~~~ src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_inet.c:985:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^~~~~~~ src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_inet.c:992:33: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:108:40: note: passing argument to parameter 'buffer' here int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:994:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_ARP ); ^~~~~ src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_inet.c:994:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_ARP ); ^~~~~~~ src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_inet.c:996:24: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DestMAC, fakeip, ^~~~~~~ src/include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/ec_inet.c:997:24: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DestMAC, destip ); ^~~~~~~ src/include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/ec_inet.c:1001:37: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + ARP_HEADER); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:108:40: note: passing argument to parameter 'buffer' here int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:1009:40: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len=Inet_GetRawPacket(sock, recvpck.aligned, MTU, &type); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:107:39: note: passing argument to parameter 'buffer' here int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_inet.c:1038:50: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[2].mac, SourceMAC); ^~~~~~~~~ ./src/ec_inet.c:86:60: note: passing argument to parameter 'MAC' here int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:1039:50: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_GetMACfromString(Host_In_LAN[1].mac, DestMAC); ^~~~~~~ ./src/ec_inet.c:86:60: note: passing argument to parameter 'MAC' here int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_inet.c:1048:46: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^~~~~ src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_inet.c:1048:53: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, DestMAC, ETH_P_IP ); ^~~~~~~ src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_inet.c:1055:33: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, recvpck.aligned, ETH_HEADER + IP_HEADER + ICMP_HEADER); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:108:40: note: passing argument to parameter 'buffer' here int Inet_SendRawPacket(int sock, char *buffer, int len); ^ ./src/ec_inet.c:1062:40: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len=Inet_GetRawPacket(sock, recvpck.aligned, MTU, &type); ^~~~~~~~~~~~~~~ ./src/ec_inet.c:107:39: note: passing argument to parameter 'buffer' here int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type); ^ ./src/ec_inet.c:1155:10: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("Addresses doesn't mach"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:1163:7: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("socket()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet.c:1235:10: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_inet.c:1236:11: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ 47 warnings generated. clang -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 ./src/ec_inet_forge.c:53:7: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_inet_forge.c:222:11: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_inet_forge.c:222:9: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang -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 ./src/ec_logtofile.c:120:7: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c:159:7: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c:191:13: warning: cast to 'UDP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_logtofile.c:192:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_logtofile.c:192:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] data = (char *)((int)udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_logtofile.c:206:13: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_logtofile.c:207:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_logtofile.c:207:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] data = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_logtofile.c:224:10: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c:250:7: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_logtofile.c:319:7: warning: passing 'const char [28]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 11 warnings generated. clang -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 ./src/ec_main.c:404:26: warning: array subscript is of type 'char' [-Wchar-subscripts] program_argv0[i] = tolower(program_argv0[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 1 warning generated. clang -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 ./src/ec_packet.c:45:7: warning: passing 'const char [21]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_packet.c:91:23: warning: cast to 'u_char *' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] (*po)->L4.header = (u_char *) ((int)ip + ip->h_len * 4); /* default */ ^ ./src/ec_packet.c:99:14: warning: cast to 'ICMP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] icmp = (ICMP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:113:13: warning: cast to 'UDP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] udp = (UDP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:130:26: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] (*po)->data.data = (char *)((int)udp + UDP_HEADER); ^ ./src/ec_packet.c:130:24: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*po)->data.data = (char *)((int)udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_packet.c:141:13: warning: cast to 'TCP_header *' from smaller integer type 'int' [-Wint-to-pointer-cast] tcp = (TCP_header *) ((int)ip + ip->h_len * 4); ^ ./src/ec_packet.c:161:26: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] (*po)->data.data = (char *)((int)tcp + tcp->doff * 4); ^ ./src/ec_packet.c:161:24: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*po)->data.data = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_packet.c:216:13: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("incorrect level specified"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_packet.c:223:10: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 11 warnings generated. clang -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:366:81: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( strcmp(Host_Dest.mac, "") && Inet_GetMACfromString(Host_Dest.mac, check ) == -1) // check for valid mac ^~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:368:85: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( strcmp(Host_Source.mac, "") && Inet_GetMACfromString(Host_Source.mac, check ) == -1) // check for valid mac ^~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:407:54: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (Inet_GetMACfromString(Host_Dest.mac, check ) == -1) // check for valid mac ^~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:412:54: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (Inet_GetMACfromString(Host_Dest.mac, check ) == -1) // check for valid mac ^~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:414:56: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (Inet_GetMACfromString(Host_Source.mac, check ) == -1) // check for valid mac ^~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:462:47: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (Inet_GetMACfromString(second, check ) == -1) // if it is a mac take it in dest, else it is the source ip ^~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/ec_parser.c:493:7: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c:527:7: warning: passing 'const char [21]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c:819:63: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filter->wildcard = FilterDrop_ParseWildcard(tmp_search, filter->display_search, sizeof(tmp_search)); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_filterdrop.h:10:54: note: passing argument to parameter 'src' here extern int FilterDrop_ParseWildcard(char *dst, char *src, size_t size); ^ ./src/ec_parser.c:820:43: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filter->slen = FilterDrop_strescape(filter->search, tmp_search); ^~~~~~~~~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/ec_parser.c:831:43: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filter->rlen = FilterDrop_strescape(filter->replace, filter->display_replace); ^~~~~~~~~~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/ec_parser.c:831:60: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filter->rlen = FilterDrop_strescape(filter->replace, filter->display_replace); ^~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/ec_parser.c:838:22: warning: array subscript is of type 'char' [-Wchar-subscripts] filter->type = toupper(filter->type); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ ./src/ec_parser.c:857:23: warning: array subscript is of type 'char' [-Wchar-subscripts] filter->proto = toupper(filter->proto); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ ./src/ec_parser.c:949:13: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c:959:13: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c:1102:10: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_parser.c:1139:7: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 18 warnings generated. clang -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 ./src/ec_pcapfile.c:102:10: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fread()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_pcapfile.c:235:10: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fwrite()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_pcapfile.c:263:7: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fwrite()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_pcapfile.c:266:7: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fwrite()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 4 warnings generated. clang -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 ./src/ec_plugins.c:144:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stdout, temp); ^~~~ ./src/ec_plugins.c:144:32: note: treat the string as an argument to avoid this fprintf(stdout, temp); ^ "%s", ./src/ec_plugins.c:163:41: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stdout, temp); ^~~~ ./src/ec_plugins.c:163:41: note: treat the string as an argument to avoid this fprintf(stdout, temp); ^ "%s", ./src/ec_plugins.c:175:42: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stdout, temp); ^~~~ ./src/ec_plugins.c:175:42: note: treat the string as an argument to avoid this fprintf(stdout, temp); ^ "%s", ./src/ec_plugins.c:217:7: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 4 warnings generated. clang -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 clang -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 ./src/ec_threads.c:67:7: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 1 warning generated. clang -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 ./src/ec_vbuf.c:90:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = strlen(vbuf_ptr(vbuf)); ^~~~~~~~~~~~~~ ./src/include/ec_vbuf.h:27:31: note: expanded from macro 'vbuf_ptr' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_vbuf.c:95:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(dst, vbuf_ptr(vbuf)); ^~~~~~~~~~~~~~ ./src/include/ec_vbuf.h:27:31: note: expanded from macro 'vbuf_ptr' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:58:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ ./src/ec_vbuf.c:108:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = strlen(vbuf_ptr(vbuf)); ^~~~~~~~~~~~~~ ./src/include/ec_vbuf.h:27:31: note: expanded from macro 'vbuf_ptr' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_vbuf.c:115:7: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_vbuf.c:117:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, vbuf_ptr(vbuf)); ^~~~~~~~~~~~~~ ./src/include/ec_vbuf.h:27:31: note: expanded from macro 'vbuf_ptr' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:58:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ ./src/ec_vbuf.c:147:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = vsnprintf(vbuf_ptr(vbuf), vbuf_len(vbuf), fmt, ap); ^~~~~~~~~~~~~~ ./src/include/ec_vbuf.h:27:31: note: expanded from macro 'vbuf_ptr' #define vbuf_ptr(vbuf) ((vbuf)->base + (vbuf)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:350:33: note: passing argument to parameter here int vsnprintf(char * __restrict, size_t, const char * __restrict, ^ 6 warnings generated. clang -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:116:30: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(MACs, MAC); ^~~ src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/interface/console/ec_simple.c:301:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("signal()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/console/ec_simple.c:304:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("signal()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/console/ec_simple.c:307:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("signal()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/console/ec_simple.c:310:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("signal()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/console/ec_simple.c:313:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fork()"); ^~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/console/ec_simple.c:321:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("setsid()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/console/ec_simple.c:507:50: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(Host_Source.mac, Inet_MacFromIP(inet_addr(Host_Source.ip))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/interface/console/ec_simple.c:515:48: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(Host_Dest.mac, Inet_MacFromIP(inet_addr(Host_Dest.ip))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ 9 warnings generated. clang -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 clang -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:133:63: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (Inet_GetMACfromString(field_buffer(eth_form[3], 0), eth->source_mac) == -1) ^~~~~~~~~~~~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/interface/ncurses/ec_interface_factory.c:140:63: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (Inet_GetMACfromString(field_buffer(eth_form[5], 0), eth->dest_mac) == -1) ^~~~~~~~~~~~~ src/include/ec_inet.h:36:67: note: passing argument to parameter 'MAC' here extern int Inet_GetMACfromString(char *mac_string, unsigned char *MAC); ^ ./src/interface/ncurses/ec_interface_factory.c:346:19: warning: passing 'u_char [1500]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(tmp, ' '); ^~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:347:18: warning: passing 'u_char [1500]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(tmp) != 0) // load from file ^~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c:350:22: warning: passing 'u_char [1500]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] fts = fopen(tmp, "r"); ^~~ /usr/include/stdio.h:230:37: note: passing argument to parameter here FILE *fopen(const char * __restrict , const char * __restrict); ^ ./src/interface/ncurses/ec_interface_factory.c:366:16: warning: passing 'u_char [1500]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fgets(tmp, 1460, fts); ^~~ /usr/include/stdio.h:229:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ ./src/interface/ncurses/ec_interface_factory.c:367:41: warning: passing 'u_char [400]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:367:50: warning: passing 'u_char [1500]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:373:22: warning: passing 'u_char [1500]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(tmp, ' '); ^~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:374:41: warning: passing 'u_char [400]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:374:50: warning: passing 'u_char [1500]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:379:26: warning: passing 'u_char [1500]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for(i=0; i<=strlen(tmp); i++) ^~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c:513:19: warning: passing 'u_char [405]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(tmp, ' '); ^~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:514:18: warning: passing 'u_char [405]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(tmp) != 0) // load from file ^~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c:517:22: warning: passing 'u_char [405]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] fts = fopen(tmp, "r"); ^~~ /usr/include/stdio.h:230:37: note: passing argument to parameter here FILE *fopen(const char * __restrict , const char * __restrict); ^ ./src/interface/ncurses/ec_interface_factory.c:533:16: warning: passing 'u_char [405]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fgets(tmp, 1460, fts); ^~~ /usr/include/stdio.h:229:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ ./src/interface/ncurses/ec_interface_factory.c:534:41: warning: passing 'u_char [400]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:534:50: warning: passing 'u_char [405]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:540:22: warning: passing 'u_char [405]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(tmp, ' '); ^~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:541:41: warning: passing 'u_char [400]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:541:50: warning: passing 'u_char [405]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:620:19: warning: passing 'u_char [705]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(tmp, ' '); ^~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:621:18: warning: passing 'u_char [705]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(tmp) != 0) // load from file ^~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/interface/ncurses/ec_interface_factory.c:624:22: warning: passing 'u_char [705]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] fts = fopen(tmp, "r"); ^~~ /usr/include/stdio.h:230:37: note: passing argument to parameter here FILE *fopen(const char * __restrict , const char * __restrict); ^ ./src/interface/ncurses/ec_interface_factory.c:640:16: warning: passing 'u_char [705]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fgets(tmp, 1460, fts); ^~~ /usr/include/stdio.h:229:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ ./src/interface/ncurses/ec_interface_factory.c:641:41: warning: passing 'u_char [700]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:641:50: warning: passing 'u_char [705]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:647:22: warning: passing 'u_char [705]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(tmp, ' '); ^~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_factory.c:648:41: warning: passing 'u_char [700]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:648:50: warning: passing 'u_char [705]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] datalen = FilterDrop_strescape(payload, tmp); ^~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_factory.c:1344:29: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_SendRawPacket(sock, buf, forged_pck-buf); ^~~ src/include/ec_inet.h:60:47: note: passing argument to parameter 'buffer' here extern int Inet_SendRawPacket(int sock, char *buffer, int len); ^ 31 warnings generated. clang -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 clang -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:155:31: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = FilterDrop_strescape(inject_data, inject_sequence); ^~~~~~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_inject.c:464:30: warning: passing 'u_char [201]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] set_field_buffer(f[7], 0, filters[Fil_Pointer].display_search); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/form.h:352:57: note: passing argument to parameter here int set_field_buffer(FIELD *, int, const char *); ^ ./src/interface/ncurses/ec_interface_inject.c:467:31: warning: passing 'u_char [201]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] set_field_buffer(f[11], 0, filters[Fil_Pointer].display_replace); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/form.h:352:57: note: passing argument to parameter here int set_field_buffer(FIELD *, int, const char *); ^ ./src/interface/ncurses/ec_interface_inject.c:497:36: warning: array subscript is of type 'char' [-Wchar-subscripts] filters[Fil_Pointer].proto = toupper(filters[Fil_Pointer].proto); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ ./src/interface/ncurses/ec_interface_inject.c:503:19: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(filters[Fil_Pointer].display_search, ' '); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_inject.c:504:76: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filters[Fil_Pointer].wildcard = FilterDrop_ParseWildcard(tmp_search, filters->display_search, sizeof(tmp_search)); ^~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_filterdrop.h:10:54: note: passing argument to parameter 'src' here extern int FilterDrop_ParseWildcard(char *dst, char *src, size_t size); ^ ./src/interface/ncurses/ec_interface_inject.c:505:56: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filters[Fil_Pointer].slen = FilterDrop_strescape(filters[Fil_Pointer].search, tmp_search); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_inject.c:508:19: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] trim_buffer(filters[Fil_Pointer].display_replace, ' '); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_interface_form.h:13:31: note: passing argument to parameter 'buffer' here extern void trim_buffer(char *buffer, char trim); ^ ./src/interface/ncurses/ec_interface_inject.c:509:56: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filters[Fil_Pointer].rlen = FilterDrop_strescape(filters[Fil_Pointer].replace, filters[Fil_Pointer].display_replace); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_filterdrop.h:9:40: note: passing argument to parameter 'dst' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_inject.c:509:86: warning: passing 'u_char [201]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] filters[Fil_Pointer].rlen = FilterDrop_strescape(filters[Fil_Pointer].replace, filters[Fil_Pointer].display_replace); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_filterdrop.h:9:51: note: passing argument to parameter 'src' here extern int FilterDrop_strescape( char *dst, char *src); ^ ./src/interface/ncurses/ec_interface_inject.c:512:35: warning: array subscript is of type 'char' [-Wchar-subscripts] filters[Fil_Pointer].type = toupper(filters[Fil_Pointer].type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ 11 warnings generated. clang -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:531:78: warning: data argument not used by format string [-Wformat-extra-args] mvwprintw(f_win, 0, 2, "Fingerprint submitter: (press F10 to exit) ", MAX_INJECT); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ src/include/ec_main.h:258:20: note: expanded from macro 'MAX_INJECT' #define MAX_INJECT 1000 // max number of injected chars ^ ./src/interface/ncurses/ec_interface_passive.c:807:53: warning: comparison of array 'Passive_Host[Host_Pointer].ip' equal to a null pointer is always false [-Wtautological-pointer-compare] if (Passive_Host[Host_Pointer].ip == NULL) break; // no host ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ ~~~~ 2 warnings generated. clang -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 clang -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 ./src/interface/ncurses/ec_interface_sniff.c:514:59: warning: comparison of array 'Conn_Between_Hosts[Conn_Pointer].source_ip' equal to a null pointer is always false [-Wtautological-pointer-compare] if (Conn_Between_Hosts[Conn_Pointer].source_ip == NULL) break; // no connections ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ~~~~ ./src/interface/ncurses/ec_interface_sniff.c:550:59: warning: comparison of array 'Conn_Between_Hosts[Conn_Pointer].source_ip' equal to a null pointer is always false [-Wtautological-pointer-compare] if (Conn_Between_Hosts[Conn_Pointer].source_ip == NULL) break; // no connections ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ~~~~ ./src/interface/ncurses/ec_interface_sniff.c:560:62: warning: comparison of array 'Conn_Between_Hosts[Conn_Pointer].source_ip' equal to a null pointer is always false [-Wtautological-pointer-compare] if (Conn_Between_Hosts[Conn_Pointer].source_ip == NULL) break; // no connections ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ~~~~ 3 warnings generated. clang -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 ./src/interface/ncurses/ec_interface_sniff_data.c:297:13: warning: passing 'const char [31]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/ncurses/ec_interface_sniff_data.c:307:16: warning: passing 'const char [31]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/ncurses/ec_interface_sniff_data.c:315:16: warning: passing 'const char [31]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("fopen()"); ^~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/interface/ncurses/ec_interface_sniff_data.c:822:36: warning: passing 'char [1001]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] data_len = Interface_Inject_Run(inject_data.data, proto, app); ^~~~~~~~~~~~~~~~ src/include/ec_interface_inject.h:6:41: note: passing argument to parameter 'inject_data' here extern int Interface_Inject_Run(u_char *inject_data, char proto, char *app); ^ 4 warnings generated. clang -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 ./src/OS/BSD/ec_inet_BSD.c:104:7: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("getifaddrs()"); ^~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:115:33: warning: array subscript is of type 'char' [-Wchar-subscripts] for (cp = ifa->ifa_name; !isdigit(*cp); ++cp) ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ ./src/OS/BSD/ec_inet_BSD.c:254:7: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" getifaddrs()"); ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:354:10: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("sysctl()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:357:10: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("malloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:360:10: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("sysctl()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:384:10: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("ioctl(SIOCGIFADDR)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:391:10: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("ioctl(SIOCGIFNETMASK)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:482:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" ioctl(BIOCVERSION)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:497:10: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" ioctl(BIOCSETIF)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:503:6: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" ioctl(BIOCGBLEN)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:506:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" ioctl(BIOCGDLT)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:513:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" ioctl(BIOCSHDRCMPLT)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:518:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" ioctl(BIOCIMMEDIATE)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:522:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG(" ioctl(BIOCSETF)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:560:8: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = (char *)calloc(size, sizeof(char)); // size is global and set by BIOCGBLEN ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/OS/BSD/ec_inet_BSD.c:631:7: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("ioctl(BIOCPROMISC)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:663:5: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("sysctl() | net.inet.ip.forwarding"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:686:7: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("sysctl()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:710:13: error: use of undeclared identifier 'RTF_LLINFO' mib[5] = RTF_LLINFO; ^ ./src/OS/BSD/ec_inet_BSD.c:713:7: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("sysctl()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:716:7: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("malloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:721:7: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("sysctl()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:761:48: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, ETH_BROADCAST, ETH_P_ARP ); ^~~~~ ./src/OS/BSD/../../include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/OS/BSD/ec_inet_BSD.c:761:55: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Inet_Forge_ethernet( recvpck.aligned, MyMAC, ETH_BROADCAST, ETH_P_ARP ); ^~~~~~~~~~~~~ ./src/OS/BSD/../../include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/OS/BSD/ec_inet_BSD.c:764:26: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] MyMAC, MyIP, ^~~~~ ./src/OS/BSD/../../include/ec_inet_forge.h:19:36: note: passing argument to parameter 'sa' here u_char *sa, // source mac address ^ ./src/OS/BSD/ec_inet_BSD.c:765:26: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ARP_BROADCAST, ip ); ^~~~~~~~~~~~~ ./src/OS/BSD/../../include/ec_inet_forge.h:21:36: note: passing argument to parameter 'da' here u_char *da, // dest mac address ^ ./src/OS/BSD/ec_inet_BSD.c:781:43: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = Inet_GetRawPacket(sock, recvpck.aligned, MTU, &pkttype); ^~~~~~~~~~~~~~~ ./src/OS/BSD/ec_inet_BSD.c:533:39: note: passing argument to parameter 'buffer' here int Inet_GetRawPacket(int sock, char *buffer, int MTU, short *type) ^ ./src/OS/BSD/ec_inet_BSD.c:883:10: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("writing on PF_ROUTE socket"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:889:7: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("reading on PF_ROUTE socket"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:906:7: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("socket(PF_ROUTE)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:937:7: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("socket(PF_ROUTE)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:1169:7: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("writing to routing socket"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:1190:7: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("socket(PF_ROUTE)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/OS/BSD/ec_inet_BSD.c:1228:7: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("socket(PF_ROUTE)"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 34 warnings and 1 error generated. *** Error code 1 Stop. make: stopped in /data/scratch/net/ettercap/work/ettercap-0.6.b *** Error code 1 Stop. make[1]: stopped in /data/pkgsrc/net/ettercap *** Error code 1 Stop. make: stopped in /data/pkgsrc/net/ettercap