Lines Matching refs:req
38 struct flnl_request *req = REQUEST_CAST(obj);
40 if (req)
41 nl_addr_put(req->lr_addr);
94 void flnl_request_set_fwmark(struct flnl_request *req, uint64_t fwmark)
96 req->lr_fwmark = fwmark;
97 req->ce_mask |= REQUEST_ATTR_FWMARK;
100 uint64_t flnl_request_get_fwmark(struct flnl_request *req)
102 if (req->ce_mask & REQUEST_ATTR_FWMARK)
103 return req->lr_fwmark;
108 void flnl_request_set_tos(struct flnl_request *req, int tos)
110 req->lr_tos = tos;
111 req->ce_mask |= REQUEST_ATTR_TOS;
114 int flnl_request_get_tos(struct flnl_request *req)
116 if (req->ce_mask & REQUEST_ATTR_TOS)
117 return req->lr_tos;
122 void flnl_request_set_scope(struct flnl_request *req, int scope)
124 req->lr_scope = scope;
125 req->ce_mask |= REQUEST_ATTR_SCOPE;
128 int flnl_request_get_scope(struct flnl_request *req)
130 if (req->ce_mask & REQUEST_ATTR_SCOPE)
131 return req->lr_scope;
136 void flnl_request_set_table(struct flnl_request *req, int table)
138 req->lr_table = table;
139 req->ce_mask |= REQUEST_ATTR_TABLE;
142 int flnl_request_get_table(struct flnl_request *req)
144 if (req->ce_mask & REQUEST_ATTR_TABLE)
145 return req->lr_table;
150 int flnl_request_set_addr(struct flnl_request *req, struct nl_addr *addr)
155 if (req->lr_addr)
156 nl_addr_put(req->lr_addr);
159 req->lr_addr = addr;
161 req->ce_mask |= REQUEST_ATTR_ADDR;
166 struct nl_addr *flnl_request_get_addr(struct flnl_request *req)
168 if (req->ce_mask & REQUEST_ATTR_ADDR)
169 return req->lr_addr;