| Rev | Line | |
|---|
| [9] | 1 | /*
|
|---|
| 2 | arp.h
|
|---|
| 3 |
|
|---|
| 4 | Copyright 1995 Philip Homburg
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #ifndef ARP_H
|
|---|
| 8 | #define ARP_H
|
|---|
| 9 |
|
|---|
| 10 | #define ARP_ETHERNET 1
|
|---|
| 11 |
|
|---|
| 12 | #define ARP_REQUEST 1
|
|---|
| 13 | #define ARP_REPLY 2
|
|---|
| 14 |
|
|---|
| 15 | /* Prototypes */
|
|---|
| 16 | typedef void (*arp_func_t) ARGS(( int fd, ipaddr_t ipaddr,
|
|---|
| 17 | ether_addr_t *ethaddr ));
|
|---|
| 18 |
|
|---|
| 19 | void arp_prep ARGS(( void ));
|
|---|
| 20 | void arp_init ARGS(( void ));
|
|---|
| 21 | void arp_set_ipaddr ARGS(( int eth_port, ipaddr_t ipaddr ));
|
|---|
| 22 | int arp_set_cb ARGS(( int eth_port, int ip_port, arp_func_t arp_func ));
|
|---|
| 23 | int arp_ip_eth ARGS(( int eth_port, ipaddr_t ipaddr, ether_addr_t *ethaddr ));
|
|---|
| 24 |
|
|---|
| 25 | int arp_ioctl ARGS(( int eth_port, int fd, ioreq_t req,
|
|---|
| 26 | get_userdata_t get_userdata, put_userdata_t put_userdata ));
|
|---|
| 27 |
|
|---|
| 28 | #endif /* ARP_H */
|
|---|
| 29 |
|
|---|
| 30 | /*
|
|---|
| 31 | * $PchId: arp.h,v 1.7 2001/04/19 18:58:17 philip Exp $
|
|---|
| 32 | */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.