/external/ipsec-tools/src/racoon/ |
D | sockmisc.h | 39 struct sockaddr sa; 48 extern int cmpsaddrwop __P((const struct sockaddr *, const struct sockaddr *)); 49 extern int cmpsaddrwild __P((const struct sockaddr *, const struct sockaddr *)); 50 extern int cmpsaddrstrict __P((const struct sockaddr *, const struct sockaddr *)); 58 extern struct sockaddr *getlocaladdr __P((struct sockaddr *)); 61 struct sockaddr *, socklen_t *, struct sockaddr *, unsigned int *)); 63 struct sockaddr *, struct sockaddr *, int)); 67 extern struct sockaddr *newsaddr __P((int)); 68 extern struct sockaddr *dupsaddr __P((struct sockaddr *)); 69 extern char *saddr2str __P((const struct sockaddr *)); [all …]
|
D | handler.h | 118 struct sockaddr *remote; /* remote address to negosiate ph1 */ 119 struct sockaddr *local; /* local address to negosiate ph1 */ 247 struct sockaddr *src; /* my address of SA. */ 248 struct sockaddr *dst; /* peer's address of SA. */ 254 struct sockaddr *src_id; 255 struct sockaddr *dst_id; 329 struct sockaddr *remote; /* remote address to negosiate ph1 */ 337 struct sockaddr *remote; /* the remote address */ 338 struct sockaddr *local; /* the local address */ 421 struct sockaddr; [all …]
|
D | policy.c | 139 saddr2str((struct sockaddr *)&spidx->src)); 140 if (cmpsaddrwop(iph2->src, (struct sockaddr *)&spidx->src) 147 saddr2str((struct sockaddr *)&spidx->dst)); 148 if (cmpsaddrwop(iph2->dst, (struct sockaddr *)&spidx->dst) 197 if (cmpsaddrstrict((struct sockaddr *)&a->src, 198 (struct sockaddr *)&b->src)) 200 if (cmpsaddrstrict((struct sockaddr *)&a->dst, 201 (struct sockaddr *)&b->dst)) 251 mask_sockaddr((struct sockaddr *)&sa1, (struct sockaddr *)&a->src, 253 mask_sockaddr((struct sockaddr *)&sa2, (struct sockaddr *)&b->src, [all …]
|
D | isakmp_var.h | 55 struct sockaddr; 65 extern int isakmp_ph1begin_i __P((struct remoteconf *, struct sockaddr *, 66 struct sockaddr *)); 100 extern int isakmp_newcookie __P((caddr_t, struct sockaddr *, struct sockaddr *)); 115 extern void isakmp_printpacket __P((vchar_t *, struct sockaddr *, 116 struct sockaddr *, int)); 120 struct remoteconf *, struct sockaddr *, struct sockaddr *)); 130 u_int32_t setscopeid __P((struct sockaddr *, struct sockaddr *));
|
D | sockmisc.c | 84 const struct sockaddr *addr1; in cmpsaddrwop() 85 const struct sockaddr *addr2; 137 const struct sockaddr *addr1; in cmpsaddrwild() 138 const struct sockaddr *addr2; 202 const struct sockaddr *addr1; in cmpsaddrstrict() 203 const struct sockaddr *addr2; 258 struct sockaddr *getlocaladdr(struct sockaddr *remote) in getlocaladdr() 264 getsockname(s, (struct sockaddr *)&local, &len) == -1) { in getlocaladdr() 269 set_port((struct sockaddr *)&local, 0); in getlocaladdr() 270 return dupsaddr((struct sockaddr *)&local); in getlocaladdr() [all …]
|
D | nattraversal.h | 73 struct sockaddr *oa; 78 vchar_t *natt_hash_addr (struct ph1handle *iph1, struct sockaddr *addr); 92 int natt_keepalive_add (struct sockaddr *src, struct sockaddr *dst); 94 void natt_keepalive_remove (struct sockaddr *src, struct sockaddr *dst);
|
D | admin.c | 108 so2 = accept(lcconf->sock_admin, (struct sockaddr *)&from, &fromlen); in admin_handler() 276 struct sockaddr *dst; 277 struct sockaddr *src; 280 src = (struct sockaddr *) 283 dst = (struct sockaddr *) 332 struct sockaddr *dst; 335 dst = (struct sockaddr *) 396 struct sockaddr *dst; 397 struct sockaddr *src; 398 src = (struct sockaddr *) [all …]
|
D | grabmyaddr.h | 39 struct sockaddr *addr; 48 extern u_short getmyaddrsport __P((struct sockaddr *)); 54 extern int getsockmyaddr __P((struct sockaddr *));
|
/external/ipsec-tools/src/libipsec/ |
D | libpfkey.h | 53 struct sockaddr; 72 struct sockaddr *src; /* IP src address for SA */ 73 struct sockaddr *dst; /* IP dst address for SA */ 88 struct sockaddr *l_natt_oa; 118 int pfkey_send_getspi __P((int, u_int, u_int, struct sockaddr *, 119 struct sockaddr *, u_int32_t, u_int32_t, u_int32_t, u_int32_t)); 123 struct sockaddr *, struct sockaddr *, u_int32_t)); 125 struct sockaddr *, struct sockaddr *)); 127 struct sockaddr *, struct sockaddr *, u_int32_t)); 134 int pfkey_send_spdadd __P((int, struct sockaddr *, u_int, [all …]
|
D | test-policy.c | 252 if (pfkey_send_spdsetidx(so, (struct sockaddr *)addr, 128, in test2() 253 (struct sockaddr *)addr, 128, in test2() 260 if (pfkey_send_spdupdate(so, (struct sockaddr *)addr, 128, in test2() 261 (struct sockaddr *)addr, 128, in test2() 271 if (pfkey_send_spddelete(so, (struct sockaddr *)addr, 128, in test2() 272 (struct sockaddr *)addr, 128, in test2() 279 if (pfkey_send_spdadd(so, (struct sockaddr *)addr, 128, in test2() 280 (struct sockaddr *)addr, 128, in test2() 301 if (pfkey_send_spdadd2(so, (struct sockaddr *)addr, 128, in test2() 302 (struct sockaddr *)addr, 128, in test2() [all …]
|
D | policy_parse.y | 106 static struct sockaddr *p_src = NULL; 107 static struct sockaddr *p_dst = NULL; 111 static struct sockaddr *parse_sockaddr __P((struct _val *addrbuf, 115 static int set_x_request __P((struct sockaddr *, struct sockaddr *)); 116 static int set_sockaddr __P((struct sockaddr *)); 374 static struct sockaddr * 383 struct sockaddr *newaddr = NULL; 514 struct sockaddr *src, *dst; in set_x_request() 549 struct sockaddr *addr; in set_sockaddr()
|
/external/libpcap/ |
D | fad-win32.c | 54 add_addr_to_list(pcap_if_t *curdev, struct sockaddr *addr, in add_addr_to_list() 55 struct sockaddr *netmask, struct sockaddr *broadaddr, in add_addr_to_list() 56 struct sockaddr *dstaddr, char *errbuf) in add_addr_to_list() 72 curaddr->addr = (struct sockaddr*)dup_sockaddr(addr, sizeof(struct sockaddr_storage)); in add_addr_to_list() 83 curaddr->netmask = (struct sockaddr*)dup_sockaddr(netmask, sizeof(struct sockaddr_storage)); in add_addr_to_list() 94 curaddr->broadaddr = (struct sockaddr*)dup_sockaddr(broadaddr, sizeof(struct sockaddr_storage)); in add_addr_to_list() 105 curaddr->dstaddr = (struct sockaddr*)dup_sockaddr(dstaddr, sizeof(struct sockaddr_storage)); in add_addr_to_list() 193 (struct sockaddr *)&if_addrs[if_addr_size].IPAddress, in pcap_add_if_win32() 194 (struct sockaddr *)&if_addrs[if_addr_size].SubnetMask, in pcap_add_if_win32() 195 (struct sockaddr *)&if_addrs[if_addr_size].Broadcast, in pcap_add_if_win32()
|
D | pcap-int.h | 324 int add_addr_to_iflist(pcap_if_t **, const char *, u_int, struct sockaddr *, 325 size_t, struct sockaddr *, size_t, struct sockaddr *, size_t, 326 struct sockaddr *, size_t, char *); 328 struct sockaddr *dup_sockaddr(struct sockaddr *, size_t);
|
D | fad-glifc.c | 96 struct sockaddr *netmask, *broadaddr, *dstaddr; in pcap_findalldevs() 175 if (((struct sockaddr *)&ifrp->lifr_addr)->sa_family == AF_INET6) in pcap_findalldevs() 253 netmask = (struct sockaddr *)&ifrnetmask.lifr_addr; in pcap_findalldevs() 281 broadaddr = (struct sockaddr *)&ifrbroadaddr.lifr_broadaddr; in pcap_findalldevs() 316 dstaddr = (struct sockaddr *)&ifrdstaddr.lifr_dstaddr; in pcap_findalldevs() 352 ifrflags.lifr_flags, (struct sockaddr *)&ifrp->lifr_addr, in pcap_findalldevs()
|
/external/opencore/oscl/oscl/config/android/ |
D | osclconfig_io.h | 90 #define OsclMakeSockAddr(sockaddr,port,addrstr,ok)\ argument 91 sockaddr.sin_family=OSCL_AF_INET;\ 92 sockaddr.sin_port=htons(port);\ 93 int32 result=inet_aton((const char*)addrstr,&sockaddr.sin_addr);\ 97 #define OsclUnMakeSockAddr(sockaddr,addrstr)\ argument 98 addrstr=inet_ntoa(sockaddr.sin_addr); 107 sockaddr* sadr = OSCL_STATIC_CAST(sockaddr*, tmpadr);\ 115 ok=(bind(s,(sockaddr*)p,sizeof(addr))!=(-1));\ 147 sockaddr* sadr = OSCL_STATIC_CAST(sockaddr*, tmpadr);\ 163 sockaddr* sadr = OSCL_STATIC_CAST(sockaddr*, tmpadr);\ [all …]
|
/external/opencore/oscl/oscl/config/linux/ |
D | osclconfig_io.h | 80 #define OsclMakeSockAddr(sockaddr,port,addrstr,ok)\ argument 81 sockaddr.sin_family=OSCL_AF_INET;\ 82 sockaddr.sin_port=htons(port);\ 83 int32 result=inet_aton((const char*)addrstr,&sockaddr.sin_addr);\ 87 #define OsclUnMakeSockAddr(sockaddr,addrstr)\ argument 88 addrstr=inet_ntoa(sockaddr.sin_addr); 97 sockaddr* sadr = OSCL_STATIC_CAST(sockaddr*, tmpadr);\ 103 ok=(bind(s,(sockaddr*)&addr,sizeof(addr))!=(-1));\ 133 sockaddr* sadr = OSCL_STATIC_CAST(sockaddr*, tmpadr);\ 149 sockaddr* sadr = OSCL_STATIC_CAST(sockaddr*, tmpadr);\ [all …]
|
/external/tcpdump/lbl/ |
D | os-sunos4.h | 53 struct sockaddr; 55 int accept(int, struct sockaddr *, int *); 56 int bind(int, struct sockaddr *, int); 63 int connect(int, struct sockaddr *, int); 96 int getpeername(int, struct sockaddr *, int *); 102 int getsockname(int, struct sockaddr *, int *); 138 int recvfrom(int, char *, u_int, int, struct sockaddr *, int *); 143 int sendto(int, char *, u_int, int, struct sockaddr *, int);
|
/external/libpcap/lbl/ |
D | os-sunos4.h | 53 struct sockaddr; 55 int accept(int, struct sockaddr *, int *); 56 int bind(int, struct sockaddr *, int); 63 int connect(int, struct sockaddr *, int); 96 int getpeername(int, struct sockaddr *, int *); 102 int getsockname(int, struct sockaddr *, int *); 138 int recvfrom(int, char *, u_int, int, struct sockaddr *, int *); 143 int sendto(int, char *, u_int, int, struct sockaddr *, int);
|
/external/openssl/crypto/bio/ |
D | bss_dgram.c | 103 struct sockaddr peer; 174 struct sockaddr peer; in dgram_read() 241 struct sockaddr *to = NULL; in dgram_ctrl() 290 to = (struct sockaddr *)ptr; in dgram_ctrl() 292 if (connect(b->num, to, sizeof(struct sockaddr)) < 0) in dgram_ctrl() 297 memcpy(&(data->peer),to, sizeof(struct sockaddr)); in dgram_ctrl() 330 to = (struct sockaddr *)ptr; in dgram_ctrl() 335 memcpy(&(data->peer),to, sizeof(struct sockaddr)); in dgram_ctrl() 340 memset(&(data->peer), 0x00, sizeof(struct sockaddr)); in dgram_ctrl() 344 to = (struct sockaddr *) ptr; in dgram_ctrl() [all …]
|
/external/wpa_supplicant/ |
D | ctrl_iface_unix.c | 149 (struct sockaddr *) &from, &fromlen); in wpa_supplicant_ctrl_iface_receive() 180 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive() 184 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive() 187 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive() 349 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in wpa_supplicant_ctrl_iface_init() 352 if (connect(priv->sock, (struct sockaddr *) &addr, in wpa_supplicant_ctrl_iface_init() 364 if (bind(priv->sock, (struct sockaddr *) &addr, in wpa_supplicant_ctrl_iface_init() 547 (struct sockaddr *) &from, &fromlen); in wpa_supplicant_ctrl_iface_wait() 559 (struct sockaddr *) &from, fromlen); in wpa_supplicant_ctrl_iface_wait() 564 (struct sockaddr *) &from, fromlen); in wpa_supplicant_ctrl_iface_wait() [all …]
|
D | wireless_copy.h | 729 struct sockaddr addr; /* Source address (hw/mac) */ 755 struct sockaddr bssid; /* ff:ff:ff:ff:ff:ff for broadcast BSSID or 813 struct sockaddr addr; /* ff:ff:ff:ff:ff:ff for broadcast/multicast 826 struct sockaddr addr; 839 struct sockaddr bssid; 847 struct sockaddr src_addr; 858 struct sockaddr bssid; 912 struct sockaddr ap_addr; /* Access point address */ 913 struct sockaddr addr; /* Destination address (hw/mac) */ 1080 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr))
|
D | ctrl_iface_udp.c | 167 (struct sockaddr *) &from, &fromlen); in wpa_supplicant_ctrl_iface_receive() 244 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive() 248 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive() 251 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive() 296 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in wpa_supplicant_ctrl_iface_init() 377 (struct sockaddr *) &dst->addr, in wpa_supplicant_ctrl_iface_send() 446 (struct sockaddr *) &from, &fromlen); in wpa_supplicant_global_ctrl_iface_receive() 496 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in wpa_supplicant_global_ctrl_iface_receive() 500 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, in wpa_supplicant_global_ctrl_iface_receive() 534 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in wpa_supplicant_global_ctrl_iface_init()
|
/external/bluez/hcidump/parser/ |
D | tcpip.c | 57 getnameinfo((struct sockaddr *) &sai, sizeof(sai), buf, sizeof(buf), in arp_dump() 65 getnameinfo((struct sockaddr *) &sai, sizeof(sai), buf, sizeof(buf), in arp_dump() 89 getnameinfo((struct sockaddr *) &sai, sizeof(sai), in ip_dump() 92 getnameinfo((struct sockaddr *) &sai, sizeof(sai), in ip_dump() 102 getnameinfo((struct sockaddr *) &sai6, sizeof(sai6), in ip_dump() 105 getnameinfo((struct sockaddr *) &sai6, sizeof(sai6), in ip_dump()
|
/external/ppp/pppd/plugins/pppoatm/ |
D | atm.h | 90 int text2atm(const char *text,struct sockaddr *addr,int length,int flags); 91 int atm2text(char *buffer,int length,const struct sockaddr *addr,int flags); 92 int atm_equal(const struct sockaddr *a,const struct sockaddr *b,int len,
|
/external/dropbear/ |
D | fake-rfc2553.h | 52 # define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr)) 54 struct sockaddr ss_sa; 131 struct sockaddr *ai_addr; /* binary address */ 157 int getnameinfo(const struct sockaddr *, size_t, char *, size_t,
|