#include "utils/includes.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <net/if_arp.h>
#include "utils/common.h"
#include "linux_ioctl.h"
Go to the source code of this file.
Defines | |
#define | SIOCBRADDBR 0x89a0 |
#define | SIOCBRADDIF 0x89a2 |
#define | SIOCBRDELBR 0x89a1 |
#define | SIOCBRDELIF 0x89a3 |
Functions | |
int | linux_br_add (int sock, const char *brname) |
int | linux_br_add_if (int sock, const char *brname, const char *ifname) |
int | linux_br_del (int sock, const char *brname) |
int | linux_br_del_if (int sock, const char *brname, const char *ifname) |
int | linux_br_get (char *brname, const char *ifname) |
int | linux_get_ifhwaddr (int sock, const char *ifname, u8 *addr) |
int | linux_set_iface_flags (int sock, const char *ifname, int dev_up) |
int | linux_set_ifhwaddr (int sock, const char *ifname, const u8 *addr) |
#define SIOCBRADDBR 0x89a0 |
Definition at line 103 of file linux_ioctl.c.
#define SIOCBRADDIF 0x89a2 |
Definition at line 109 of file linux_ioctl.c.
#define SIOCBRDELBR 0x89a1 |
Definition at line 106 of file linux_ioctl.c.
#define SIOCBRDELIF 0x89a3 |
Definition at line 112 of file linux_ioctl.c.
int linux_br_add | ( | int | sock, |
const char * | brname | ||
) |
Definition at line 116 of file linux_ioctl.c.
int linux_br_add_if | ( | int | sock, |
const char * | brname, | ||
const char * | ifname | ||
) |
Definition at line 140 of file linux_ioctl.c.
int linux_br_del | ( | int | sock, |
const char * | brname | ||
) |
Definition at line 128 of file linux_ioctl.c.
int linux_br_del_if | ( | int | sock, |
const char * | brname, | ||
const char * | ifname | ||
) |
Definition at line 162 of file linux_ioctl.c.
int linux_br_get | ( | char * | brname, |
const char * | ifname | ||
) |
Definition at line 184 of file linux_ioctl.c.
int linux_get_ifhwaddr | ( | int | sock, |
const char * | ifname, | ||
u8 * | addr | ||
) |
Definition at line 60 of file linux_ioctl.c.
int linux_set_iface_flags | ( | int | sock, |
const char * | ifname, | ||
int | dev_up | ||
) |
Definition at line 24 of file linux_ioctl.c.
int linux_set_ifhwaddr | ( | int | sock, |
const char * | ifname, | ||
const u8 * | addr | ||
) |
Definition at line 83 of file linux_ioctl.c.