#include "config.h"#include <sys/param.h>#include <sys/types.h>#include <sys/socket.h>#include <net/if.h>#include <net/if_dl.h>#include <net/route.h>#include <netinet/in.h>#include <netinet/if_ether.h>#include <assert.h>#include <errno.h>#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "dnet.h"Go to the source code of this file.
Functions | |
| arp_t * | arp_open (void) |
| static int | arp_msg (arp_t *arp, struct arpmsg *msg) |
| int | arp_add (arp_t *arp, const struct arp_entry *entry) |
| int | arp_delete (arp_t *arp, const struct arp_entry *entry) |
| int | arp_get (arp_t *arp, struct arp_entry *entry) |
| int | arp_loop (arp_t *arp, arp_handler callback, void *arg) |
| arp_t * | arp_close (arp_t *arp) |
|
||||||||||||
|
Definition at line 110 of file arp-bsd.c. References addr_ntos(), addr::addr_type, ADDR_TYPE_ETH, ADDR_TYPE_IP, arpmsg::addrs, arp_entry::arp_ha, arp_msg(), arp_entry::arp_pa, errno, index, memset, and arpmsg::rtm. |
|
|
Definition at line 315 of file arp-bsd.c. References arp_handle::fd, and NULL. |
|
||||||||||||
|
Definition at line 176 of file arp-bsd.c. References addr_ntos(), addr::addr_type, ADDR_TYPE_IP, arpmsg::addrs, arp_msg(), arp_entry::arp_pa, errno, memset, and arpmsg::rtm. |
|
||||||||||||
|
Definition at line 222 of file arp-bsd.c. References addr_ntos(), addr_ston(), addr::addr_type, ADDR_TYPE_IP, arpmsg::addrs, arp_entry::arp_ha, arp_msg(), arp_entry::arp_pa, errno, memset, and arpmsg::rtm. |
|
||||||||||||||||
|
Definition at line 307 of file arp-bsd.c. References errno. |
|
||||||||||||
|
Definition at line 65 of file arp-bsd.c. References errno, memcpy, and arpmsg::rtm. Referenced by arp_add(), arp_delete(), and arp_get(). |
|
|
Definition at line 49 of file arp-bsd.c. References arp_close(), and NULL. |
1.4.2