/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 | 88 const struct sockaddr *addr1; in cmpsaddrwop() 89 const struct sockaddr *addr2; 141 const struct sockaddr *addr1; in cmpsaddrwild() 142 const struct sockaddr *addr2; 206 const struct sockaddr *addr1; in cmpsaddrstrict() 207 const struct sockaddr *addr2; 262 struct sockaddr *getlocaladdr(struct sockaddr *remote) in getlocaladdr() 272 getsockname(s, (struct sockaddr *)&local, &len) == -1) { in getlocaladdr() 277 return dupsaddr((struct sockaddr *)&local); in getlocaladdr() 280 int recvfromto(int s, void *buf, size_t len, int flags, struct sockaddr *from, in recvfromto() [all …]
|
/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 …]
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.h | 51 #define sockaddr_storage sockaddr 56 #define GET_SA_LEN(X) (sizeof(struct sockaddr) > ((struct sockaddr*)&(X))->sa_len ? \ 57 sizeof(struct sockaddr) : ((struct sockaddr*)&(X))->sa_len ) 59 #define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in)… 60 …((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sock… 62 …define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) … 83 struct sockaddr *sa, socklen_t *salenptr, struct my_in_pktinfo *pktp, u_char *ttl); 92 struct sockaddr *ifi_addr; /* primary address */ 93 struct sockaddr *ifi_netmask; 94 struct sockaddr *ifi_brdaddr;/* broadcast address */ [all …]
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_connectx.c | 77 struct sockaddr *tmp_addr; in main() 108 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 116 error = sctp_connectx(-1, (struct sockaddr *) &conn_addr, 1, NULL); in main() 124 error = sctp_connectx(0, (struct sockaddr *) &conn_addr, 1, NULL); in main() 132 tmp_addr = (struct sockaddr *) malloc(sizeof(struct sockaddr) - 1); in main() 142 error = sctp_connectx(sk, (struct sockaddr *) &conn_addr, 0, NULL); in main() 151 error = sctp_connectx(sk, (struct sockaddr *) &conn_addr, 1, NULL); in main() 164 error = sctp_connectx(clnt_sk[i], (struct sockaddr *)&conn_addr, in main() 176 error = sctp_connectx(clnt2_sk, (struct sockaddr *) &conn_addr, 1, NULL); in main() 186 (struct sockaddr *) &acpt_addr, &len); in main() [all …]
|
D | test_1_to_1_accept_close.c | 118 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 128 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main() 131 error = accept(-1, (struct sockaddr *) &acpt_addr, &len); in main() 144 error = accept(fd, (struct sockaddr *) &acpt_addr, &len); in main() 156 error = accept(lstn_sk, (struct sockaddr *) -1, &len); in main() 163 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main() 166 error = accept(sk, (struct sockaddr *) &acpt_addr, &len); in main() 173 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main() 176 acpt_sk = test_accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main() 179 error = accept(acpt_sk, (struct sockaddr *) &acpt_addr, &len); in main() [all …]
|
D | test_1_to_1_connect.c | 109 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 117 error = connect(-1, (const struct sockaddr *) &conn_addr, len); in main() 130 error = connect(fd, (const struct sockaddr *) &conn_addr, len); in main() 142 error = connect(sk, (const struct sockaddr *) -1, len); in main() 150 error = connect(sk, (const struct sockaddr *) &conn_addr, (len - 3)); in main() 159 error = connect(sk, (const struct sockaddr *) &conn_addr, len); in main() 172 error = connect(clnt_sk[i], (const struct sockaddr *)&conn_addr, in main() 184 error = connect(clnt2_sk, (const struct sockaddr *) &conn_addr, len); in main() 194 (struct sockaddr *) &acpt_addr, &len); in main() 197 error = connect(lstn_sk, (const struct sockaddr *) &lstn_addr, len); in main() [all …]
|
D | test_1_to_1_recvfrom.c | 100 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 107 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main() 109 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 119 (struct sockaddr *)&svr_addr, &len); in main() 133 (struct sockaddr *)&svr_addr, &len); in main() 146 (struct sockaddr *)&svr_addr, &len); in main() 155 (struct sockaddr *)&svr_addr, &len); in main() 168 (struct sockaddr *)&svr_addr, &len); in main() 179 (struct sockaddr *)&svr_addr, &len); in main() 191 (struct sockaddr *)&svr_addr, &len); in main()
|
D | test_getname.c | 97 error = getsockname(svr_sk, (struct sockaddr *)&svr_local_addr, &len); in main() 106 error = getpeername(svr_sk, (struct sockaddr *)&svr_peer_addr, &len); in main() 130 error = getsockname(clt_sk, (struct sockaddr *)&clt_local_addr, &len); in main() 140 error = getpeername(clt_sk, (struct sockaddr *)&clt_peer_addr, &len); in main() 154 error = getsockname(accept_sk, (struct sockaddr *)&svr_local_addr, in main() 165 error = getpeername(accept_sk, (struct sockaddr *)&svr_peer_addr, in main() 205 error = getsockname(-1, (struct sockaddr *)&clt_local_addr, &len); in main() 218 error = getsockname(fd, (struct sockaddr *)&clt_local_addr, &len); in main() 230 error = getsockname(clt_sk, (struct sockaddr *)-1, &len); in main() 240 error = getpeername(-1, (struct sockaddr *)&clt_local_addr, &len); in main() [all …]
|
D | test_1_to_1_sendto.c | 94 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 102 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main() 104 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 110 (const struct sockaddr *) &conn_addr, len); in main() 123 (const struct sockaddr *) &svr_addr, len); in main() 140 (const struct sockaddr *) &conn_addr, len); in main() 147 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 153 test_sendto(sk, message, 5 , flag, (const struct sockaddr *)&conn_addr, in main()
|
/external/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 74 struct sockaddr *sockaddr; /* socket address buffer */ member 83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 89 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1, 94 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 96 0, 0, 0, (struct sockaddr *)&sin1, 100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 104 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2, 108 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin4, 129 static int sys_connect(int sockfd, const struct sockaddr *addr, in sys_connect() 155 (s, tdat[testno].sockaddr, tdat[testno].salen)); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/getpeername/ |
D | getpeername01.c | 54 struct sockaddr *sockaddr; member 62 {-1, (struct sockaddr *)&fsin1, &sinlen, -1, EBADF, NULL, NULL, 64 {-1, (struct sockaddr *)&fsin1, &sinlen, -1, ENOTSOCK, setup2, cleanup2, 66 {-1, (struct sockaddr *)&fsin1, &sinlen, -1, ENOTCONN, setup3, cleanup2, 68 {-1, (struct sockaddr *)&fsin1, &invalid_sinlen, -1, EINVAL, setup4, 71 {-1, (struct sockaddr *)-1, &sinlen, -1, EFAULT, setup4, cleanup4, 73 {-1, (struct sockaddr *)&fsin1, NULL, -1, EFAULT, setup4, 75 {-1, (struct sockaddr *)&fsin1, (socklen_t *)1, -1, EFAULT, setup4, 102 test_cases[i].sockaddr, in main() 157 (struct sockaddr *)&server_addr, sizeof(server_addr)); in setup3()
|
/external/ltp/testcases/kernel/syscalls/accept/ |
D | accept01.c | 60 struct sockaddr *sockaddr; /* socket address buffer */ member 69 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 72 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 75 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)3, 78 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 81 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 84 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 87 PF_INET, SOCK_DGRAM, 0, (struct sockaddr *)&fsin1, 106 TEST(accept(s, tdat[testno].sockaddr, in main() 161 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 77 struct sockaddr *sin; 87 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 91 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 97 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 101 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 107 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 111 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 115 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 120 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 124 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, [all …]
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg01.c | 101 struct sockaddr *from; /* from address */ 112 (struct sockaddr *)&from, sizeof(from), 118 (struct sockaddr *)&from, sizeof(from), 124 &msgdat, 0, (struct sockaddr *)-1, sizeof(from), 0, 130 &msgdat, -1, (struct sockaddr *)&from, -1, -1, 135 &msgdat, 0, (struct sockaddr *)&from, sizeof(from), 141 &msgdat, 0, (struct sockaddr *)&from, sizeof(from), 147 &msgdat, 0, (struct sockaddr *)&from, sizeof(from), 153 &msgdat, 0, (struct sockaddr *)&from, sizeof(from), 159 &msgdat, MSG_OOB, (struct sockaddr *)&from, [all …]
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg01.c | 95 struct sockaddr *to; /* destination */ 114 .to = (struct sockaddr *)&sin1, 131 .to = (struct sockaddr *)&sin1, 148 .to = (struct sockaddr *)&sin1, 165 .to = (struct sockaddr *)&sin2, 182 .to = (struct sockaddr *)&sin1, 199 .to = (struct sockaddr *)&sin1, 215 .to = (struct sockaddr *)-1, 216 .tolen = sizeof(struct sockaddr), 231 .to = (struct sockaddr *)&sin1, [all …]
|
/external/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt01.c | 77 struct sockaddr *sin; 87 sizeof(optval), (struct sockaddr *)&fsin1, 92 sizeof(optval), (struct sockaddr *)&fsin1, 99 sizeof(optval), (struct sockaddr *)&fsin1, 106 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 110 sizeof(optval), (struct sockaddr *)&fsin1, 115 sizeof(optval), (struct sockaddr *)&fsin1, 120 sizeof(optval), (struct sockaddr *)&fsin1, 125 sizeof(optval), (struct sockaddr *)&fsin1, 206 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/bind/ |
D | bind01.c | 71 struct sockaddr *sockaddr; /* socket address buffer */ member 82 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1, 87 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 89 0, 0, 0, (struct sockaddr *)&sin1, 93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2, 96 PF_UNIX, SOCK_STREAM, 0, (struct sockaddr *)&sun1, 100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin3, 122 (s, tdat[testno].sockaddr, tdat[testno].salen)); in main()
|
/external/ltp/testcases/kernel/syscalls/sockioctl/ |
D | sockioctl01.c | 73 struct sockaddr *sin; 83 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 87 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 93 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 99 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 103 (struct sockaddr *)&fsin1, sizeof(fsin1), 0, 107 (struct sockaddr *)&fsin1, sizeof(fsin1), 0, 111 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 115 (struct sockaddr *)&fsin1, sizeof(fsin1), -1, 210 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/recvfrom/ |
D | recvfrom01.c | 84 struct sockaddr *from; /* from address */ 95 (struct sockaddr *)&from, &fromlen, 99 0, 0, 0, buf, sizeof(buf), 0, (struct sockaddr *)&from, 104 (struct sockaddr *)-1, &fromlen, 109 (struct sockaddr *)&from, &fromlen, 114 (struct sockaddr *)&from, &fromlen, 119 (struct sockaddr *)&from, &fromlen, 124 (struct sockaddr *)&from, &fromlen, 221 connect(s, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { in setup1() 262 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server() [all …]
|
/external/ltp/testcases/kernel/syscalls/getsockname/ |
D | getsockname01.c | 71 struct sockaddr *sockaddr; /* socket address buffer */ member 80 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 97 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 118 TEST(getsockname(s, tdat[testno].sockaddr, in main() 173 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|