Lines Matching refs:data
68 struct xt_ipvs_mtinfo *data = cb->data;
73 data->l4proto = cb->val.protocol;
76 memcpy(&data->vaddr, &cb->val.haddr, sizeof(cb->val.haddr));
77 memcpy(&data->vmask, &cb->val.hmask, sizeof(cb->val.hmask));
81 data->bitmask |= XT_IPVS_DIR;
82 data->invert &= ~XT_IPVS_DIR;
84 data->bitmask |= XT_IPVS_DIR;
85 data->invert |= XT_IPVS_DIR;
93 data->fwd_method = IP_VS_CONN_F_DROUTE;
95 data->fwd_method = IP_VS_CONN_F_TUNNEL;
97 data->fwd_method = IP_VS_CONN_F_MASQ;
103 data->bitmask |= 1 << cb->entry->id;
105 data->invert |= 1 << cb->entry->id;
110 struct xt_ipvs_mtinfo *info = cb->data;
157 static void ipvs_mt_dump(const void *ip, const struct xt_ipvs_mtinfo *data,
160 if (data->bitmask == XT_IPVS_IPVS_PROPERTY) {
161 if (data->invert & XT_IPVS_IPVS_PROPERTY)
166 if (data->bitmask & XT_IPVS_PROTO) {
167 if (data->invert & XT_IPVS_PROTO)
169 printf(" %sproto %u", prefix, data->l4proto);
172 if (data->bitmask & XT_IPVS_VADDR) {
173 if (data->invert & XT_IPVS_VADDR)
177 ipvs_mt_dump_addr(&data->vaddr, &data->vmask, family, numeric);
180 if (data->bitmask & XT_IPVS_VPORT) {
181 if (data->invert & XT_IPVS_VPORT)
184 printf(" %svport %u", prefix, ntohs(data->vport));
187 if (data->bitmask & XT_IPVS_DIR) {
188 if (data->invert & XT_IPVS_DIR)
194 if (data->bitmask & XT_IPVS_METHOD) {
195 if (data->invert & XT_IPVS_METHOD)
199 switch (data->fwd_method) {
216 if (data->bitmask & XT_IPVS_VPORTCTL) {
217 if (data->invert & XT_IPVS_VPORTCTL)
220 printf(" %svportctl %u", prefix, ntohs(data->vportctl));
227 const struct xt_ipvs_mtinfo *data = (const void *)match->data;
228 ipvs_mt_dump(ip, data, NFPROTO_IPV4, numeric, "");
234 const struct xt_ipvs_mtinfo *data = (const void *)match->data;
235 ipvs_mt_dump(ip, data, NFPROTO_IPV6, numeric, "");
240 const struct xt_ipvs_mtinfo *data = (const void *)match->data;
241 ipvs_mt_dump(ip, data, NFPROTO_IPV4, true, "--");
246 const struct xt_ipvs_mtinfo *data = (const void *)match->data;
247 ipvs_mt_dump(ip, data, NFPROTO_IPV6, true, "--");