blob: a7040f137c90275266d2eaf84b9fbc75b14ca391 (
plain)
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
|
#ifndef H_LOADER_NET
#define H_LOADER_NET
#include "pump.h"
#include "../isys/probe.h"
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);
extern char *netServerPrompt;
int nfsGetSetup(char ** hostptr, char ** dirptr);
int kickstartNetwork(char ** devicePtr, struct networkDeviceConfig * netDev,
char * bootProto, int flags);
void initLoopback(void);
int chooseNetworkInterface(struct knownDevices * kd, char ** devNamePtr,
int flags);
#endif
|