Last change
on this file since 1399 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
File size:
630 bytes
|
Rev | Line | |
---|
[821] | 1 | /* leases.h */
|
---|
| 2 | #ifndef _LEASES_H
|
---|
| 3 | #define _LEASES_H
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | struct dhcpOfferedAddr {
|
---|
| 7 | uint8_t chaddr[16];
|
---|
| 8 | uint32_t yiaddr; /* network order */
|
---|
| 9 | uint32_t expires; /* host order */
|
---|
| 10 | };
|
---|
| 11 |
|
---|
| 12 | extern uint8_t blank_chaddr[];
|
---|
| 13 |
|
---|
| 14 | void clear_lease(uint8_t *chaddr, uint32_t yiaddr);
|
---|
| 15 | struct dhcpOfferedAddr *add_lease(uint8_t *chaddr, uint32_t yiaddr, unsigned long lease);
|
---|
| 16 | int lease_expired(struct dhcpOfferedAddr *lease);
|
---|
| 17 | struct dhcpOfferedAddr *oldest_expired_lease(void);
|
---|
| 18 | struct dhcpOfferedAddr *find_lease_by_chaddr(uint8_t *chaddr);
|
---|
| 19 | struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr);
|
---|
| 20 | uint32_t find_address(int check_expired);
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.