Watt-32 tcp/ip  2.2 dev-rel.10
Functions | Variables
ioctl.c File Reference

Go to the source code of this file.

Functions

static int file_ioctrl (Socket *socket, long cmd, char *argp)
 
static int iface_ioctrl (Socket *socket, long cmd, char *argp)
 
static int arp_ioctrl (Socket *socket, long cmd, char *argp)
 
static int waterm_ioctrl (Socket *socket, long cmd, char *argp)
 
static const char * get_ioctl_cmd (long cmd)
 
int W32_CALL ioctlsocket (int s, long cmd, char *argp)
 
void __get_ifname (char *if_name)
 
void __set_ifname (const char *if_name)
 
static struct ifneteth_ifnet (void)
 
static struct ifnettok_ifnet (void)
 
void __assert_fail (unsigned line)
 
const char * eth_addr_string (struct ether_addr *eth)
 
const char * if_flags_string (unsigned short flags)
 
int main (void)
 

Variables

static char eth_ifname [IFNAMSIZ] = "eth0"
 
static char arc_ifname [IFNAMSIZ] = "arch0"
 
static char tok_ifname [IFNAMSIZ] = "tr0"
 
static char fddi_ifname [IFNAMSIZ] = "fddi0"
 
static char ppp_ifname [IFNAMSIZ] = "ppp0"
 
static char slp_ifname [IFNAMSIZ] = "slp0"
 
static const struct search_list commands []
 

Detailed Description

BSD ioctlsocket().

Definition in file ioctl.c.

Function Documentation

static struct ifnet* eth_ifnet ( void  )
static
Todo:
fill info

Definition at line 232 of file ioctl.c.

static int iface_ioctrl ( Socket socket,
long  cmd,
char *  argp 
)
static
Todo:
Get point-to-point address
Todo:
Set point-to-point address
Todo:
Set interface metric
Todo:
Handle deleting interface address
Todo:
Handle add/change interface alias

Definition at line 252 of file ioctl.c.

References _eth_addr, _eth_is_init, _eth_set_addr(), _pkt_rxmode, _pktdevclass, my_ip_addr, RXMODE_MULTICAST2, RXMODE_PROMISCOUS, and sin_mask.

static struct ifnet* tok_ifnet ( void  )
static
Todo:
fill info

Definition at line 240 of file ioctl.c.

static int waterm_ioctrl ( Socket socket,
long  cmd,
char *  argp 
)
static
Todo:
set high watermark
Todo:
get high watermark
Todo:
set low watermark
Todo:
get low watermark
Todo:
OOB data available?

Definition at line 497 of file ioctl.c.