• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iptables-1.4.12.1/extensions/

Lines Matching refs:cb

137 static void owner_mt_parse_v0(struct xt_option_call *cb)
139 struct ipt_owner_info *info = cb->data;
144 xtables_option_parse(cb);
145 switch (cb->entry->id) {
147 if ((pwd = getpwnam(cb->arg)) != NULL)
149 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
150 xtables_param_act(XTF_BAD_VALUE, "owner", "--uid-owner", cb->arg);
151 if (cb->invert)
157 if ((grp = getgrnam(cb->arg)) != NULL)
159 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
160 xtables_param_act(XTF_BAD_VALUE, "owner", "--gid-owner", cb->arg);
161 if (cb->invert)
167 if (cb->invert)
172 if (cb->invert)
177 if (cb->invert)
184 static void owner_mt6_parse_v0(struct xt_option_call *cb)
186 struct ip6t_owner_info *info = cb->data;
191 xtables_option_parse(cb);
192 switch (cb->entry->id) {
194 if ((pwd = getpwnam(cb->arg)) != NULL)
196 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
197 xtables_param_act(XTF_BAD_VALUE, "owner", "--uid-owner", cb->arg);
198 if (cb->invert)
204 if ((grp = getgrnam(cb->arg)) != NULL)
206 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
207 xtables_param_act(XTF_BAD_VALUE, "owner", "--gid-owner", cb->arg);
208 if (cb->invert)
214 if (cb->invert)
219 if (cb->invert)
242 static void owner_mt_parse(struct xt_option_call *cb)
244 struct xt_owner_match_info *info = cb->data;
249 xtables_option_parse(cb);
250 switch (cb->entry->id) {
252 if ((pwd = getpwnam(cb->arg)) != NULL)
255 owner_parse_range(cb->arg, &from, &to, "--uid-owner");
256 if (cb->invert)
263 if ((grp = getgrnam(cb->arg)) != NULL)
266 owner_parse_range(cb->arg, &from, &to, "--gid-owner");
267 if (cb->invert)
274 if (cb->invert)
281 static void owner_mt_check(struct xt_fcheck_call *cb)
283 if (cb->xflags == 0)