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()
516 /* Starts invalid addrlen tests with bind. */ in test_bind_and_connect()
523 /* Tries to bind with zero as addrlen. */ in test_bind_and_connect()
526 /* Tries to bind with too small addrlen. */ in test_bind_and_connect()
530 /* Tries to bind with minimal addrlen. */ in test_bind_and_connect()
537 TH_LOG("Failed to bind to socket: %s", strerror(errno)); in test_bind_and_connect()
637 TEST_F(protocol, bind) in TEST_F() argument
659 /* Allows connect and bind for the first port. */ in TEST_F()
664 /* Allows connect and denies bind for the second port. */ in TEST_F()
709 /* Allows connect and bind for the first port. */ in TEST_F()
714 /* Allows bind and denies connect for the second port. */ in TEST_F()
749 /* Allows bind. */ in TEST_F()
760 /* Allowed bind on AF_UNSPEC/INADDR_ANY. */ in TEST_F()
765 TH_LOG("Failed to bind to unspec/any socket: %s", in TEST_F()
778 /* Denies bind. */ in TEST_F()
786 /* Denied bind on AF_UNSPEC/INADDR_ANY. */ in TEST_F()
799 /* Checks bind with AF_UNSPEC and the loopback address. */ in TEST_F()
808 TH_LOG("Wrong bind error: %s", strerror(errno)); in TEST_F()
1000 /* Denies connect and bind to check errno value. */ in TEST_F()
1005 /* Allows connect and bind for srv0. */ in TEST_F()
1020 /* Checks unix stream bind and connect for srv0. */ in TEST_F()
1024 /* Checks unix stream bind and connect for srv1. */ in TEST_F()
1027 TH_LOG("Wrong bind error: %s", strerror(errno)); in TEST_F()
1031 /* Checks unix datagram bind and connect for srv0. */ in TEST_F()
1035 /* Checks unix datagram bind and connect for srv1. */ in TEST_F()
1149 /* Allows bind. */ in TEST_F()
1153 /* Also allows bind, but allows connect too. */ in TEST_F()
1169 /* Only allows bind. */ in TEST_F()
1185 /* Try to allow bind and connect. */ in TEST_F()
1207 /* Allows bind for srv0. */ in TEST_F()
1230 /* Allows bind for srv0 and connect to srv0. */ in TEST_F()
1236 /* Try to allow bind for srv1. */ in TEST_F()
1261 /* Allows connect to srv0, without bind rule. */ in TEST_F()
1720 /* Adds a rule layer with bind and connect actions. */ in TEST_F()
1737 /* Checks zero port value on bind and connect actions. */ in TEST_F()
1788 /* Adds a rule layer with bind and connect actions. */ in TEST_F()