Home
last modified time | relevance | path

Searched refs:addr_len (Results 1 – 25 of 44) sorted by relevance

12

/external/tcpdump/
Dprint-fr.c103 u_int *addr_len, uint8_t *flags, u_int length) in parse_q922_addr() argument
112 *addr_len = 2; in parse_q922_addr()
127 (*addr_len)++; /* 3- or 4-byte Q.922 address */ in parse_q922_addr()
130 (*addr_len)++; /* 4-byte Q.922 address */ in parse_q922_addr()
151 static u_int dlci, addr_len; in q922_string() local
156 if (parse_q922_addr(ndo, p, &dlci, &addr_len, flags, length) == 1){ in q922_string()
192 int length, u_int addr_len, u_int dlci, uint8_t *flags, uint16_t nlpid) in fr_hdr_print() argument
201 addr_len, in fr_hdr_print()
209 addr_len, in fr_hdr_print()
243 u_int addr_len; in fr_print() local
[all …]
/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c40 socklen_t addr_len; in ConnectAndAccept() local
60 addr_len = sizeof(sa); in ConnectAndAccept()
87 addr_len = sizeof(sa); in ConnectAndAccept()
89 (struct sockaddr*)(&sa), &addr_len)) == -1) { in ConnectAndAccept()
100 socklen_t addr_len; in CreateServer() local
107 addr_len = sizeof(sa); in CreateServer()
115 if (getsockname(*server_fd, (struct sockaddr*)(&sa), &addr_len) == -1) { in CreateServer()
129 socklen_t addr_len; in CreateServerConnectAndAccept() local
136 addr_len = sizeof(sa); in CreateServerConnectAndAccept()
145 if (getsockname(server_fd, (struct sockaddr*)(&sa), &addr_len) == -1) { in CreateServerConnectAndAccept()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dreactive_socket_service.hpp173 std::size_t addr_len = endpoint.capacity(); in local_endpoint() local
174 if (socket_ops::getsockname(impl.socket_, endpoint.data(), &addr_len, ec)) in local_endpoint()
176 endpoint.resize(addr_len); in local_endpoint()
185 std::size_t addr_len = endpoint.capacity(); in remote_endpoint() local
187 endpoint.data(), &addr_len, false, ec)) in remote_endpoint()
189 endpoint.resize(addr_len); in remote_endpoint()
277 std::size_t addr_len = sender_endpoint.capacity(); in receive_from() local
280 flags, sender_endpoint.data(), &addr_len, ec); in receive_from()
283 sender_endpoint.resize(addr_len); in receive_from()
374 std::size_t addr_len = peer_endpoint ? peer_endpoint->capacity() : 0; in accept() local
[all …]
Dreactive_socket_recvfrom_op.hpp52 std::size_t addr_len = o->sender_endpoint_.capacity(); in do_perform() local
55 o->sender_endpoint_.data(), &addr_len, in do_perform()
59 o->sender_endpoint_.resize(addr_len); in do_perform()
/external/openssh/
Dentropy.c80 int fd, addr_len, rval, errors; in get_random_bytes_prngd() local
102 addr_len = sizeof(*addr_in); in get_random_bytes_prngd()
107 addr_len = offsetof(struct sockaddr_un, sun_path) + in get_random_bytes_prngd()
122 if (connect(fd, (struct sockaddr*)&addr, addr_len) == -1) { in get_random_bytes_prngd()
/external/libmicrohttpd/src/platform/
Dw32functions.c570 int addr_len = c_addinlen; in MHD_W32_pair_of_sockets_() local
583 &addr_len)) in MHD_W32_pair_of_sockets_()
593 addr_len = c_addinlen; in MHD_W32_pair_of_sockets_()
595 (struct sockaddr*) &accepted_from_addr, &addr_len); in MHD_W32_pair_of_sockets_()
599 addr_len = c_addinlen; in MHD_W32_pair_of_sockets_()
601 if (0 == getsockname(client_s, (struct sockaddr*) &client_addr, &addr_len) in MHD_W32_pair_of_sockets_()
/external/wpa_supplicant_8/src/ap/
Diapp.c76 u8 addr_len; /* ETH_ALEN */ member
97 u8 addr_len; /* ETH_ALEN */ member
108 u8 addr_len; /* ETH_ALEN */ member
125 u8 addr_len; /* ETH_ALEN */ member
138 u8 addr_len; /* ETH_ALEN */ member
191 add->addr_len = ETH_ALEN; in iapp_send_add()
Dfils_hlp.c157 socklen_t addr_len; in fils_dhcp_handler() local
167 addr_len = sizeof(addr); in fils_dhcp_handler()
169 (struct sockaddr *) &addr, &addr_len); in fils_dhcp_handler()
/external/wpa_supplicant_8/src/wps/
Dwps_er_ssdp.c24 socklen_t addr_len; in wps_er_ssdp_rx() local
32 addr_len = sizeof(addr); in wps_er_ssdp_rx()
34 (struct sockaddr *) &addr, &addr_len); in wps_er_ssdp_rx()
Dhttp_server.c202 socklen_t addr_len = sizeof(addr); in http_server_cb() local
207 conn = accept(srv->fd, (struct sockaddr *) &addr, &addr_len); in http_server_cb()
Dwps_upnp_ssdp.c689 socklen_t addr_len; in ssdp_listener_handler() local
693 addr_len = sizeof(addr); in ssdp_listener_handler()
695 (struct sockaddr *) &addr, &addr_len); in ssdp_listener_handler()
/external/syslinux/gpxe/src/drivers/net/
Ddavicom.c73 #define EE_WRITE_CMD (5 << addr_len)
74 #define EE_READ_CMD (6 << addr_len)
75 #define EE_ERASE_CMD (7 << addr_len)
158 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
393 static int read_eeprom(unsigned long ioaddr, int location, int addr_len) in read_eeprom() argument
406 for (i = 4 + addr_len; i >= 0; i--) { in read_eeprom()
/external/iproute2/include/
Dbpf_scm.h36 unsigned int addr_len) in bpf_map_set_init() argument
48 msg->hdr.msg_namelen = addr_len; in bpf_map_set_init()
/external/kernel-headers/original/uapi/linux/
Dipmi.h254 unsigned int addr_len; member
305 unsigned int addr_len; /* The size of the address buffer. member
/external/webrtc/webrtc/base/
Dmacasyncsocket.cc205 socklen_t addr_len = sizeof(saddr); in RecvFrom() local
208 &addr_len); in RecvFrom()
233 socklen_t addr_len = sizeof(saddr); in Accept() local
236 &addr_len); in Accept()
Dwin32socketserver.cc432 size_t addr_len = addr.ToSockAddrStorage(&saddr); in SendTo() local
436 static_cast<int>(addr_len)); in SendTo()
453 socklen_t addr_len = sizeof(saddr); in RecvFrom() local
456 reinterpret_cast<sockaddr*>(&saddr), &addr_len); in RecvFrom()
478 socklen_t addr_len = sizeof(saddr); in Accept() local
479 SOCKET s = ::accept(socket_, reinterpret_cast<sockaddr*>(&saddr), &addr_len); in Accept()
/external/libmicrohttpd/src/microspdy/
Dsession.c1394 socklen_t addr_len; in SPDYF_session_accept() local
1401 addr_len = sizeof(addr6); in SPDYF_session_accept()
1406 addr_len = sizeof(addr6); in SPDYF_session_accept()
1409 new_socket_fd = accept (daemon->socket_fd, addr, &addr_len); in SPDYF_session_accept()
1442 if (NULL == (session->addr = malloc (addr_len))) in SPDYF_session_accept()
1447 memcpy (session->addr, addr, addr_len); in SPDYF_session_accept()
1449 session->addr_len = addr_len; in SPDYF_session_accept()
/external/autotest/client/site_tests/platform_TLSDateActual/
Dplatform_TLSDateActual.py125 addr_len = recvbytes(sock, 1)[0]
126 dst_addr = "".join([unichr(x) for x in recvbytes(sock, addr_len)])
/external/libnfnetlink/src/
Dlibnfnetlink.c213 unsigned int addr_len; in nfnl_open2() local
228 addr_len = sizeof(nfnlh->local); in nfnl_open2()
229 getsockname(nfnlh->fd, (struct sockaddr *)&nfnlh->local, &addr_len); in nfnl_open2()
230 if (addr_len != sizeof(nfnlh->local)) { in nfnl_open2()
253 addr_len = sizeof(nfnlh->local); in nfnl_open2()
254 getsockname(nfnlh->fd, (struct sockaddr *)&nfnlh->local, &addr_len); in nfnl_open2()
255 if (addr_len != sizeof(nfnlh->local)) { in nfnl_open2()
/external/libmicrohttpd/src/examples/
Dspdy_event_loop.c63 socklen_t addr_len = SPDY_get_remote_addr(session, &addr); in new_session_callback() local
65 if(!addr_len) in new_session_callback()
/external/iproute2/lib/
Dlibnetlink.c49 socklen_t addr_len; in rtnl_open_byproto() local
79 addr_len = sizeof(rth->local); in rtnl_open_byproto()
80 if (getsockname(rth->fd, (struct sockaddr*)&rth->local, &addr_len) < 0) { in rtnl_open_byproto()
84 if (addr_len != sizeof(rth->local)) { in rtnl_open_byproto()
85 fprintf(stderr, "Wrong address length %d\n", addr_len); in rtnl_open_byproto()
/external/strace/
Dmsghdr.c200 const unsigned int addr_len = in print_cmsg_ip_origdstaddr() local
204 print_sockaddr(tcp, cmsg_data, addr_len); in print_cmsg_ip_origdstaddr()
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtimestamping.c137 static void sendpacket(int sock, struct sockaddr *addr, socklen_t addr_len) in sendpacket() argument
143 addr, addr_len); in sendpacket()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c859 u_int addr_len; in initmyaddr() local
871 addr_len = sizeof(nl); in initmyaddr()
872 if (getsockname(lcconf->rtsock, (struct sockaddr*)&nl, &addr_len) < 0) { in initmyaddr()
/external/libmicrohttpd/src/testcurl/
Dtest_get_sendfile.c397 socklen_t addr_len = sizeof(addr); in testUnknownPortGet() local
417 if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len)) in testUnknownPortGet()

12