Lines Matching full:bind
193 ret = bind(sock_fd, &srv->ipv4_addr, addrlen); in bind_variant_addrlen()
197 ret = bind(sock_fd, &srv->ipv6_addr, addrlen); in bind_variant_addrlen()
201 ret = bind(sock_fd, &srv->unix_addr, addrlen); in bind_variant_addrlen()
420 /* Starts invalid addrlen tests with bind. */ in test_bind_and_connect()
427 /* Tries to bind with zero as addrlen. */ in test_bind_and_connect()
430 /* Tries to bind with too small addrlen. */ in test_bind_and_connect()
434 /* Tries to bind with minimal addrlen. */ in test_bind_and_connect()
441 TH_LOG("Failed to bind to socket: %s", strerror(errno)); in test_bind_and_connect()
541 TEST_F(protocol, bind) in TEST_F() argument
563 /* Allows connect and bind for the first port. */ in TEST_F()
568 /* Allows connect and denies bind for the second port. */ in TEST_F()
613 /* Allows connect and bind for the first port. */ in TEST_F()
618 /* Allows bind and denies connect for the second port. */ in TEST_F()
653 /* Allows bind. */ in TEST_F()
664 /* Allowed bind on AF_UNSPEC/INADDR_ANY. */ in TEST_F()
669 TH_LOG("Failed to bind to unspec/any socket: %s", in TEST_F()
682 /* Denies bind. */ in TEST_F()
690 /* Denied bind on AF_UNSPEC/INADDR_ANY. */ in TEST_F()
703 /* Checks bind with AF_UNSPEC and the loopback address. */ in TEST_F()
712 TH_LOG("Wrong bind error: %s", strerror(errno)); in TEST_F()
904 /* Denies connect and bind to check errno value. */ in TEST_F()
909 /* Allows connect and bind for srv0. */ in TEST_F()
924 /* Checks unix stream bind and connect for srv0. */ in TEST_F()
928 /* Checks unix stream bind and connect for srv1. */ in TEST_F()
931 TH_LOG("Wrong bind error: %s", strerror(errno)); in TEST_F()
935 /* Checks unix datagram bind and connect for srv0. */ in TEST_F()
939 /* Checks unix datagram bind and connect for srv1. */ in TEST_F()
1053 /* Allows bind. */ in TEST_F()
1057 /* Also allows bind, but allows connect too. */ in TEST_F()
1073 /* Only allows bind. */ in TEST_F()
1089 /* Try to allow bind and connect. */ in TEST_F()
1111 /* Allows bind for srv0. */ in TEST_F()
1134 /* Allows bind for srv0 and connect to srv0. */ in TEST_F()
1140 /* Try to allow bind for srv1. */ in TEST_F()
1165 /* Allows connect to srv0, without bind rule. */ in TEST_F()
1624 /* Adds a rule layer with bind and connect actions. */ in TEST_F()
1641 /* Checks zero port value on bind and connect actions. */ in TEST_F()
1692 /* Adds a rule layer with bind and connect actions. */ in TEST_F()