Lines Matching full:ss
11 static void set_addr(struct sockaddr_storage *ss, char *ip, char *port, int *len) in set_addr() argument
13 if (ss->ss_family == AF_INET) { in set_addr()
14 struct sockaddr_in *a = (struct sockaddr_in *)ss; in set_addr()
20 struct sockaddr_in6 *a = (struct sockaddr_in6 *)ss; in set_addr()
31 struct sockaddr_storage ss; in do_client() local
40 bzero((void *)&ss, sizeof(ss)); in do_client()
41 ss.ss_family = !strcmp(argv[2], "-4") ? AF_INET : AF_INET6; in do_client()
42 csk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); in do_client()
49 set_addr(&ss, argv[5], argv[6], &len); in do_client()
50 ret = bind(csk, (struct sockaddr *)&ss, len); in do_client()
57 set_addr(&ss, argv[3], argv[4], &len); in do_client()
58 ret = connect(csk, (struct sockaddr *)&ss, len); in do_client()
76 struct sockaddr_storage ss; in main() local
93 ss.ss_family = !strcmp(argv[2], "-4") ? AF_INET : AF_INET6; in main()
94 lsk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); in main()
109 set_addr(&ss, argv[3], argv[4], &len); in main()
110 ret = bind(lsk, (struct sockaddr *)&ss, len); in main()