summaryrefslogtreecommitdiffstats
path: root/usr/kinit/ipconfig/dhcp_proto.h
blob: 0fba92fb682e8c4e2458e77dba8de78022290c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef IPCONFIG_DHCP_PROTO_H
#define IPCONFIG_DHCP_PROTO_H

/* DHCP message types */
#define DHCPDISCOVER    1
#define DHCPOFFER       2
#define DHCPREQUEST     3
#define DHCPDECLINE     4
#define DHCPACK         5
#define DHCPNAK         6
#define DHCPRELEASE     7
#define DHCPINFORM      8

int dhcp_send_discover(struct netdev *dev);
int dhcp_recv_offer(struct netdev *dev);
int dhcp_send_request(struct netdev *dev);
int dhcp_recv_ack(struct netdev *dev);

#endif /* IPCONFIG_DHCP_PROTO_H */