File: net.h

package info (click to toggle)
pump 0.8.24-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 548 kB
  • ctags: 311
  • sloc: ansic: 3,199; makefile: 149; sh: 7
file content (31 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef H_LOADER_NET
#define H_LOADER_NET

#include "pump.h"
#ifdef __STANDALONE__
struct knownDevices {
};
#else
#include "../isys/probe.h"
#endif

struct networkDeviceConfig {
    struct pumpNetIntf dev;
    int isDynamic;
};

int readNetConfig(char * device, struct networkDeviceConfig * dev, 
		  int flags);
int configureNetwork(struct networkDeviceConfig * dev);
int writeNetInfo(const char * fn, struct networkDeviceConfig * dev,
		 struct knownDevices * kd);
int findHostAndDomain(struct networkDeviceConfig * dev, int flags);
int writeResolvConf(struct networkDeviceConfig * net);
#ifndef __STANDALONE__
int nfsGetSetup(char ** hostptr, char ** dirptr);
int kickstartNetwork(char ** devicePtr, struct networkDeviceConfig * netDev, 
		     char * bootProto, int flags);
void initLoopback(void);
#endif

#endif