[insert project logo here (125x200px max)]
Navigator
Mailinglists
Please report any errors or ommissions you find to our `Help' mailinglist, or
post a message in the Forums.
Copyright and Licensing Information
Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the
GNU General Public License (GPL).
All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and
licensed under the BSD Open Source License.
All sourcecode is made publicly available.
Acknowledgement
Splash and the Splash website are hosted
by SourceForge.net
|
Splash - Documentation
SNMP Plus a Lightweight API for SNAP Handling
Main Page Alphabetical List Data Structures File List Data Fields Globals
snap_svc/snap_svc_if.c File Reference#include <sys/ioctl.h>
#include <sys/socket.h>
#include <asm/types.h>
#include <netinet/in.h>
#include <net/if.h>
#include <string.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include "d_printf.h"
#include "snap_svc.h"
#include "snap_svc_if.h"
Include dependency graph for snap_svc_if.c:
Go to the source code of this file.
Function Documentation
int if_get_interface_count |
( |
void * |
useless |
) |
|
|
char* if_get_interface_name |
( |
int |
dIfNo |
) |
|
|
void if_getallneighbours |
( |
uint32_t |
incoming_ip |
) |
|
|
|
Definition at line 401 of file snap_svc_if.c.
References snap_svc_ifip_item::addr, d_printf(), svc_returnitem::data, if_gethopfromiface(), if_getifaceidx(), if_getnextiface(), svc_returnstruct::length, svc_returnstruct::list, snap_external_svclib_free_local_returnstruct(), svc_return, SVC_SNMP_TYPE_ADDR, and svc_returnitem::type.
Referenced by snap_external_svclib_getnextfunc(). |
uint32_t if_gethopfromiface |
( |
char * |
if_outname |
) |
|
|
int if_getiface |
( |
const char * |
strIfName, |
|
|
int |
flag |
|
) |
|
|
int if_getiface_up |
( |
const char * |
strIfName |
) |
|
|
unsigned int if_getifaceidx |
( |
uint32_t |
ip |
) |
|
|
uint32_t if_getnexthop |
( |
uint32_t |
incoming_ip |
) |
|
|
unsigned int if_getnextiface |
( |
unsigned int |
iface_idx |
) |
|
|
char* if_getoutiface |
( |
uint32_t |
incoming_ip |
) |
|
|
int if_setiface |
( |
const char * |
strIfName, |
|
|
int |
flag, |
|
|
int |
state |
|
) |
|
|
int if_setiface_up |
( |
const char * |
strIfName, |
|
|
int |
state |
|
) |
|
|
void snap_external_svclib_done |
( |
|
) |
|
|
void snap_external_svclib_getnextfunc |
( |
char ** |
snapsvc_name, |
|
|
snapsvc_func_proto * |
snapsvc_func, |
|
|
int * |
snapsvc_args, |
|
|
int * |
snapsvc_rets |
|
) |
|
|
|
Definition at line 53 of file snap_svc_if.c.
References if_get_interface_count(), if_get_interface_name(), if_getallneighbours(), if_getiface(), if_getiface_up(), if_getnexthop(), if_setiface(), if_setiface_up(), snapsvc_func_proto, svc_fun_counter, SVC_SNMP_TYPE_ADDR, SVC_SNMP_TYPE_INT, SVC_SNMP_TYPE_NULL, and SVC_SNMP_TYPE_STRING. |
void snap_external_svclib_init |
( |
|
) |
|
|
int snap_svc_ifip_init |
( |
|
) |
|
|
Variable Documentation
unsigned int snap_svc_if_count = 0
|
|
unsigned int snap_svc_if_maxidx = 0
|
|
|