Created
April 29, 2020 21:54
-
-
Save ttldtor/0148cb44f21ed9d3098777193f5e921b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 75%] Building C object CMakeFiles/dhcpdrop.dir/src/dhcdrop.c.obj | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c: In function 'configure': | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:540:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] | |
540 | if(!params->if_name) | |
| ^~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:543:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' | |
543 | if(!strcmp("any", params->if_name)) | |
| ^~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:558:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] | |
558 | if(!strlen(params->str_source_mac)) | |
| ^~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:560:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' | |
560 | ret = etheraddr_str_to_bin(params->str_source_mac, params->source_mac); | |
| ^~~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:576:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] | |
576 | if( !params->max_address_count && !params->flood) | |
| ^~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:578:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' | |
578 | if( !params->timeout) | |
| ^~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c: In function 'get_dhcp_server': | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:756:37: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'u_long' {aka 'long unsigned int'} [-Wformat=] | |
756 | printf("lease time: %.2gh (%us)\n", (float)ntohl(lease_time)/3600, ntohl(lease_time)); | |
| ~^ ~~~~~~~~~~~~~~~~~ | |
| | | | |
| unsigned int u_long {aka long unsigned int} | |
| %lu | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:756:37: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'u_long' {aka 'long unsigned int'} [-Wformat=] | |
756 | printf("lease time: %.2gh (%us)\n", (float)ntohl(lease_time)/3600, ntohl(lease_time)); | |
| ~^ ~~~~~~~~~~~~~~~~~ | |
| | | | |
| unsigned int u_long {aka long unsigned int} | |
| %lu | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c: In function 'get_dhcp_response': | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1464:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] | |
1464 | if(errors == max_errors) | |
| ^~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1467:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' | |
1467 | int ret = get_packet(pcap_socket, ether_packet, timeout); | |
| ^~~ | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c: In function 'ignor_servers_list': | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:27: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:30: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:33: warning: format '%x' expects argument of type 'unsigned int *', but argument 5 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:36: warning: format '%x' expects argument of type 'unsigned int *', but argument 6 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:39: warning: format '%x' expects argument of type 'unsigned int *', but argument 7 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:42: warning: format '%x' expects argument of type 'unsigned int *', but argument 8 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:27: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:30: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:33: warning: format '%x' expects argument of type 'unsigned int *', but argument 5 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:36: warning: format '%x' expects argument of type 'unsigned int *', but argument 6 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:39: warning: format '%x' expects argument of type 'unsigned int *', but argument 7 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1516:42: warning: format '%x' expects argument of type 'unsigned int *', but argument 8 has type 'int *' [-Wformat=] | |
1516 | if(sscanf(ether_addr, "%x:%x:%x:%x:%x:%x", | |
| ~^ | |
| | | |
| unsigned int * | |
| %x | |
1517 | &hex, &hex, &hex, &hex, &hex, &hex) < 6) /* Invalid format! */ | |
| ~~~~ | |
| | | |
| int * | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c: In function 'etheraddr_str_to_bin': | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1860:26: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=] | |
1860 | if(sscanf(bytePtr, "%02x", &byte) < 1) | |
| ~~~^ ~~~~~ | |
| | | | |
| | int * | |
| unsigned int * | |
| %02x | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1860:26: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=] | |
1860 | if(sscanf(bytePtr, "%02x", &byte) < 1) | |
| ~~~^ ~~~~~ | |
| | | | |
| | int * | |
| unsigned int * | |
| %02x | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c: In function 'rand_ether_addr': | |
C:\Users\ttldtor\Downloads\dhcdrop-0.5.tar\dhcdrop-0.5\src\dhcdrop.c:1892:5: warning: 'strncat' specified bound 3 equals source length [-Wstringop-overflow=] | |
1892 | strncat(str_mac_addr, "00:", 3); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
[100%] Linking C executable dhcpdrop.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment