VSF Documented
|
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "vsf.h"
#include "../../../include/unistd.h"
#include "../../../include/errno.h"
#include "../../../include/sys/socket.h"
#include "../../../include/sys/time.h"
#include "../../../include/net/if.h"
#include "../../../include/netinet/in.h"
#include "../../../include/netinet/tcp.h"
#include "../../../include/arpa/inet.h"
#include "../../../include/ifaddrs.h"
#include "../../../include/poll.h"
#include "../../../include/fcntl.h"
#include "../../../include/linux/netlink.h"
#include "../../../include/linux/rtnetlink.h"
#include "../../../include/linux/if_addr.h"
#include "../vsf_linux_socket.h"
#include "lwip/tcpip.h"
#include "lwip/api.h"
#include "lwip/ip.h"
#include "lwip/tcp.h"
#include "lwip/udp.h"
#include "lwip/dns.h"
#include "lwip/mld6.h"
#include "lwip/igmp.h"
Data Structures | |
struct | vsf_linux_socket_group_t |
struct | vsf_linux_socket_inet_priv_t |
union | vsf_linux_sockaddr_t |
struct | vsf_linux_socket_netlink_msg_t |
struct | vsf_linux_socket_netlink_priv_t |
struct | gethostbyname_param_t |
struct | addrinfo |
Macros | |
#define | __VSF_LINUX_FS_CLASS_INHERIT__ |
#define | __VSF_LINUX_SOCKET_CLASS_INHERIT__ |
#define | __VSF_LINUX_CLASS_INHERIT__ |
#define | __VSF_FS_CLASS_INHERIT__ |
#define | udp_is_flag_set(__pcb, __flag) (((__pcb)->flags & (__flag)) != 0) |
#define | netif_get_index(netif) ((u8_t)((netif)->num + 1)) |
#define | LWIP_ASSERT_CORE_LOCKED() |
Typedefs | |
typedef struct vsf_linux_socket_group_t | vsf_linux_socket_group_t |
typedef struct vsf_linux_socket_inet_priv_t | vsf_linux_socket_inet_priv_t |
typedef union vsf_linux_sockaddr_t | vsf_linux_sockaddr_t |
typedef struct vsf_linux_socket_netlink_msg_t | vsf_linux_socket_netlink_msg_t |
typedef struct vsf_linux_socket_netlink_priv_t | vsf_linux_socket_netlink_priv_t |
typedef struct gethostbyname_param_t | gethostbyname_param_t |
Functions | |
int | __vsf_linux_socket_inet_fcntl (vsf_linux_fd_t *sfd, int cmd, uintptr_t arg) |
struct pbuf * | pbuf_free_header (struct pbuf *q, u16_t size) |
struct netif * | netif_get_by_index (u8_t idx) |
err_t | netconn_recv_udp_raw_netbuf_flags (struct netconn *conn, struct netbuf **new_buf, u8_t apiflags) |
err_t | netconn_recv_tcp_pbuf_flags (struct netconn *conn, struct pbuf **new_buf, u8_t apiflags) |
err_t | netconn_prepare_delete (struct netconn *conn) |
int | lwip_inet_pton (int af, const char *src, void *dst) |
const char * | lwip_inet_ntop (int af, const void *src, char *dst, socklen_t size) |
ssize_t | sendto (int sockfd, const void *buffer, size_t size, int flags, const struct sockaddr *dst_addr, socklen_t addrlen) |
ssize_t | recvfrom (int sockfd, void *buffer, size_t size, int flags, struct sockaddr *src_addr, socklen_t *addrlen) |
int | vsf_linux_bind_netif (void *netif) |
int | vsf_linux_unbind_netif (void *netif) |
struct netif * | __vsf_linux_ip4_route (const ip4_addr_t *src, const ip4_addr_t *dest) |
struct netif * | __vsf_linux_ip6_route (const ip6_addr_t *src, const ip6_addr_t *dest) |
int | __vsf_linux_ip_main (int argc, char **argv) |
int | __vsf_linux_route_main (int argc, char **argv) |
int | __vsf_linux_ifconfig_main (int argc, char **argv) |
int | getifaddrs (struct ifaddrs **ifaddrs) |
void | freeifaddrs (struct ifaddrs *ifaddrs) |
int | __inet_gethostbyname (const char *name, in_addr_t *addr) |
struct hostent * | lwip_gethostbyname (const char *name) |
void | lwip_freeaddrinfo (struct addrinfo *ai) |
int | lwip_getaddrinfo (const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res) |
int | getaddrinfo (const char *name, const char *service, const struct addrinfo *hints, struct addrinfo **pai) |
struct hostent * | gethostbyname (const char *name) |
void | freeaddrinfo (struct addrinfo *ai) |
int | inet_pton (int af, const char *src, void *dst) |
const char * | inet_ntop (int af, const void *src, char *dst, socklen_t size) |
int | __vsf_linux_socket_inet_procfs_bind (void) |
Variables | |
const vsf_linux_socket_op_t | vsf_linux_socket_inet_op |
const vsf_linux_socket_op_t | vsf_linux_socket_netlink_op |
#define __VSF_LINUX_FS_CLASS_INHERIT__ |
#define __VSF_LINUX_SOCKET_CLASS_INHERIT__ |
#define __VSF_LINUX_CLASS_INHERIT__ |
#define __VSF_FS_CLASS_INHERIT__ |
#define udp_is_flag_set | ( | __pcb, | |
__flag | |||
) | (((__pcb)->flags & (__flag)) != 0) |
#define netif_get_index | ( | netif | ) | ((u8_t)((netif)->num + 1)) |
#define LWIP_ASSERT_CORE_LOCKED | ( | ) |
typedef struct vsf_linux_socket_group_t vsf_linux_socket_group_t |
typedef struct vsf_linux_socket_inet_priv_t vsf_linux_socket_inet_priv_t |
typedef union vsf_linux_sockaddr_t vsf_linux_sockaddr_t |
typedef struct vsf_linux_socket_netlink_msg_t vsf_linux_socket_netlink_msg_t |
typedef struct vsf_linux_socket_netlink_priv_t vsf_linux_socket_netlink_priv_t |
typedef struct gethostbyname_param_t gethostbyname_param_t |
int __vsf_linux_socket_inet_fcntl | ( | vsf_linux_fd_t * | sfd, |
int | cmd, | ||
uintptr_t | arg | ||
) |
|
extern |
struct netif * netif_get_by_index | ( | u8_t | idx | ) |
err_t netconn_recv_udp_raw_netbuf_flags | ( | struct netconn * | conn, |
struct netbuf ** | new_buf, | ||
u8_t | apiflags | ||
) |
err_t netconn_recv_tcp_pbuf_flags | ( | struct netconn * | conn, |
struct pbuf ** | new_buf, | ||
u8_t | apiflags | ||
) |
err_t netconn_prepare_delete | ( | struct netconn * | conn | ) |
int lwip_inet_pton | ( | int | af, |
const char * | src, | ||
void * | dst | ||
) |
const char * lwip_inet_ntop | ( | int | af, |
const void * | src, | ||
char * | dst, | ||
socklen_t | size | ||
) |
ssize_t sendto | ( | int | sockfd, |
const void * | buffer, | ||
size_t | size, | ||
int | flags, | ||
const struct sockaddr * | dst_addr, | ||
socklen_t | addrlen | ||
) |
ssize_t recvfrom | ( | int | sockfd, |
void * | buffer, | ||
size_t | size, | ||
int | flags, | ||
struct sockaddr * | src_addr, | ||
socklen_t * | addrlen | ||
) |
int vsf_linux_bind_netif | ( | void * | netif | ) |
int vsf_linux_unbind_netif | ( | void * | netif | ) |
struct netif * __vsf_linux_ip4_route | ( | const ip4_addr_t * | src, |
const ip4_addr_t * | dest | ||
) |
struct netif * __vsf_linux_ip6_route | ( | const ip6_addr_t * | src, |
const ip6_addr_t * | dest | ||
) |
int __vsf_linux_ip_main | ( | int | argc, |
char ** | argv | ||
) |
int __vsf_linux_route_main | ( | int | argc, |
char ** | argv | ||
) |
int __vsf_linux_ifconfig_main | ( | int | argc, |
char ** | argv | ||
) |
int getifaddrs | ( | struct ifaddrs ** | ifaddrs | ) |
void freeifaddrs | ( | struct ifaddrs * | ifaddrs | ) |
int __inet_gethostbyname | ( | const char * | name, |
in_addr_t * | addr | ||
) |
|
extern |
|
extern |
|
extern |
int getaddrinfo | ( | const char * | name, |
const char * | service, | ||
const struct addrinfo * | hints, | ||
struct addrinfo ** | pai | ||
) |
struct hostent * gethostbyname | ( | const char * | name | ) |
void freeaddrinfo | ( | struct addrinfo * | ai | ) |
int inet_pton | ( | int | af, |
const char * | src, | ||
void * | dst | ||
) |
const char * inet_ntop | ( | int | af, |
const void * | src, | ||
char * | dst, | ||
socklen_t | size | ||
) |
int __vsf_linux_socket_inet_procfs_bind | ( | void | ) |
const vsf_linux_socket_op_t vsf_linux_socket_inet_op |
const vsf_linux_socket_op_t vsf_linux_socket_netlink_op |