src/tcpkali_iface.c
static int
address_is_member(struct addresses *aseq, struct sockaddr *sb) {
    for(size_t i = 0; i < aseq->n_addrs; i++) {
        struct sockaddr *sa = (struct sockaddr *)&aseq->addrs[i];
        if(sockaddrs_match(sa, sb, SMATCH_ADDR_PORT)) return 1;
    }

    return 0;
}
/*
 * Return non-zero if such address already exists.
 */
Return non-zero if such address already exists.
Return non - zero if such address already exists .
static int
address_is_member(struct addresses *aseq, struct sockaddr *sb) {
    for(size_t i = 0; i < aseq->n_addrs; i++) {
        struct sockaddr *sa = (struct sockaddr *)&aseq->addrs[i];
        if(sockaddrs_match(sa, sb, SMATCH_ADDR_PORT)) return 1;
    }
    return 0;
}
static int address_is_member ( struct addresses * aseq , struct sockaddr * sb ) { for ( size_t i = 0 ; i < aseq -> n_addrs ; i ++ ) { struct sockaddr * sa = ( struct sockaddr * ) & aseq -> addrs [ i ] ; if ( sockaddrs_match ( sa , sb , SMATCH_ADDR_PORT ) ) return 1 ; } return 0 ; }
Return non-zero if such address already exists.
Return non - zero if such address already exists .