aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/wireguard
AgeCommit message (Expand)AuthorFilesLines
2021-05-21bfd: use vnet cryptoKlement Sekera1-0/+4
2021-05-14vlib: pass node runtime to vlib_buffer_enqueue_to_thread()Damjan Marion1-1/+1
2021-05-13tests: move test source to vpp/testDave Wallace1-748/+0
2021-03-20tests: add support for worker awarenessKlement Sekera1-1/+1
2021-02-24wireguard: coverity fixArtem Glazychev1-11/+12
2021-02-15vlib: refactor checksum offload supportMohsin Kazmi1-1/+2
2021-02-11wireguard: testing alternative timer dispatchMohammed Hawari3-3/+10
2021-02-01docs: fix up the markdownAndrew Yourtchenko1-1/+1
2020-12-14misc: move to new pool_foreach macrosDamjan Marion2-7/+7
2020-12-06wireguard: run feature after gsoNathan Skrzypczak1-0/+1
2020-12-01wireguard: return public key in apiNathan Skrzypczak2-2/+9
2020-10-21misc: minimize dependencies on udp.hFlorin Coras2-2/+0
2020-10-20wireguard: reset secret data before freeing itBenoƮt Ganne1-4/+4
2020-10-09wireguard: park the timer processDave Barach5-2/+68
2020-10-07misc: Purge unused pg includesNeale Ranns2-2/+0
2020-09-30wireguard: fix udp-port registrationArtem Glazychev2-3/+10
2020-09-29wireguard: fix license headersArtem Glazychev13-2/+25
2020-09-29wireguard: fix indentsArtem Glazychev1-21/+35
2020-09-29wireguard: readme fixArtem Glazychev1-36/+17
2020-09-24wireguard: coverity fixArtem Glazychev1-1/+1
2020-09-23wireguard: add handoff nodeArtem Glazychev18-448/+889
2020-09-14wireguard: coverity fixesNeale Ranns2-6/+10
2020-09-14wireguard: increase FIB source priorityNeale Ranns1-2/+7
2020-09-12wireguard: Fix for tunnel encapNeale Ranns7-89/+468
2020-09-10wireguard: fix handshake procedureArtem Glazychev2-12/+17
2020-09-09wireguard: initial implementation of wireguard protocolArtem Glazychev31-0/+6216
pan class="o">*close_func) (struct _socket_t * sock); clib_error_t *(*recvmsg_func) (struct _socket_t * s, void *msg, int msglen, int fds[], int num_fds); clib_error_t *(*sendmsg_func) (struct _socket_t * s, void *msg, int msglen, int fds[], int num_fds); uword private_data; } clib_socket_t; /* socket config format is host:port. Unspecified port causes a free one to be chosen starting from IPPORT_USERRESERVED (5000). */ clib_error_t *clib_socket_init (clib_socket_t * socket); clib_error_t *clib_socket_accept (clib_socket_t * server, clib_socket_t * client); always_inline uword clib_socket_is_server (clib_socket_t * sock) { return (sock->flags & CLIB_SOCKET_F_IS_SERVER) != 0; } always_inline uword clib_socket_is_client (clib_socket_t * s) { return !clib_socket_is_server (s); } always_inline uword clib_socket_is_connected (clib_socket_t * sock) { return sock->fd > 0; } always_inline int clib_socket_rx_end_of_file (clib_socket_t * s) { return s->flags & CLIB_SOCKET_F_RX_END_OF_FILE; } always_inline void * clib_socket_tx_add (clib_socket_t * s, int n_bytes) { u8 *result; vec_add2 (s->tx_buffer, result, n_bytes); return result; } always_inline void clib_socket_tx_add_va_formatted (clib_socket_t * s, char *fmt, va_list * va) { s->tx_buffer = va_format (s->tx_buffer, fmt, va); } always_inline clib_error_t * clib_socket_tx (clib_socket_t * s) { return s->write_func (s); } always_inline clib_error_t * clib_socket_rx (clib_socket_t * s, int n_bytes) { return s->read_func (s, n_bytes); } always_inline clib_error_t * clib_socket_sendmsg (clib_socket_t * s, void *msg, int msglen, int fds[], int num_fds) { return s->sendmsg_func (s, msg, msglen, fds, num_fds); } always_inline clib_error_t * clib_socket_recvmsg (clib_socket_t * s, void *msg, int msglen, int fds[], int num_fds) { return s->recvmsg_func (s, msg, msglen, fds, num_fds); } always_inline void clib_socket_free (clib_socket_t * s) { vec_free (s->tx_buffer); vec_free (s->rx_buffer); if (clib_mem_is_heap_object (s->config)) vec_free (s->config); clib_memset (s, 0, sizeof (s[0])); } always_inline clib_error_t * clib_socket_close (clib_socket_t * sock) { clib_error_t *err; err = (*sock->close_func) (sock); return err; } void clib_socket_tx_add_formatted (clib_socket_t * s, char *fmt, ...); #endif /* _clib_included_socket_h */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */