#include <sys/ioctl.h>
#include <sys/signal.h>
#include <sys/time.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/ether.h>
#include <netpacket/packet.h>
#include "arping.h"
Include dependency graph for arping.c:
Go to the source code of this file.
Functions | |
static int32_t | send_pack (int32_t sock, struct in_addr *src_addr, struct in_addr *dst_addr, struct sockaddr_ll *ME, struct sockaddr_ll *HE) |
int32_t | recv_pack (uint8_t *buf, int32_t len, struct sockaddr_ll *FROM, uint8_t *mac) |
int32_t | arping (struct in_addr _src, struct in_addr _dst, uint8_t *mac) |
Variables | |
static struct in_addr | src |
static struct in_addr | dst |
static struct sockaddr_ll | me |
static struct sockaddr_ll | he |
static int32_t | s |
int32_t arping | ( | struct in_addr | _src, | |
struct in_addr | _dst, | |||
uint8_t * | mac | |||
) |
Definition at line 126 of file arping.c.
References device, dst, he, me, memset(), recv_pack(), s, send_pack(), src, stderr, time, and timeout.
Referenced by udp_init4().
int32_t recv_pack | ( | uint8_t * | buf, | |
int32_t | len, | |||
struct sockaddr_ll * | FROM, | |||
uint8_t * | mac | |||
) |
static int32_t send_pack | ( | int32_t | sock, | |
struct in_addr * | src_addr, | |||
struct in_addr * | dst_addr, | |||
struct sockaddr_ll * | ME, | |||
struct sockaddr_ll * | HE | |||
) | [static] |
struct in_addr dst [static] |
Definition at line 40 of file arping.c.
Referenced by arping(), copy_local_string(), exif_read(), Handler(), PHP_FUNCTION(), recv_pack(), snd_config_hooks_call(), and write_sdp().
struct sockaddr_ll he [static] |
struct sockaddr_ll me [static] |
int32_t s [static] |
Definition at line 43 of file arping.c.
Referenced by _Request::_Request(), _snd_config_copy(), _snd_config_expand(), Socket::accept(), add_char_local_string(), arping(), close_session(), copy_local_string(), encode_time(), errorMsgXML(), exif_getutc(), F_format(), find_string(), framePointersXML(), FREE_FUNC(), free_local_string(), get_session(), handle_PAUSE(), handle_PLAY(), handle_TEARDOWN(), http_response_parse_range(), init_local_string(), load(), main(), RTSP_Server::main(), memcpy(), mod_staticfile_patch_connection(), out1x1gif(), parse_value(), RTSP_Server::process(), profileShow(), rtsp_udp_setup(), save(), SETDEFAULTS_FUNC(), signal_recv(), signal_send(), snd_config_hook_load_for_all_cards(), snd_config_walk(), and snd_func_pcm_args_by_class().
struct in_addr src [static] |
Definition at line 39 of file arping.c.
Referenced by arping(), dir_find_tag(), exif_read(), exif_rebuild(), Handler(), image_table8(), putlong_meta(), putlong_meta_irq(), recv_pack(), write_meta(), and write_meta_irq().