[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

SourceForge.net Logo

osi-open source certified logo

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.h

Go to the documentation of this file.
00001 /* snap service library                 */
00002 /* (c) Willem de Bruijn, 2002, 2003     */
00003 /* Licensed under the BSD License       */
00004 /* snap_svc_if library headerfile   */
00005 
00006 
00007 #ifndef SNAP_SVC_IF_H
00008 #define SNAP_SVC_IF_H
00009     
00010     /* definitions of snap service handlers */
00011     /* NB: this isn't really necessary, but can be helpful for library users */
00012 
00013     int if_get_interface_count(void* useless);
00014     char* if_get_interface_name(int dIfNo);
00015     int if_getiface(const char* strIfName, int flag);
00016     int if_getiface_up(const char* strIfName);
00017     int if_setiface(const char* strIfName, int flag, int state);
00018     int if_setiface_up(const char* strIfName, int state);
00019     uint32_t if_getnexthop(uint32_t incoming_ip);
00020     void if_getallneighbours(uint32_t incoming_ip); 
00021     
00022     struct snap_svc_ifip_item {
00023         char* if_name;              /* human readable name (from libc ifreq struct) */
00024         unsigned int if_index;      /* machine usable index (from libc ifreq struct))*/
00025         uint32_t addr;                  /* ip-address */
00026     };
00027 
00028     /* subroutine of the initialization procedure */
00029     int snap_svc_ifip_init();
00030 #endif /* SNAP_SVC_IF_H */