@@ -2735,7 +2735,7 @@ static enum rule_result http_req_get_intercept_rule(struct proxy *px, struct lis
27352735 act_opts |= ACT_OPT_FINAL ;
27362736
27372737 if (!(s -> scf -> flags & SC_FL_ERROR ) & !(s -> req .flags & (CF_READ_TIMEOUT |CF_WRITE_TIMEOUT ))) {
2738- s -> waiting_entity .type = 0 ;
2738+ s -> waiting_entity .type = STRM_ENTITY_NONE ;
27392739 s -> waiting_entity .ptr = NULL ;
27402740 }
27412741
@@ -2744,7 +2744,7 @@ static enum rule_result http_req_get_intercept_rule(struct proxy *px, struct lis
27442744 break ;
27452745 case ACT_RET_STOP :
27462746 rule_ret = HTTP_RULE_RES_STOP ;
2747- s -> last_entity .type = 1 ;
2747+ s -> last_entity .type = STRM_ENTITY_RULE ;
27482748 s -> last_entity .ptr = rule ;
27492749 goto end ;
27502750 case ACT_RET_YIELD :
@@ -2753,40 +2753,40 @@ static enum rule_result http_req_get_intercept_rule(struct proxy *px, struct lis
27532753 send_log (s -> be , LOG_WARNING ,
27542754 "Internal error: action yields while it is no long allowed "
27552755 "for the http-request actions." );
2756- s -> last_entity .type = 1 ;
2756+ s -> last_entity .type = STRM_ENTITY_RULE ;
27572757 s -> last_entity .ptr = rule ;
27582758 rule_ret = HTTP_RULE_RES_ERROR ;
27592759 goto end ;
27602760 }
2761- s -> waiting_entity .type = 1 ;
2761+ s -> waiting_entity .type = STRM_ENTITY_RULE ;
27622762 s -> waiting_entity .ptr = rule ;
27632763 rule_ret = HTTP_RULE_RES_YIELD ;
27642764 goto end ;
27652765 case ACT_RET_ERR :
27662766 rule_ret = HTTP_RULE_RES_ERROR ;
2767- s -> last_entity .type = 1 ;
2767+ s -> last_entity .type = STRM_ENTITY_RULE ;
27682768 s -> last_entity .ptr = rule ;
27692769 goto end ;
27702770 case ACT_RET_DONE :
27712771 rule_ret = HTTP_RULE_RES_DONE ;
2772- s -> last_entity .type = 1 ;
2772+ s -> last_entity .type = STRM_ENTITY_RULE ;
27732773 s -> last_entity .ptr = rule ;
27742774 goto end ;
27752775 case ACT_RET_DENY :
27762776 if (txn -> status == -1 )
27772777 txn -> status = 403 ;
27782778 rule_ret = HTTP_RULE_RES_DENY ;
2779- s -> last_entity .type = 1 ;
2779+ s -> last_entity .type = STRM_ENTITY_RULE ;
27802780 s -> last_entity .ptr = rule ;
27812781 goto end ;
27822782 case ACT_RET_ABRT :
27832783 rule_ret = HTTP_RULE_RES_ABRT ;
2784- s -> last_entity .type = 1 ;
2784+ s -> last_entity .type = STRM_ENTITY_RULE ;
27852785 s -> last_entity .ptr = rule ;
27862786 goto end ;
27872787 case ACT_RET_INV :
27882788 rule_ret = HTTP_RULE_RES_BADREQ ;
2789- s -> last_entity .type = 1 ;
2789+ s -> last_entity .type = STRM_ENTITY_RULE ;
27902790 s -> last_entity .ptr = rule ;
27912791 goto end ;
27922792 }
@@ -2797,15 +2797,15 @@ static enum rule_result http_req_get_intercept_rule(struct proxy *px, struct lis
27972797 switch (rule -> action ) {
27982798 case ACT_ACTION_ALLOW :
27992799 rule_ret = HTTP_RULE_RES_STOP ;
2800- s -> last_entity .type = 1 ;
2800+ s -> last_entity .type = STRM_ENTITY_RULE ;
28012801 s -> last_entity .ptr = rule ;
28022802 goto end ;
28032803
28042804 case ACT_ACTION_DENY :
28052805 txn -> status = rule -> arg .http_reply -> status ;
28062806 txn -> http_reply = rule -> arg .http_reply ;
28072807 rule_ret = HTTP_RULE_RES_DENY ;
2808- s -> last_entity .type = 1 ;
2808+ s -> last_entity .type = STRM_ENTITY_RULE ;
28092809 s -> last_entity .ptr = rule ;
28102810 goto end ;
28112811
@@ -2814,7 +2814,7 @@ static enum rule_result http_req_get_intercept_rule(struct proxy *px, struct lis
28142814 txn -> status = rule -> arg .http_reply -> status ;
28152815 txn -> http_reply = rule -> arg .http_reply ;
28162816 rule_ret = HTTP_RULE_RES_DENY ;
2817- s -> last_entity .type = 1 ;
2817+ s -> last_entity .type = STRM_ENTITY_RULE ;
28182818 s -> last_entity .ptr = rule ;
28192819 goto end ;
28202820
@@ -2825,7 +2825,7 @@ static enum rule_result http_req_get_intercept_rule(struct proxy *px, struct lis
28252825 break ;
28262826
28272827 rule_ret = ret ? HTTP_RULE_RES_ABRT : HTTP_RULE_RES_ERROR ;
2828- s -> last_entity .type = 1 ;
2828+ s -> last_entity .type = STRM_ENTITY_RULE ;
28292829 s -> last_entity .ptr = rule ;
28302830 goto end ;
28312831 }
@@ -2916,7 +2916,7 @@ static enum rule_result http_res_get_intercept_rule(struct proxy *px, struct lis
29162916 act_opts |= ACT_OPT_FINAL ;
29172917
29182918 if (!(s -> scb -> flags & SC_FL_ERROR ) & !(s -> res .flags & (CF_READ_TIMEOUT |CF_WRITE_TIMEOUT ))) {
2919- s -> waiting_entity .type = 0 ;
2919+ s -> waiting_entity .type = STRM_ENTITY_NONE ;
29202920 s -> waiting_entity .ptr = NULL ;
29212921 }
29222922
@@ -2925,7 +2925,7 @@ static enum rule_result http_res_get_intercept_rule(struct proxy *px, struct lis
29252925 break ;
29262926 case ACT_RET_STOP :
29272927 rule_ret = HTTP_RULE_RES_STOP ;
2928- s -> last_entity .type = 1 ;
2928+ s -> last_entity .type = STRM_ENTITY_RULE ;
29292929 s -> last_entity .ptr = rule ;
29302930 goto end ;
29312931 case ACT_RET_YIELD :
@@ -2934,40 +2934,40 @@ static enum rule_result http_res_get_intercept_rule(struct proxy *px, struct lis
29342934 send_log (s -> be , LOG_WARNING ,
29352935 "Internal error: action yields while it is no long allowed "
29362936 "for the http-response/http-after-response actions." );
2937- s -> last_entity .type = 1 ;
2937+ s -> last_entity .type = STRM_ENTITY_RULE ;
29382938 s -> last_entity .ptr = rule ;
29392939 rule_ret = HTTP_RULE_RES_ERROR ;
29402940 goto end ;
29412941 }
2942- s -> waiting_entity .type = 1 ;
2942+ s -> waiting_entity .type = STRM_ENTITY_RULE ;
29432943 s -> waiting_entity .ptr = rule ;
29442944 rule_ret = HTTP_RULE_RES_YIELD ;
29452945 goto end ;
29462946 case ACT_RET_ERR :
29472947 rule_ret = HTTP_RULE_RES_ERROR ;
2948- s -> last_entity .type = 1 ;
2948+ s -> last_entity .type = STRM_ENTITY_RULE ;
29492949 s -> last_entity .ptr = rule ;
29502950 goto end ;
29512951 case ACT_RET_DONE :
29522952 rule_ret = HTTP_RULE_RES_DONE ;
2953- s -> last_entity .type = 1 ;
2953+ s -> last_entity .type = STRM_ENTITY_RULE ;
29542954 s -> last_entity .ptr = rule ;
29552955 goto end ;
29562956 case ACT_RET_DENY :
29572957 if (txn -> status == -1 )
29582958 txn -> status = 502 ;
29592959 rule_ret = HTTP_RULE_RES_DENY ;
2960- s -> last_entity .type = 1 ;
2960+ s -> last_entity .type = STRM_ENTITY_RULE ;
29612961 s -> last_entity .ptr = rule ;
29622962 goto end ;
29632963 case ACT_RET_ABRT :
29642964 rule_ret = HTTP_RULE_RES_ABRT ;
2965- s -> last_entity .type = 1 ;
2965+ s -> last_entity .type = STRM_ENTITY_RULE ;
29662966 s -> last_entity .ptr = rule ;
29672967 goto end ;
29682968 case ACT_RET_INV :
29692969 rule_ret = HTTP_RULE_RES_BADREQ ;
2970- s -> last_entity .type = 1 ;
2970+ s -> last_entity .type = STRM_ENTITY_RULE ;
29712971 s -> last_entity .ptr = rule ;
29722972 goto end ;
29732973 }
@@ -2978,15 +2978,15 @@ static enum rule_result http_res_get_intercept_rule(struct proxy *px, struct lis
29782978 switch (rule -> action ) {
29792979 case ACT_ACTION_ALLOW :
29802980 rule_ret = HTTP_RULE_RES_STOP ; /* "allow" rules are OK */
2981- s -> last_entity .type = 1 ;
2981+ s -> last_entity .type = STRM_ENTITY_RULE ;
29822982 s -> last_entity .ptr = rule ;
29832983 goto end ;
29842984
29852985 case ACT_ACTION_DENY :
29862986 txn -> status = rule -> arg .http_reply -> status ;
29872987 txn -> http_reply = rule -> arg .http_reply ;
29882988 rule_ret = HTTP_RULE_RES_DENY ;
2989- s -> last_entity .type = 1 ;
2989+ s -> last_entity .type = STRM_ENTITY_RULE ;
29902990 s -> last_entity .ptr = rule ;
29912991 goto end ;
29922992
@@ -2997,7 +2997,7 @@ static enum rule_result http_res_get_intercept_rule(struct proxy *px, struct lis
29972997 break ;
29982998
29992999 rule_ret = ret ? HTTP_RULE_RES_ABRT : HTTP_RULE_RES_ERROR ;
3000- s -> last_entity .type = 1 ;
3000+ s -> last_entity .type = STRM_ENTITY_RULE ;
30013001 s -> last_entity .ptr = rule ;
30023002 goto end ;
30033003 }
0 commit comments