~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to freshclam/mirman.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "libclamav/cltypes.h"
23
23
 
24
24
struct mirdat_ip {
25
 
    uint32_t ip;            /* IP address */
 
25
    uint32_t ip4;           /* IPv4 address */
26
26
    uint32_t atime;         /* last access time */
27
27
    uint32_t succ;          /* number of successful downloads from this ip */
28
28
    uint32_t fail;          /* number of failures */
29
29
    uint8_t ignore;         /* ignore flag */
30
 
    char res[32];           /* reserved */
 
30
    uint32_t ip6[4];        /* IPv6 address */
 
31
    char res[16];           /* reserved */
31
32
};
32
33
 
33
34
struct mirdat {
34
35
    uint8_t active;
35
36
    unsigned int num;
36
 
    uint32_t currip;
 
37
    uint32_t currip[4];
 
38
    uint32_t af;
37
39
    uint32_t dbflevel;
38
40
    struct mirdat_ip *mirtab;
39
41
};
40
42
 
41
43
int mirman_read(const char *file, struct mirdat *mdat, uint8_t active);
42
 
int mirman_check(uint32_t ip, struct mirdat *mdat);
43
 
int mirman_update(uint32_t ip, struct mirdat *mdat, uint8_t broken);
 
44
int mirman_check(uint32_t *ip, int af, struct mirdat *mdat, struct mirdat_ip **md);
 
45
int mirman_update(uint32_t *ip, int af, struct mirdat *mdat, uint8_t broken);
44
46
void mirman_list(const struct mirdat *mdat);
 
47
void mirman_whitelist(struct mirdat *mdat);
45
48
int mirman_write(const char *file, struct mirdat *mdat);
46
49
void mirman_free(struct mirdat *mdat);
47
50