Ignore:
Timestamp:
Aug 6, 2009, 11:17:00 PM (11 years ago)
Author:
Sam Hocevar
Message:

Allow remote network host filtering, courtesy of Corentin Delorme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf.c

    r2527 r3635  
    11/*
    22 *  zzuf - general purpose fuzzer
    3  *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
    44 *                All Rights Reserved
    55 *
     
    4545#include "debug.h"
    4646#include "fd.h"
     47#include "network.h"
    4748#include "sys.h"
    4849#include "fuzz.h"
     
    141142        _zz_ports(tmp);
    142143
     144    tmp = getenv("ZZUF_ALLOW");
     145    if(tmp && *tmp)
     146        _zz_allow(tmp);
     147
     148    tmp = getenv("ZZUF_DENY");
     149    if(tmp && *tmp)
     150        _zz_deny(tmp);
     151
    143152    tmp = getenv("ZZUF_PROTECT");
    144153    if(tmp && *tmp)
     
    170179
    171180    _zz_fd_init();
     181    _zz_network_init();
    172182    _zz_sys_init();
    173183
     
    189199{
    190200    _zz_fd_fini();
     201    _zz_network_fini();
    191202}
    192203
Note: See TracChangeset for help on using the changeset viewer.