Commit d4a9c2ee authored by Robert David Graham's avatar Robert David Graham
Browse files

warnings

parent 6b279658
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ masscan_echo_nic(struct Masscan *masscan, FILE *fp, unsigned i)
            (masscan->nic[i].src.ip.first>> 0)&0xFF
            );
    else
        fprintf(fp, "adapter-ip%s = %u.%u.%u.%u\n", zzz,
        fprintf(fp, "adapter-ip%s = %u.%u.%u.%u-%u.%u.%u.%u\n", zzz,
            (masscan->nic[i].src.ip.first>>24)&0xFF,
            (masscan->nic[i].src.ip.first>>16)&0xFF,
            (masscan->nic[i].src.ip.first>> 8)&0xFF,
+2 −1
Original line number Diff line number Diff line
@@ -815,8 +815,9 @@ receive_thread(void *v)
            status = Port_Unknown;
            if ((px[parsed.transport_offset+13] & 0x2) == 0x2)
                status = Port_Open;
            if ((px[parsed.transport_offset+13] & 0x4) == 0x4)
            if ((px[parsed.transport_offset+13] & 0x4) == 0x4) {
                status = Port_Closed;
            }

            /* verify: syn-cookies */
            if (cookie != seqno_me - 1) {
+7 −7
Original line number Diff line number Diff line
@@ -231,8 +231,8 @@ myvalue
            "$%u\r\n%s\r\n"
            "$%u\r\n%s\r\n"
            ,
            strlen("host"), "host",
            strlen(ip_string), ip_string
            (unsigned)strlen("host"), "host",
            (unsigned)strlen(ip_string), ip_string
            );
    
    count = send(fd, line, (int)strlen(line), 0);
@@ -252,8 +252,8 @@ myvalue
            "$%u\r\n%s\r\n"
            "$%u\r\n%s\r\n"
            ,
            strlen(ip_string), ip_string,
            strlen(port_string), port_string);
            (unsigned)strlen(ip_string), ip_string,
            (unsigned)strlen(port_string), port_string);
    
    count = send(fd, line, (int)strlen(line), 0);
    if (count != strlen(line)) {
@@ -268,16 +268,16 @@ myvalue
     * VALUE: timestamp:status:reason:ttl
     */
    sprintf_s(values, sizeof(values), "%u:%u:%u:%u",
        timestamp, status, reason, ttl);
        (unsigned)timestamp, status, reason, ttl);
    sprintf_s(line, sizeof(line), 
            "*3\r\n"
            "$4\r\nSADD\r\n"
            "$%u\r\n%s:%s\r\n"
            "$%u\r\n%s\r\n"
            ,
            strlen(ip_string) + 1 + strlen(port_string), 
            (unsigned)(strlen(ip_string) + 1 + strlen(port_string)), 
            ip_string,port_string,
            strlen(values), values
            (unsigned)strlen(values), values
            );
    
    count = send(fd, line, (int)strlen(line), 0);
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ text_out_status(struct Output *out, FILE *fp, time_t timestamp,
        (ip>>16)&0xFF,
        (ip>> 8)&0xFF,
        (ip>> 0)&0xFF,
        timestamp
        (unsigned)timestamp
        );
}

@@ -73,7 +73,7 @@ text_out_banner(struct Output *out, FILE *fp, time_t timestamp,
        (ip>>16)&0xFF,
        (ip>> 8)&0xFF,
        (ip>> 0)&0xFF,
        timestamp,
        (unsigned)timestamp,
        masscan_app_to_string(proto),
        normalize_string(px, length, banner_buffer, sizeof(banner_buffer))
        );
+2 −2
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ xml_out_status(struct Output *out, FILE *fp, time_t timestamp, int status,
                    "</ports>"
                "</host>"
                "\r\n",
        timestamp,
        (unsigned)timestamp,
        (ip>>24)&0xFF,
        (ip>>16)&0xFF,
        (ip>> 8)&0xFF,
@@ -116,7 +116,7 @@ xml_out_banner(struct Output *out, FILE *fp, time_t timestamp,
                    "</ports>"
                "</host>"
                "\r\n",
        timestamp,
        (unsigned)timestamp,
        (ip>>24)&0xFF,
        (ip>>16)&0xFF,
        (ip>> 8)&0xFF,
Loading