Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_capture.c543 static int capfile_out; variable
579 capfile_out = open(name, O_CREAT | O_TRUNC | O_RDWR, 0666); in cap_open_write()
580 if (capfile_out < 0) in cap_open_write()
584 if (nwrite(capfile_out, snoop_id, snoop_idlen) == -1) in cap_open_write()
587 if (nwrite(capfile_out, &vers, sizeof (int)) == -1) in cap_open_write()
595 (void) close(capfile_out); in cap_close()
706 if (nwrite(capfile_out, &mac, sizeof (int)) == -1) in cap_write()
722 if (nwrite(capfile_out, &nhdr, sizeof (nhdr)) == -1) in cap_write()
725 if (nwrite(capfile_out, pktp, pktlen) == -1) in cap_write()