Lines Matching full:bind
194 ret = bind(sock_fd, &srv->ipv4_addr, addrlen); in bind_variant_addrlen()
198 ret = bind(sock_fd, &srv->ipv6_addr, addrlen); in bind_variant_addrlen()
202 ret = bind(sock_fd, &srv->unix_addr, addrlen); in bind_variant_addrlen()
517 /* Starts invalid addrlen tests with bind. */ in test_bind_and_connect()
524 /* Tries to bind with zero as addrlen. */ in test_bind_and_connect()
527 /* Tries to bind with too small addrlen. */ in test_bind_and_connect()
531 /* Tries to bind with minimal addrlen. */ in test_bind_and_connect()
538 TH_LOG("Failed to bind to socket: %s", strerror(errno)); in test_bind_and_connect()
638 TEST_F(protocol, bind) in TEST_F() argument
660 /* Allows connect and bind for the first port. */ in TEST_F()
665 /* Allows connect and denies bind for the second port. */ in TEST_F()
710 /* Allows connect and bind for the first port. */ in TEST_F()
715 /* Allows bind and denies connect for the second port. */ in TEST_F()
750 /* Allows bind. */ in TEST_F()
761 /* Allowed bind on AF_UNSPEC/INADDR_ANY. */ in TEST_F()
766 TH_LOG("Failed to bind to unspec/any socket: %s", in TEST_F()
779 /* Denies bind. */ in TEST_F()
787 /* Denied bind on AF_UNSPEC/INADDR_ANY. */ in TEST_F()
800 /* Checks bind with AF_UNSPEC and the loopback address. */ in TEST_F()
809 TH_LOG("Wrong bind error: %s", strerror(errno)); in TEST_F()
1001 /* Denies connect and bind to check errno value. */ in TEST_F()
1006 /* Allows connect and bind for srv0. */ in TEST_F()
1021 /* Checks unix stream bind and connect for srv0. */ in TEST_F()
1025 /* Checks unix stream bind and connect for srv1. */ in TEST_F()
1028 TH_LOG("Wrong bind error: %s", strerror(errno)); in TEST_F()
1032 /* Checks unix datagram bind and connect for srv0. */ in TEST_F()
1036 /* Checks unix datagram bind and connect for srv1. */ in TEST_F()
1150 /* Allows bind. */ in TEST_F()
1154 /* Also allows bind, but allows connect too. */ in TEST_F()
1170 /* Only allows bind. */ in TEST_F()
1186 /* Try to allow bind and connect. */ in TEST_F()
1208 /* Allows bind for srv0. */ in TEST_F()
1231 /* Allows bind for srv0 and connect to srv0. */ in TEST_F()
1237 /* Try to allow bind for srv1. */ in TEST_F()
1262 /* Allows connect to srv0, without bind rule. */ in TEST_F()
1721 /* Adds a rule layer with bind and connect actions. */ in TEST_F()
1738 /* Checks zero port value on bind and connect actions. */ in TEST_F()
1789 /* Adds a rule layer with bind and connect actions. */ in TEST_F()
1947 TEST_F(audit, bind) in TEST_F() argument