Lines Matching refs:idx
99 int idx = 0;
106 mopGetHeader(pkt, &idx, &dst, &src, &proto, &len, trans);
107 code = mopGetChar(pkt, &idx);
249 int len, idx = 0;
252 mopGetHeader(pkt, &idx, &dst, &src, &proto, &len, trans);
310 int len, idx = 0;
314 mopGetHeader(pkt, &idx, &dst, &src, &proto, &len, trans);
316 code = mopGetChar(pkt, &idx);
435 mopPrintInfo(FILE *fd, const u_char *pkt, int *idx,
455 itype = mopGetShort(pkt,idx);
457 while (*idx < (int)(moplen + 2)) {
458 ilen = mopGetChar(pkt,idx);
461 tmpc = mopGetChar(pkt,idx);
462 *idx = *idx + tmpc;
465 uc1 = mopGetChar(pkt,idx);
466 uc2 = mopGetChar(pkt,idx);
467 uc3 = mopGetChar(pkt,idx);
472 tmps = mopGetShort(pkt,idx);
485 ucp = pkt + *idx; *idx = *idx + 6;
491 tmps = mopGetShort(pkt,idx);
496 tmps = mopGetShort(pkt,idx);
501 tmps = mopGetShort(pkt,idx);
506 ucp = pkt + *idx; *idx = *idx + 6;
512 ucp = pkt + *idx; *idx = *idx + 10;
518 device = mopGetChar(pkt,idx);
524 tmpc = mopGetChar(pkt,idx);
541 mopGetChar(pkt,idx));
548 tmpc = mopGetChar(pkt,idx);
576 tmpc = mopGetChar(pkt,idx);
594 tmps = mopGetShort(pkt,idx);
607 ucp = pkt + *idx;
608 *idx = *idx + ilen;
618 ucp = pkt + *idx;
619 *idx = *idx + ilen;
629 tmps = mopGetShort(pkt,idx);
637 ucp = pkt + *idx;
638 *idx = *idx + ilen;
648 ucp = pkt + *idx;
649 *idx = *idx + ilen;
660 ucp = pkt + *idx; *idx = *idx + ilen;
679 itype = mopGetShort(pkt,idx);