Clamd INSTREAM vérifiant

J’essaie de vérifier le fichier en utilisant clamd nINSTREAM.

struct clam_chunk { unsigned int fsize; char data[1024]; }; .............................................................................. st_data.fsize = __bswap_32(st_data.fsize); //big-endian format do { ret = send(fd, "nINSTREAM\n", 11, MSG_NOSIGNAL); ret = send(fd, &st_data, sizeof(st_data), MSG_NOSIGNAL); ret = send (fd,"",0,MSG_NOSIGNAL); } while (ret < 0 && errno == EINTR); 

J’ai une réponse: “stream: OK”, mais c’est faux, car les données contiennent Eicar-Test-Signature.

PING recive PONG, simple travail SCAN.