mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-19 02:29:31 -05:00
This one turns the various forms of "endp->flags <op> value" to their se_fl_<op>(cs) equivalent. That's basically the same as the previous one except that it acts on the stream endpoint itself instead of the conn_stream.
76 lines
898 B
Text
76 lines
898 B
Text
@@
|
|
struct cs_endpoint *endp;
|
|
expression e;
|
|
@@
|
|
(
|
|
- (endp->flags & (e))
|
|
+ se_fl_test(endp, e)
|
|
|
|
|
- (endp->flags & e)
|
|
+ se_fl_test(endp, e)
|
|
|
|
|
- endp->flags & (e)
|
|
+ se_fl_test(endp, e)
|
|
|
|
|
- endp->flags & e
|
|
+ se_fl_test(endp, e)
|
|
)
|
|
|
|
@@
|
|
struct cs_endpoint *endp;
|
|
expression e;
|
|
@@
|
|
(
|
|
- endp->flags |= (e)
|
|
+ se_fl_set(endp, e)
|
|
|
|
|
- endp->flags |= e
|
|
+ se_fl_set(endp, e)
|
|
)
|
|
|
|
@@
|
|
struct cs_endpoint *endp;
|
|
expression e;
|
|
@@
|
|
(
|
|
- endp->flags &= ~(e)
|
|
+ se_fl_clr(endp, e)
|
|
|
|
|
- endp->flags &= (e)
|
|
+ se_fl_clr(endp, ~e)
|
|
|
|
|
- endp->flags &= ~e
|
|
+ se_fl_clr(endp, e)
|
|
|
|
|
- endp->flags &= e
|
|
+ se_fl_clr(endp, ~e)
|
|
)
|
|
|
|
@@
|
|
struct cs_endpoint *endp;
|
|
@@
|
|
- endp->flags = 0
|
|
+ se_fl_zero(endp)
|
|
|
|
@@
|
|
struct cs_endpoint *endp;
|
|
expression e;
|
|
@@
|
|
(
|
|
- endp->flags = (e)
|
|
+ se_fl_setall(endp, e)
|
|
|
|
|
- endp->flags = e
|
|
+ se_fl_setall(endp, e)
|
|
)
|
|
|
|
@@
|
|
struct cs_endpoint *endp;
|
|
@@
|
|
(
|
|
- (endp->flags)
|
|
+ se_fl_get(endp)
|
|
|
|
|
- endp->flags
|
|
+ se_fl_get(endp)
|
|
)
|