Sha256: 1814760ad817e3b75f1bafcf0ff691022e7a10b7be5b20be1c00f8ecb65beaa8

Contents?: true

Size: 1.43 KB

Versions: 18

Compression:

Stored size: 1.43 KB

Contents

/*
  Copyright (C) 2009-2012 NEC Corporation

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License, version 2, as
  published by the Free Software Foundation.

  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.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef _PHOST_H_
#define _PHOST_H_

#define PHOST_LOG_FILE "phost.log"

#define PHOST_DEFAULT_TAP_DEVICE "tap0"

#define PHOST_RUN_LOOP_COUNT 16384

#define PHOST_NETDEV_MAX_BACKLOG_FILE "/proc/sys/net/core/netdev_max_backlog"
#define PHOST_NETDEV_MAX_BACKLOG 2048

#define PHOST_MAX_DGRAM_QLEN_FILE "/proc/sys/net/unix/max_dgram_qlen"
#define PHOST_MAX_DGRAM_QLEN 256

int phost_run();
int phost_daemonize();
int phost_set_program_name(const char *name);
int phost_create_pid_file(const char *instance);
int phost_delete_pid_file(const char *instance);
int phost_set_global_params();
int phost_unset_global_params();
int phost_enable_promiscuous();
int phost_disable_promiscuous();
void phost_handle_signals(int signal);
int phost_print_usage();

#endif /* _PHOST_H_*/

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
trema-0.3.9 vendor/phost/src/phost.h
trema-0.3.8 vendor/phost/src/phost.h
trema-0.3.7 vendor/phost/src/phost.h
trema-0.3.6 vendor/phost/src/phost.h
trema-0.3.5 vendor/phost/src/phost.h
trema-0.3.4 vendor/phost/src/phost.h
trema-0.3.3 vendor/phost/src/phost.h
trema-0.3.2 vendor/phost/src/phost.h
trema-0.3.1 vendor/phost/src/phost.h
trema-0.3.0 vendor/phost/src/phost.h
trema-0.2.8 vendor/phost/src/phost.h
trema-0.2.7 vendor/phost/src/phost.h
trema-0.2.6 vendor/phost/src/phost.h
trema-0.2.5 vendor/phost/src/phost.h
trema-0.2.4 vendor/phost/src/phost.h
trema-0.2.3 vendor/phost/src/phost.h
trema-0.2.2.1 vendor/phost/src/phost.h
trema-0.2.2 vendor/phost/src/phost.h