22 lines
444 B
C++
22 lines
444 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace sock {
|
|
|
|
int create(int port);
|
|
|
|
void bind_interface(int sock, int ifa_index);
|
|
|
|
void send(int sock,
|
|
int interface_index,
|
|
void * buf,
|
|
int length,
|
|
uint8_t const * eth_destination_address);
|
|
|
|
int interface_index(int sock, char const * interface_name);
|
|
|
|
void interface_address(int sock, char const * interface_name, uint8_t * hardware_address);
|
|
|
|
}
|