Searched refs:cap_buffp (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_capture.c598 static char *cap_buffp = NULL; variable
619 cap_buffp = mmap(0, cap_len, PROT_READ, MAP_PRIVATE, capfile_in, 0);
621 if ((int)cap_buffp == -1)
626 cap_new = bcmp(cap_buffp, snoop_id, snoop_idlen) == 0;
633 cap_vers = ntohl(*(int *)(cap_buffp + snoop_idlen));
634 cap_buffp += snoop_idlen + sizeof (int);
643 device_mac_type = ntohl(*((int *)cap_buffp));
644 cap_buffp += sizeof (int);
665 word = (int *)cap_buffp;
674 if (mprotect(cap_buffp, cap_le
[all...]

Completed in 94 milliseconds