Home | History | Annotate | Download | only in utils

Lines Matching refs:obuf

150 static void xt_osf_parse_opt(struct xt_osf_opt *opt, __u16 *optnum, char *obuf, int olen)
156 ptr = &obuf[0];
162 switch (obuf[i]) {
165 ptr = xt_osf_strchr(&obuf[i], OPTDEL);
169 i += (int)(ptr - &obuf[i]);
175 ptr = xt_osf_strchr(&obuf[i], OPTDEL);
179 i += (int)(ptr - &obuf[i]);
185 ptr = xt_osf_strchr(&obuf[i], OPTDEL);
189 i += (int)(ptr - &obuf[i]);
195 ptr = xt_osf_strchr(&obuf[i], OPTDEL);
197 switch (obuf[i + 1]) {
215 val = strtoul(&obuf[i + 2], NULL, 10);
217 val = strtoul(&obuf[i + 1], NULL, 10);
218 i += (int)(ptr - &obuf[i]);
225 ptr = xt_osf_strchr(&obuf[i], OPTDEL);
227 if (obuf[i + 1] == '%')
232 val = strtoul(&obuf[i + 2], NULL, 10);
234 val = strtoul(&obuf[i + 1], NULL, 10);
235 i += (int)(ptr - &obuf[i]);
241 ptr = xt_osf_strchr(&obuf[i], OPTDEL);
245 i += (int)(ptr - &obuf[i]);
251 ptr = xt_osf_strchr(&obuf[i], OPTDEL);
254 i += (int)(ptr - &obuf[i]);
273 char obuf[MAXOPTSTRLEN];
293 memset(obuf, 0, sizeof(obuf));
347 cnt = snprintf(obuf, sizeof(obuf), "%s,", pbeg);
376 xt_osf_parse_opt(f.opt, &f.opt_num, obuf, sizeof(obuf));