Searched refs:socket (Results 1 - 25 of 141) sorted by relevance

123456

/vpp/extras/libmemif/test/
H A Dunit_test.c49 Suite *mains, *socket; local
53 socket = socket_suite ();
57 srunner_add_suite (sr, socket);
/vpp/src/scripts/vnet/uri/
H A Ddummy_app.py3 import socket namespace
38 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
39 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
48 sock = socket.socket(socket
[all...]
/vpp/src/vpp-api/python/vpp_papi/
H A Dvpp_transport_socket.py4 import socket namespace
40 self.socket = None
45 rlist, _, _ = select.select([self.socket,
47 except socket.error:
59 elif r == self.socket:
65 except socket.error:
84 1, "PAPI socket transport connect: Need to disconnect first.")
86 # Create a UDS socket
87 self.socket = socket
[all...]
/vpp/src/plugins/igmp/test/
H A Dvpp_igmp.py3 import socket namespace
36 self.gaddr_p = socket.inet_pton(socket.AF_INET, gaddr)
41 ss = socket.inet_pton(socket.AF_INET, s)
/vpp/src/vlib/unix/
H A Dmc_socket.c2 * mc_socket.c: socket based multicast for vlib mc
82 int socket, struct sockaddr_in *tx_addr, u32 buffer_index)
104 while ((n_bytes_tx = sendmsg (socket, &h, /* flags */ 0)) != n_bytes
135 error = sendmsg_helper (msm, ms->socket, &ms->tx_addr, buffer_index);
161 int socket,
209 n_bytes_left = recvmsg (socket, &h, 0);
255 error = recvmsg_helper (msm, ms->socket, /* rx_addr */ 0, &bi, /* drop_message */
280 error = recvmsg_helper (msm, ms_to_relay->socket, /* rx_addr */ 0, &bi,
291 sendmsg_helper (msm, ms_from_relay->socket, &ms_from_relay->tx_addr,
309 error = recvmsg_helper (msm, ms->socket, /* rx_add
81 sendmsg_helper(mc_socket_main_t * msm, int socket, struct sockaddr_in *tx_addr, u32 buffer_index) argument
160 recvmsg_helper(mc_socket_main_t * msm, int socket, struct sockaddr_in *rx_addr, u32 * buffer_index, u32 drop_message) argument
[all...]
H A Dmc_socket.h2 * mc_socket.h: socket based multicast for vlib mc
26 int socket; member in struct:__anon852
30 /* TCP catchup socket */
33 int socket; member in struct:__anon853
53 /* TCP catchup server socket */
H A Dunix.h44 #include <vppinfra/socket.h>
65 /* CLI listen socket. */
/vpp/src/vpp-api/python/vpp_papi/tests/
H A Dtest_vpp_format.py16 import socket namespace
74 # PY2: raises socket.error
77 socket.error,
119 # PY2: raises socket.error
121 with self.assertRaises((socket.error, OSError)):
125 # PY2: raises socket.error
127 with self.assertRaises((socket.error, OSError)):
/vpp/test/
H A Dtemplate_classifier.py4 import socket namespace
5 from socket import AF_INET, AF_INET6
193 src_ip = binascii.hexlify(socket.inet_aton(src_ip)).decode('ascii')
195 dst_ip = binascii.hexlify(socket.inet_aton(dst_ip)).decode('ascii')
215 src_ip = binascii.hexlify(socket.inet_pton(
216 socket.AF_INET6, src_ip))
218 src_ip = socket.inet_pton(socket.AF_INET6, src_ip).hex()
222 dst_ip = binascii.hexlify(socket.inet_pton(
223 socket
[all...]
H A Dtest_classifier_ip6.py4 import socket namespace
22 cls.af = socket.AF_INET6
132 cls.af = socket.AF_INET6
151 self.build_ip6_match(nh=socket.IPPROTO_UDP))
183 self.build_ip6_match(nh=socket.IPPROTO_UDP, src_port=sport))
216 self.build_ip6_match(nh=socket.IPPROTO_UDP, dst_port=dport))
251 self.build_ip6_match(nh=socket.IPPROTO_UDP, src_port=sport,
272 cls.af = socket.AF_INET6
292 self.build_ip6_match(nh=socket.IPPROTO_TCP))
325 self.build_ip6_match(nh=socket
[all...]
H A Dutil.py6 import socket namespace
7 from socket import AF_INET6
84 return socket.inet_ntop(socket.AF_INET6,
85 socket.inet_pton(socket.AF_INET6, ip6))
156 return socket.inet_pton(socket.AF_INET, self._ip4)
166 return socket.inet_pton(socket
[all...]
H A Dtest_ipsec_ah.py1 import socket namespace
148 socket.IPPROTO_AH)
153 socket.IPPROTO_AH,
231 socket.IPPROTO_AH))
235 socket.IPPROTO_AH,
382 self.verify_tun_66(self.params[socket.AF_INET6], count=17)
383 self.verify_tun_44(self.params[socket.AF_INET], count=17)
H A Dtest_classifier.py4 import socket namespace
152 self.build_ip_match(proto=socket.IPPROTO_UDP))
186 self.build_ip_match(proto=socket.IPPROTO_UDP, src_port=sport))
220 self.build_ip_match(proto=socket.IPPROTO_UDP, dst_port=dport))
256 self.build_ip_match(proto=socket.IPPROTO_UDP, src_port=sport,
301 self.build_ip_match(proto=socket.IPPROTO_TCP))
335 self.build_ip_match(proto=socket.IPPROTO_TCP, src_port=sport))
369 self.build_ip_match(proto=socket.IPPROTO_TCP, dst_port=dport))
405 self.build_ip_match(proto=socket.IPPROTO_TCP, src_port=sport,
/vpp/src/plugins/pppoe/test/
H A Dvpp_pppoe_interface.py3 import socket namespace
/vpp/src/plugins/hs_apps/vcl/
H A Dvcl_test.h252 vcl_test_session_buf_alloc (vcl_test_session_t * socket) argument
254 socket->rxbuf_size = socket->cfg.rxbuf_size;
255 socket->txbuf_size = socket->cfg.txbuf_size;
256 vcl_test_buf_alloc (&socket->cfg, 0 /* is_rxbuf */ ,
257 (uint8_t **) & socket->txbuf, &socket->txbuf_size);
258 vcl_test_buf_alloc (&socket->cfg, 1 /* is_rxbuf */ ,
259 (uint8_t **) & socket
[all...]
H A Dsock_test_client.c21 #include <sys/socket.h>
45 sock_test_cfg_sync (vcl_test_session_t * socket) argument
49 vcl_test_cfg_t *rl_cfg = (vcl_test_cfg_t *) socket->rxbuf;
52 if (socket->cfg.verbose)
53 vcl_test_cfg_dump (&socket->cfg, 1 /* is_client */ );
56 if (socket->cfg.verbose)
58 printf ("CLIENT (fd %d): Sending config sent to server.\n", socket->fd);
61 tx_bytes = sock_test_write (socket->fd, (uint8_t *) & ctrl->cfg,
66 socket->fd, tx_bytes);
70 rx_bytes = sock_test_read (socket
[all...]
/vpp/extras/apps/src/
H A Dsocket_echo_client.c18 #include <sys/socket.h>
81 sockfd = socket (AF_INET, SOCK_STREAM, 0);
84 clib_unix_error ("socket");
H A Dsocket_echo_server.c18 #include <sys/socket.h>
119 sockfd = socket (AF_INET, SOCK_STREAM, 0);
122 clib_unix_error ("socket");
/vpp/src/vpp/stats/
H A Dstat_segment.h20 #include <vppinfra/socket.h>
99 clib_socket_t *socket; member in struct:__anon3
/vpp/src/vppinfra/
H A Dtest_socket.c39 #include <vppinfra/socket.h>
H A Dsocket.h42 #include <sys/socket.h>
54 /* Config string for socket HOST:PORT or just HOST. */
70 /* Receive buffer. Holds data read from socket. */
73 /* Peer socket we are connected to. */
91 /* socket config format is host:port.
94 clib_error_t *clib_socket_init (clib_socket_t * socket);
/vpp/src/plugins/lb/test/
H A Dtest_lb.py1 import socket namespace
149 socket.inet_pton(socket.AF_INET6, ip.dst),
150 socket.inet_pton(socket.AF_INET6, "2002::%u" % asid)
188 socket.inet_pton(socket.AF_INET6, ip.dst),
189 socket.inet_pton(socket.AF_INET6, "2002::%u" % asid)
/vpp/extras/libmemif/src/
H A Dsocket.c19 #include <sys/socket.h>
33 #include <socket.h>
37 /* sends msg to socket */
74 libmemif_main_t *lm = get_libmemif_main (c->args.socket);
126 libmemif_main_t *lm = get_libmemif_main (c->args.socket);
168 libmemif_main_t *lm = get_libmemif_main (c->args.socket);
205 libmemif_main_t *lm = get_libmemif_main (c->args.socket);
252 libmemif_main_t *lm = get_libmemif_main (c->args.socket);
287 libmemif_main_t *lm = get_libmemif_main (c->args.socket);
486 libmemif_main_t *lm = get_libmemif_main (c->args.socket);
[all...]
/vpp/src/vcl/
H A Dldp_glibc_socket.h20 #include <sys/socket.h>
113 * glibc APIs from <sys/socket.h>
116 /* Create a new socket of type TYPE in domain DOMAIN, using
118 Returns a file descriptor for the new socket, or -1 for errors. */
119 extern int __THROW socket (int __domain, int __type, int __protocol);
128 /* Give the socket FD the local address ADDR (which is LEN bytes long). */
136 /* Open a connection on socket FD to peer at ADDR (which LEN bytes long).
137 For connectionless socket types, just set the default address to send to
145 /* Put the address of the peer connected to socket FD into *ADDR
150 /* Send N bytes of BUF to socket F
[all...]
/vpp/src/plugins/map/examples/
H A Dhealth_check.c52 /* Request a socket descriptor sd. */
53 if ((sd = socket (AF_INET6, SOCK_RAW, IPPROTO_IPIP)) < 0) {
54 perror ("Failed to get socket descriptor ");
61 /* Bind socket to interface of this node. */

Completed in 16 milliseconds

123456