mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
19 lines
650 B
C++
19 lines
650 B
C++
#ifndef __libnet__
|
|
#define __libnet__
|
|
|
|
#include <string>
|
|
|
|
int netSetIP(std::string &dev, std::string &ip, std::string &mask, std::string &brdcast );
|
|
void netGetIP(std::string &dev, std::string &ip, std::string &mask, std::string &brdcast );
|
|
void netSetDefaultRoute( std::string &gw );
|
|
void netGetDefaultRoute( std::string &ip );
|
|
void netGetDomainname( std::string &dom );
|
|
void netSetDomainname( std::string &dom );
|
|
void netGetHostname( std::string &host );
|
|
void netSetHostname( std::string &host );
|
|
void netSetNameserver(std::string &ip);
|
|
void netGetNameserver( std::string &ip );
|
|
void netGetMacAddr(std::string & ifname, unsigned char *);
|
|
|
|
#endif
|