Home
last modified time | relevance | path

Searched refs:num_sips (Results 1 – 2 of 2) sorted by relevance

/dports/www/http_load/http_load-09Mar2016/
H A Dhttp_load.c99 static int num_sips, max_sips; variable
765 num_sips = 0; in read_sip_file()
773 if ( num_sips >= max_sips ) in read_sip_file()
780 sips[num_sips].str = strdup_check( line ); in read_sip_file()
781 (void) memset( (void*) &sips[num_sips].sa_in, 0, sizeof(sips[num_sips].sa_in) ); in read_sip_file()
782 sips[num_sips].sa_in.sin_family = AF_INET; in read_sip_file()
783 if ( ! inet_aton( sips[num_sips].str, &sips[num_sips].sa_in.sin_addr ) ) in read_sip_file()
787 argv0, sips[num_sips].str ); in read_sip_file()
790 ++num_sips; in read_sip_file()
869 if ( num_sips > 0 ) in start_socket()
[all …]
/dports/www/trafficserver/trafficserver-9.1.1/tools/http_load/
H A Dhttp_load.c107 static int num_sips, max_sips; variable
893 num_sips = 0; in read_sip_file()
900 if (num_sips >= max_sips) { in read_sip_file()
906 sips[num_sips].str = strdup_check(line); in read_sip_file()
907 (void)memset((void *)&sips[num_sips].sa, 0, sizeof(sips[num_sips].sa)); in read_sip_file()
908 if (!inet_aton(sips[num_sips].str, &sips[num_sips].sa.sin_addr)) { in read_sip_file()
909 (void)fprintf(stderr, "%s: cannot convert source IP address %s\n", argv0, sips[num_sips].str); in read_sip_file()
912 ++num_sips; in read_sip_file()
1049 if (num_sips > 0) { in start_socket()
1051 sip_num = ((unsigned long)random()) % ((unsigned int)num_sips); in start_socket()