Home
last modified time | relevance | path

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

/titanic_44/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); in cap_open_read()
621 if ((int)cap_buffp == -1) in cap_open_read()
626 cap_new = bcmp(cap_buffp, snoop_id, snoop_idlen) == 0; in cap_open_read()
633 cap_vers = ntohl(*(int *)(cap_buffp + snoop_idlen)); in cap_open_read()
634 cap_buffp += snoop_idlen + sizeof (int); in cap_open_read()
643 device_mac_type = ntohl(*((int *)cap_buffp)); in cap_open_read()
644 cap_buffp += sizeof (int); in cap_open_read()
665 word = (int *)cap_buffp; in cap_open_read()
674 if (mprotect(cap_buffp, cap_len, PROT_READ | PROT_WRITE) < 0) in cap_open_read()
[all …]