Logo Search packages:      
Sourcecode: scamper version File versions  Download package

scamper_privsep.h

/*
 * scamper_privsep.h
 *
 * $Id: scamper_privsep.h,v 1.15 2006/08/23 05:52:41 mjl Exp $
 *
 * Copyright (C) 2004-2006 The University of Waikato
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 2.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef __SCAMPER_PRIVSEP_H
#define __SCAMPER_PRIVSEP_H

#ifndef WITHOUT_PRIVSEP

int scamper_privsep_open_datalink(const int ifindex);

int scamper_privsep_open_file(const char *file,
                        const int flags, const mode_t mode);

int scamper_privsep_open_rtsock(void);

int scamper_privsep_open_rawsock(const int domain, const int protocol);

int scamper_privsep_open_divert(const int port);

int scamper_privsep_init(void);
void scamper_privsep_cleanup(void);

#endif

#endif

Generated by  Doxygen 1.6.0   Back to index