VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
vsf_linux_socket_inet_lwip.c File Reference
#include "shell/sys/linux/vsf_linux_cfg.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
 

Macros

#define __VSF_LINUX_FS_CLASS_INHERIT__
 
#define __VSF_LINUX_SOCKET_CLASS_INHERIT__
 
#define __VSF_LINUX_CLASS_INHERIT__
 
#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)
 
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 getifaddrs (struct ifaddrs **ifaddrs)
 
void freeifaddrs (struct ifaddrs *ifaddrs)
 
int __inet_gethostbyname (const char *name, in_addr_t *addr)
 

Variables

const vsf_linux_socket_op_t vsf_linux_socket_inet_op
 
const vsf_linux_socket_op_t vsf_linux_socket_netlink_op
 

Macro Definition Documentation

◆ __VSF_LINUX_FS_CLASS_INHERIT__

#define __VSF_LINUX_FS_CLASS_INHERIT__

◆ __VSF_LINUX_SOCKET_CLASS_INHERIT__

#define __VSF_LINUX_SOCKET_CLASS_INHERIT__

◆ __VSF_LINUX_CLASS_INHERIT__

#define __VSF_LINUX_CLASS_INHERIT__

◆ netif_get_index

#define netif_get_index (   netif)    ((u8_t)((netif)->num + 1))

◆ LWIP_ASSERT_CORE_LOCKED

#define LWIP_ASSERT_CORE_LOCKED ( )

Typedef Documentation

◆ vsf_linux_socket_group_t

◆ vsf_linux_socket_inet_priv_t

◆ vsf_linux_sockaddr_t

◆ vsf_linux_socket_netlink_msg_t

◆ vsf_linux_socket_netlink_priv_t

◆ gethostbyname_param_t

Function Documentation

◆ __vsf_linux_socket_inet_fcntl()

int __vsf_linux_socket_inet_fcntl ( vsf_linux_fd_t sfd,
int  cmd,
uintptr_t  arg 
)

◆ pbuf_free_header()

struct pbuf * pbuf_free_header ( struct pbuf *  q,
u16_t  size 
)
extern

◆ netif_get_by_index()

struct netif * netif_get_by_index ( u8_t  idx)

◆ netconn_recv_udp_raw_netbuf_flags()

err_t netconn_recv_udp_raw_netbuf_flags ( struct netconn *  conn,
struct netbuf **  new_buf,
u8_t  apiflags 
)

◆ netconn_recv_tcp_pbuf_flags()

err_t netconn_recv_tcp_pbuf_flags ( struct netconn *  conn,
struct pbuf **  new_buf,
u8_t  apiflags 
)

◆ netconn_prepare_delete()

err_t netconn_prepare_delete ( struct netconn *  conn)

◆ sendto()

ssize_t sendto ( int  sockfd,
const void *  buffer,
size_t  size,
int  flags,
const struct sockaddr dst_addr,
socklen_t  addrlen 
)

◆ recvfrom()

ssize_t recvfrom ( int  sockfd,
void *  buffer,
size_t  size,
int  flags,
struct sockaddr src_addr,
socklen_t addrlen 
)

◆ getifaddrs()

int getifaddrs ( struct ifaddrs **  ifaddrs)

◆ freeifaddrs()

void freeifaddrs ( struct ifaddrs ifaddrs)

◆ __inet_gethostbyname()

int __inet_gethostbyname ( const char *  name,
in_addr_t addr 
)

Variable Documentation

◆ vsf_linux_socket_inet_op

const vsf_linux_socket_op_t vsf_linux_socket_inet_op
Initial value:
= {
.fdop = {
.priv_size = sizeof(vsf_linux_socket_inet_priv_t),
.fn_fcntl = __vsf_linux_lwip_socket_inet_fcntl,
.fn_read = __vsf_linux_socket_inet_read,
.fn_write = __vsf_linux_socket_inet_write,
.fn_close = __vsf_linux_socket_inet_close,
},
.fn_init = __vsf_linux_socket_inet_init,
.fn_fini = __vsf_linux_socket_inet_fini,
.fn_connect = __vsf_linux_socket_inet_connect,
.fn_listen = __vsf_linux_socket_inet_listen,
.fn_accept = __vsf_linux_socket_inet_accept,
.fn_bind = __vsf_linux_socket_inet_bind,
.fn_getsockopt = __vsf_linux_socket_inet_getsockopt,
.fn_setsockopt = __vsf_linux_socket_inet_setsockopt,
.fn_getpeername = __vsf_linux_socket_inet_getpeername,
.fn_getsockname = __vsf_linux_socket_inet_getsockname,
}
Definition vsf_linux_socket_inet_lwip.c:147

◆ vsf_linux_socket_netlink_op

const vsf_linux_socket_op_t vsf_linux_socket_netlink_op
Initial value:
= {
.fdop = {
.priv_size = sizeof(vsf_linux_socket_netlink_priv_t),
.fn_read = __vsf_linux_socket_netlink_read,
},
.fn_init = __vsf_linux_socket_netlink_init,
.fn_fini = __vsf_linux_socket_netlink_fini,
.fn_bind = __vsf_linux_socket_netlink_bind,
}