Searched refs:socket (Results 251 - 275 of 2552) sorted by relevance

<<11121314151617181920>>

/freebsd-13-stable/contrib/wpa/src/drivers/
H A Ddriver_wired_common.c38 s = socket(PF_INET, SOCK_DGRAM, 0);
40 wpa_printf(MSG_ERROR, "socket: %s", strerror(errno));
63 s = socket(PF_INET, SOCK_DGRAM, 0);
65 wpa_printf(MSG_ERROR, "socket: %s", strerror(errno));
92 s = socket(PF_INET, SOCK_DGRAM, 0);
94 wpa_printf(MSG_ERROR, "socket: %s", strerror(errno));
196 s = socket(PF_INET, SOCK_DGRAM, 0);
198 wpa_printf(MSG_ERROR, "socket: %s", strerror(errno));
228 common->pf_sock = socket(PF_PACKET, SOCK_DGRAM, 0);
230 wpa_printf(MSG_ERROR, "socket(PF_PACKE
[all...]
/freebsd-13-stable/sys/netinet6/
H A Dsend.c41 #include <sys/socket.h>
65 * The socket used to communicate with the SeND daemon.
67 VNET_DEFINE_STATIC(struct socket *, send_so);
80 send_attach(struct socket *so, int proto, struct thread *td)
225 send_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
232 KASSERT(V_send_so == so, ("%s: socket %p not send socket %p",
264 send_close(struct socket *so)
H A Dip6_mroute.h138 uint64_t mrt6s_upq_sockfull; /* upcalls dropped - socket full */
161 * structure will be passed via an IPv6 raw socket, on which an application
228 struct socket *m6_rsvpd; /* RSVP daemon socket */
275 extern int (*ip6_mrouter_set)(struct socket *so, struct sockopt *sopt);
276 extern int (*ip6_mrouter_get)(struct socket *so, struct sockopt *sopt);
/freebsd-13-stable/tools/regression/sockets/accf_data_attach/
H A Daccf_data_attach.c31 #include <sys/socket.h>
49 * - That no accept filter is attached on a newly created socket.
51 * - That we can't attach an accept filter to a socket that isn't in the
55 * - That we can attach an accept filter to a socket that is in the listen
84 * Step 0. Open socket().
86 lso = socket(PF_INET, SOCK_STREAM, 0);
88 errx(-1, "not ok 1 - socket: %s", strerror(errno));
89 printf("ok 1 - socket\n");
92 * Step 1. After socket(). Should return EINVAL, since no accept
99 errx(-1, "not ok 2 - getsockopt() after socket() succeede
[all...]
/freebsd-13-stable/tools/regression/sockets/zerosend/
H A Dzerosend.c30 #include <sys/socket.h>
88 sock1 = socket(PF_INET, SOCK_DGRAM, 0);
90 err(1, "%s: setup_udp: socket", test);
99 sock2 = socket(PF_INET, SOCK_DGRAM, 0);
101 err(1, "%s: setup_udp: socket", test);
128 * First set up the listen socket.
131 sock1 = socket(PF_INET, SOCK_STREAM, 0);
133 err(1, "%s: setup_tcp: socket", test);
144 sock2 = socket(PF_INET, SOCK_STREAM, 0);
146 err(1, "%s: setup_tcp: socket", tes
[all...]
/freebsd-13-stable/usr.sbin/ppp/
H A Dmp.c37 #include <sys/socket.h>
350 * Now we create our server socket.
356 mp->server.socket.sun_path);
362 log_Printf(LogPHASE, "mp: Listening on %s\n", mp->server.socket.sun_path);
838 mp->server.socket.sun_path);
1056 bundle_SendDatalink(s->send.dl, s->fd, &s->socket);
1107 memset(&s->socket, '\0', sizeof s->socket);
1121 l = snprintf(s->socket.sun_path, sizeof s->socket
[all...]
/freebsd-13-stable/sys/netinet/
H A Draw_ip.c56 #include <sys/socket.h>
117 * The socket used to communicate with the multicast routing daemon.
119 VNET_DEFINE(struct socket *, ip_mrouter);
124 int (*ip_mrouter_set)(struct socket *, struct sockopt *);
125 int (*ip_mrouter_get)(struct socket *, struct sockopt *);
134 int (*ip_rsvp_vif)(struct socket *, struct sockopt *);
135 void (*ip_rsvp_force_done)(struct socket *);
252 /* Check the minimum TTL for socket. */
257 struct socket *so;
334 * jailed raw socket wil
[all...]
H A Dip_divert.c53 #include <sys/socket.h>
94 * on the corresponding divert socket, while the rule number is passed
97 * Packets written to the divert socket carry in sin_addr a
125 static int div_output_inbound(int fmaily, struct socket *so, struct mbuf *m,
127 static int div_output_outbound(int family, struct socket *so, struct mbuf *m);
185 * Divert a packet by passing it up to the divert socket at port 'port'.
195 struct socket *sa;
273 * into the divert socket. Theoretically if the daemon saves
282 /* Put packet on socket queue, if any */
286 /* XXX why does only one socket matc
[all...]
H A Dsctp_peeloff.c51 sctp_can_peel_off(struct socket *head, sctp_assoc_t assoc_id)
89 sctp_do_peeloff(struct socket *head, struct socket *so, sctp_assoc_t assoc_id)
H A Dudp_var.h92 uint64_t udps_noport; /* no socket on port */
94 uint64_t udps_fullsock; /* not delivered, input socket full */
100 /* of no socket on port, arrived as multicast */
177 int udp_ctloutput(struct socket *, struct sockopt *);
183 int udp_shutdown(struct socket *so);
185 int udp_set_kernel_tunneling(struct socket *so, udp_tun_func_t f,
/freebsd-13-stable/contrib/netbsd-tests/net/net/
H A Dt_pktinfo.c35 #include <sys/socket.h>
63 if ((s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
64 ERR("socket");
91 if ((s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
92 ERR("socket");
H A Dt_tcp.c46 #include <sys/socket.h>
83 srvr = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0);
85 FAIL("socket");
107 clnt = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0);
109 FAIL("socket");
/freebsd-13-stable/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.h124 #ifdef socket
125 #undef socket macro
127 #define socket(domain,type,protocol) swrap_socket(domain,type,protocol) macro
/freebsd-13-stable/tools/regression/ethernet/ethermulti/
H A Dethermulti.c31 #include <sys/socket.h>
55 * The test tool exercises IP-level socket options by interrogating the
58 * options on the socket results in packets with the desired IP options in
63 * get_socket() is a wrapper function that returns a socket of the specified
66 * us to test whether the same rights are granted using a socket with a
67 * privileged cached credential vs. a socket with a regular credential.
75 return (socket(PF_INET, type, 0));
91 sock = socket(PF_INET, type, 0);
/freebsd-13-stable/tools/regression/netinet/tcpsockclosebeforeaccept/
H A Dtcpsockclosebeforeaccept.c36 #include <sys/socket.h>
75 listen_fd = socket(PF_INET, SOCK_STREAM, 0);
80 err(-1, "tcp_server: socket");
125 sock = socket(PF_INET, SOCK_STREAM, 0);
130 err(-1, "socket");
/freebsd-13-stable/tools/regression/netinet/tcpstream/
H A Dtcpstream.c37 #include <sys/socket.h>
92 sock = socket(PF_INET, SOCK_STREAM, 0);
94 errx(-1, "socket: %s", strerror(errno));
128 listen_sock = socket(PF_INET, SOCK_STREAM, 0);
130 errx(-1, "socket: %s", strerror(errno));
/freebsd-13-stable/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c30 #include <sys/socket.h>
82 s = socket(PF_INET, SOCK_STREAM, 0);
84 errx(-1, "socket: %s", strerror(errno));
132 * we allocate an fd for the socket.
165 s = socket(PF_INET, SOCK_STREAM, 0);
167 errx(-1, "socket: %s", strerror(errno));
176 /* Reset back to a blocking socket. */
206 * we allocate an fd for the socket.
/freebsd-13-stable/contrib/pjdfstest/tests/chmod/
H A D00.t24 for type in regular dir fifo block char socket symlink; do
58 for type in regular dir fifo block char socket symlink; do
89 for type in regular dir fifo block char socket symlink; do
/freebsd-13-stable/contrib/pjdfstest/tests/link/
H A D00.t21 for type in regular fifo block char socket; do
58 for type in regular fifo block char socket; do
76 for type in regular fifo block char socket; do
/freebsd-13-stable/contrib/pjdfstest/tests/rename/
H A D00.t21 for type in regular fifo block char socket; do
62 for type in regular dir fifo block char socket symlink; do
77 for type in regular dir fifo block char socket symlink; do
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Host/posix/
H A DConnectionFileDescriptorPosix.h46 ConnectionFileDescriptor(Socket *socket);
103 // that creates the socket, binds and listens to
117 void InitializeSocket(Socket *socket);
/freebsd-13-stable/contrib/traceroute/
H A Difaddrlist.c42 #include <sys/socket.h>
85 fd = socket(AF_INET, SOCK_DGRAM, 0);
87 (void)sprintf(errbuf, "socket: %s", strerror(errno));
/freebsd-13-stable/sbin/setkey/
H A Dtoken.l38 #include <sys/socket.h>
/freebsd-13-stable/sbin/devd/tests/
H A Dclient_test.c33 #include <sys/socket.h>
70 /* Setup and return an open client socket */
79 s = socket(PF_LOCAL, socktype, 0);
94 * be read _whole_ and _one_at_a_time_ from the socket
133 * Open a client connection to devd using the stream socket, create some
/freebsd-13-stable/contrib/blacklist/test/
H A Dcltest.c39 #include <sys/socket.h>
124 if ((sfd = socket(AF_INET, type, 0)) == -1)
125 err(EXIT_FAILURE, "socket");

Completed in 219 milliseconds

<<11121314151617181920>>