doc/documentation/manual-pages/ja/man3/pcap.3
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

339 lines
8.5 KiB
Groff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.\" Copyright (c) 1994, 1996, 1997
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that: (1) source code distributions
.\" retain the above copyright notice and this paragraph in its entirety, (2)
.\" distributions including binary code include the above copyright notice and
.\" this paragraph in its entirety in the documentation or other materials
.\" provided with the distribution, and (3) all advertising materials mentioning
.\" features or use of this software display the following acknowledgement:
.\" ``This product includes software developed by the University of California,
.\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
.\" the University nor the names of its contributors may be used to endorse
.\" or promote products derived from this software without specific prior
.\" written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\" $Id: pcap.3,v 1.3 2006-03-08 07:43:48 metal Exp $
.\"
.\" $FreeBSD$
.TH PCAP 3 "24 June 1998"
.SH ̾¾Î
pcap \- Packet Capture ¥é¥¤¥Ö¥é¥ê
.SH ½ñ¼°
.nf
.ft B
#include <pcap.h>
.ft
.LP
.ft B
pcap_t *pcap_open_live(char *device, int snaplen,
.ti +8
int promisc, int to_ms, char *ebuf)
pcap_t *pcap_open_offline(char *fname, char *ebuf)
pcap_dumper_t *pcap_dump_open(pcap_t *p, char *fname)
.ft
.LP
.ft B
char errbuf[PCAP_ERRBUF_SIZE];
char *pcap_lookupdev(char *errbuf)
int pcap_lookupnet(char *device, bpf_u_int32 *netp,
.ti +8
bpf_u_int32 *maskp, char *errbuf)
.ft
.LP
.ft B
int pcap_dispatch(pcap_t *p, int cnt,
.ti +8
pcap_handler callback, u_char *user)
int pcap_loop(pcap_t *p, int cnt,
.ti +8
pcap_handler callback, u_char *user)
void pcap_dump(u_char *user, struct pcap_pkthdr *h,
.ti +8
u_char *sp)
.ft
.LP
.ft B
int pcap_compile(pcap_t *p, struct bpf_program *fp,
.ti +8
char *str, int optimize, bpf_u_int32 netmask)
int pcap_setfilter(pcap_t *p, struct bpf_program *fp)
.ft
.LP
.ft B
u_char *pcap_next(pcap_t *p, struct pcap_pkthdr *h)
.ft
.LP
.ft B
int pcap_datalink(pcap_t *p)
int pcap_snapshot(pcap_t *p)
int pcap_is_swapped(pcap_t *p)
int pcap_major_version(pcap_t *p)
int pcap_minor_version(pcap_t *p)
int pcap_stats(pcap_t *p, struct pcap_stat *ps)
FILE *pcap_file(pcap_t *p)
int pcap_fileno(pcap_t *p)
void pcap_perror(pcap_t *p, char *prefix)
char *pcap_geterr(pcap_t *p)
char *pcap_strerror(int error)
.ft
.LP
.ft B
void pcap_close(pcap_t *p)
void pcap_dump_close(pcap_dumper_t *p)
.ft
.fi
.SH ²òÀâ
Packet Capture ¥é¥¤¥Ö¥é¥ê¤Ï¡¢¥Ñ¥±¥Ã¥È³ÍÆÀ¥·¥¹¥Æ¥à¤Î¹â¥ì¥Ù¥ë¤Ê¥¤¥ó¥¿¥Õ¥§¡¼
¥¹¤òÄ󶡤·¤Þ¤¹¡£¤³¤Î¥á¥«¥Ë¥º¥à¤Ç¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¤Î¤¹¤Ù¤Æ¤Î¥Ñ¥±¥Ã¥È¤Ë¡¢
¤½¤Î¾¤Î¥Û¥¹¥ÈÍѤǤ¢¤Ã¤Æ¤â¥¢¥¯¥»¥¹¤Ç¤­¤Þ¤¹¡£
.SH ¥ë¡¼¥Á¥ó
.B pcap_open_live()
¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¤Î¥Ñ¥±¥Ã¥È¤òÄ´¤Ù¤ë¤¿¤á¤Î¥Ñ¥±¥Ã¥È³ÍÆÀµ­½Ò»Ò¤ò¼èÆÀ¤¹¤ë¤¿
¤á¤ËÍѤ¤¤Þ¤¹¡£
.I device
¤Ï¡¢³«¤¯¥Í¥Ã¥È¥ï¡¼¥¯¥Ç¥Ð¥¤¥¹¤ò»ØÄꤹ¤ë¥¹¥È¥ê¥ó¥°¤Ç¤¹¡£
.I snaplen
¤Ï¡¢³ÍÆÀ¤¹¤ëºÇÂç¥Ð¥¤¥È¿ô¤ò»ØÄꤷ¤Þ¤¹¡£
.I promisc
¤Ï¡¢¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò̵º¹Ê̥⡼¥É¤Ë¤¹¤ë¤«¤É¤¦¤«¤ò»ØÄꤷ¤Þ¤¹(¤³¤Î¥Ñ¥é¥á¡¼
¥¿¤¬µ¶¤Ç¤¢¤ë¾ì¹ç¤Ç¤â¡¢¤½¤Î¾¤ÎÍýͳ¤Ç¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬Ìµº¹Ê̥⡼¥É¤Ë¤Ê¤ë
¤³¤È¤¬¤¢¤ê¤Þ¤¹)¡£
.I to_ms
¤Ï¡¢Æɹþ¤ß¥¿¥¤¥à¥¢¥¦¥È¤ò¥ß¥êÉÃñ°Ì¤Ç»ØÄꤷ¤Þ¤¹¡£
.I ebuf
¤Ï¡¢¥¨¥é¡¼¥Æ¥­¥¹¥È¤òÌ᤹¤¿¤á¤Ë»ÈÍѤ¹¤ë¤â¤Î¤Ç¡¢
.B pcap_open_live()
¤¬¥¨¥é¡¼¤Ë¤Ê¤ê¡¢
.BR NULL
¤¬Ìᤵ¤ì¤¿¾ì¹ç¤ËÀßÄꤵ¤ì¤Þ¤¹¡£
.PP
.B pcap_open_offline()
¤Ï¡¢Æɹþ¤ßÍѤΡÖÊݸ¥Õ¥¡¥¤¥ë¡×¤ò³«¤¯¤¿¤á¤Ë¸Æ¤Ó½Ð¤·¤Þ¤¹¡£
.I fname
¤Ï¡¢³«¤¯¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢
.B tcpdump(1)
¤È
.B tcpslice(1)
¤Ç»ÈÍѤ¹¤ë¥Õ¥¡¥¤¥ë¤ÈƱ¤¸¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥¨¥é¡¼¥Æ¥­¥¹¥È¤¬Ìá
¤µ¤ì¤ë¾ì¹ç¡¢
.BR stdin
.I ebuf
stdin.ebuf
¤Î¥·¥Î¥Ë¥à¤Ç̾Á°¡Ö-¡×¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢
.B pcap_open_offline()
¤¬¥¨¥é¡¼¤Ë¤Ê¤ê¡¢
.BR NULL
¤¬Ìᤵ¤ì¤ë¾ì¹ç¤ËÀßÄꤵ¤ì¤Þ¤¹¡£
.PP
.B pcap_dump_open()
¤Ï¡¢½ñ¹þ¤ßÍѤΡÖÊݸ¥Õ¥¡¥¤¥ë¡×¤ò³«¤¯¤¿¤á¤Ë¸Æ¤Ó½Ð¤·¤Þ¤¹¡£¥¨¥é¡¼¤¬È¯À¸¤·
¤¿¾ì¹ç¤Ï¡¢
.BR stdout
.B NULL
¤Î¥·¥Î¥Ë¥à¤Ç̾Á°¡Ö-¡×¤¬Ìᤵ¤ì¤Þ¤¹¡£
.I p
¤Ï¡¢
.B pcap_open_offline()
¤«
.B pcap_open_live()
¤¬Ì᤹
.I pcap
¹½Â¤ÂΤǤ¹¡£
.I fname
¤Ï¡¢³«¤¯¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò»ØÄꤷ¤Þ¤¹¡£
.B NULL
¤¬Ìᤵ¤ì¤¿¾ì¹ç¤Ï¡¢
.B pcap_geterr()
¤ò»ÈÍѤ·¤Æ¥¨¥é¡¼¥Æ¥­¥¹¥È¤òÆþ¼ê¤Ç¤­¤Þ¤¹¡£
.PP
.B pcap_lookupdev()
¤Ï¡¢
.B pcap_open_live()
¤È
.B pcap_lookupnet()
¤Ç¤Î»ÈÍѤËŬ¤·¤¿¥Í¥Ã¥È¥ï¡¼¥¯¥Ç¥Ð¥¤¥¹¤Î¥Ý¥¤¥ó¥¿¤òÌᤷ¤Þ¤¹¡£¥¨¥é¡¼¤¬È¯À¸
¤·¤¿¾ì¹ç¤Ï
.B NULL
¤¬Ìᤵ¤ì¡¢
.I errbuf
¤ËŬÀڤʥ¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬Æþ¤ê¤Þ¤¹¡£
.PP
.B pcap_lookupnet()
¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥Ç¥Ð¥¤¥¹
.BR device
¤Ë´ØÏ¢¤¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯ÈÖ¹æ¤È¥Þ¥¹¥¯¤ò·è¤á¤Þ¤¹¡£
.I netp
¤È
.I maskp
¤Ï¡¢
.I bpf_u_int32
¥Ý¥¤¥ó¥¿¤Ç¤¹¡£¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï \-1 ¤¬Ìᤵ¤ì¤Þ¤¹¡£¤³¤Î¾ì¹ç¤Ï
.I errbuf
¤ËŬÀÚ¤Ê
¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬Æþ¤ê¤Þ¤¹¡£
.PP
.B pcap_dispatch()
¤Ï¡¢¥Ñ¥±¥Ã¥È¤Î¼ý½¸¤È½èÍý¤Ë»ÈÍѤ·¤Þ¤¹¡£
.I cnt
¤Ï¡¢Ìá¤ëÁ°¤Ë½èÍý¤¹¤ë¥Ñ¥±¥Ã¥È¤ÎºÇÂç¿ô¤ò»ØÄꤷ¤Þ¤¹¡£
.I cnt
¤ò \-1 ¤Ë¤¹¤ë¤È¡¢1¤Ä¤Î¥Ð¥Ã¥Õ¥¡¤Ç¼õ¤±¼è¤Ã¤¿¤¹¤Ù¤Æ¤Î¥Ñ¥±¥Ã¥È¤¬½èÍý¤µ¤ì¤Þ
¤¹¡£
.I cnt
¤ò 0¤Ë¤¹¤ë¤È¡¢¥¨¥é¡¼¤¬È¯À¸¤¹¤ë¤«¡¢
.B EOF
¤Ë㤹¤ë¤«¡¢Æɹþ¤ß¥¿¥¤¥à¥¢¥¦¥È¤Ë¤Ê¤ë(¥é¥¤¥ÖÆɹþ¤ß¤ò¹Ô¤Ê¤¤¡¢0°Ê³°¤ÎÆɹþ
¤ß¥¿¥¤¥à¥¢¥¦¥È¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç)¤Þ¤Ç¥Ñ¥±¥Ã¥È¤¬½èÍý¤µ¤ì¤Þ¤¹¡£
.I callback
¤Ï¡¢¸Æ¤Ó½Ð¤¹¥ë¡¼¥Á¥ó¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤Î¥ë¡¼¥Á¥ó¤Î¸Æ¤Ó½Ð¤·¤Ë»ÈÍѤ¹¤ë°ú¿ô
¤Ï¡¢
.BR pcap_dispatch()
¤«¤éÅϤµ¤ì¤ë
.I u_char
¥Ý¥¤¥ó¥¿¡¢
.I pcap_pkthdr
¹½Â¤ÂΤΥݥ¤¥ó¥¿(¼ÂºÝ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥Ø¥Ã¥À¤È¥Ç¡¼¥¿¤ÎÁ°¤ËÃÖ¤«¤ì¤ë)¡¢¥Ñ¥±¥Ã
¥È¥Ç¡¼¥¿¤Î
.I u_char
¥Ý¥¤¥ó¥¿¤Ç¤¹¡£Ìá¤êÃͤϡ¢Æɤ߹þ¤Þ¤ì¤¿¥Ñ¥±¥Ã¥È¤Î¿ô¤Ç¤¹¡£¡ÖÊݸ¥Õ¥¡¥¤¥ë¡×
¤Ç
.B EOF
¤Ë㤹¤ë¤È¥¼¥í¤¬Ìᤵ¤ì¤Þ¤¹¡£¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï \-1 ¤¬Ìᤵ¤ì¤Þ¤¹¡£
.B pcap_perror()
¤«
.BR pcap_geterr()
¤ò»ÈÍѤ·¤Æ¥¨¥é¡¼¥Æ¥­¥¹¥È¤òɽ¼¨¤·¤Æ¤¯¤À¤µ¤¤¡£
.PP
.B pcap_dump()
¤Ï¡¢
.BR pcap_dump_open()
¤Ç³«¤¤¤¿¡ÖÊݸ¥Õ¥¡¥¤¥ë¡×¤Ë¥Ñ¥±¥Ã¥È¤ò½ÐÎϤ·¤Þ¤¹¡£¸Æ¤Ó½Ð¤·°ú¿ô¤¬¡¢
.BR pcap_dispatch()
¤Ç¤Î»ÈÍѤËŬ¤·¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
.PP
.B pcap_compile()
¤Ï¡¢¥¹¥È¥ê¥ó¥°
.I str
¤ò¥Õ¥£¥ë¥¿¥×¥í¥°¥é¥à¤Ë¥³¥ó¥Ñ¥¤¥ë¤·¤Þ¤¹¡£
.I program
¤Ï¡¢
.I bpf_program
¹½Â¤ÂΤΥݥ¤¥ó¥¿¤Ç¡¢
.BR pcap_compile()
¤Ë¤è¤Ã¤ÆÃͤ¬ÆþÎϤµ¤ì¤Þ¤¹¡£
.I optimize
¤Ï¡¢ºîÀ®¤µ¤ì¤¿¥³¡¼¥É¤ÇºÇŬ²½¤ò¼Â¹Ô¤¹¤ë¤«¤É¤¦¤«¤òÀ©¸æ¤·¤Þ¤¹¡£
.I netmask
¤Ï¡¢¥í¡¼¥«¥ë¥Í¥Ã¥È¤Î¥Í¥Ã¥È¥Þ¥¹¥¯¤ò»ØÄꤷ¤Þ¤¹¡£
.PP
.B pcap_setfilter()
¤Ï¡¢¥Õ¥£¥ë¥¿¥×¥í¥°¥é¥à¤ò»ØÄꤷ¤Þ¤¹¡£
.I fp
¤Ï
.I bpf_program
¹½Â¤ÂΤÎÇÛÎó¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤Ç¡¢°ìÈÌŪ¤Ë¤Ï
.BR pcap_compile()
¤ò¸Æ¤Ó
½Ð¤·¤¿·ë²Ì¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï \-1 ¤¬Ìᤵ¤ì¡¢¥¨¥é¡¼
¤¬È¯À¸¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï 0¤¬Ìᤵ¤ì¤Þ¤¹¡£
.PP
.B pcap_loop()
¤Ï¡¢
.I cnt
¥Ñ¥±¥Ã¥È¤¬½èÍý¤µ¤ì¤ë¤«¥¨¥é¡¼¤¬È¯À¸¤¹¤ë¤Þ¤Ç¥Ñ¥±¥Ã¥È¤ÎÆɹþ¤ß¤¬Â³¤¯¤³¤È¤ò
½ü¤¤¤Æ¡¢
.B pcap_dispatch()
¤ÈƱ¤¸¤Ç¤¹¡£¥é¥¤¥ÖÆɹþ¤ß¥¿¥¤¥à¥¢¥¦¥È¤¬È¯À¸¤·¤Æ¤âÌá¤ê¤Þ¤»¤ó¡£
.B pcap_open_live()
¤Ë 0°Ê³°¤ÎÆɹþ¤ß¥¿¥¤¥à¥¢¥¦¥È¤ò»ØÄꤷ¤Æ
.B pcap_dispatch()
¤ò¸Æ¤Ó½Ð¤¹¤È¡¢¥¿¥¤¥à¥¢¥¦¥È¤¬È¯À¸¤·¤¿¾ì¹ç¤ËÆϤ¤¤¿¥Ñ¥±¥Ã¥È¤Î¼õ¿®¤È½èÍý¤¬
¤Ç¤­¤Þ¤¹¡£
.I cnt
¤ËÉé¤ÎÃͤò»ØÄꤹ¤ë¤È¡¢
.B pcap_loop()
¤Ï̵¸Â¤Ë¥ë¡¼¥×¤·¤Þ¤¹(ºÇÄã¤Ç¤â¥¨¥é¡¼¤¬È¯À¸¤¹¤ë¤Þ¤Ç¥ë¡¼¥×¤·¤Þ¤¹)¡£
.PP
.B pcap_next()
¤Ï¡¢¼¡¤Î¥Ñ¥±¥Ã¥È¤Î
.I u_char
¥Ý¥¤¥ó¥¿¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_datalink()
¤Ï¡¢
.BR DLT_EN10MB
¤Ê¤É¤Î¥ê¥ó¥¯¥ì¥¤¥ä¥¿¥¤¥×¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_snapshot()
¤Ï¡¢
.B pcap_open_live
¤ò¸Æ¤Ó½Ð¤·¤¿¾ì¹ç¤Ë»ØÄꤵ¤ì¤ë¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ÎŤµ¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_is_swapped()
¤Ï¡¢¸½ºß¤Î¡ÖÊݸ¥Õ¥¡¥¤¥ë¡×¤¬¡¢¸½ºß¤Î¥·¥¹¥Æ¥à¤È¤Ï°Û¤Ê¤ë¥Ð¥¤¥È¥ª¡¼¥À¤ò»È
ÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ë¿¿¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_major_version()
¤Ï¡¢Êݸ¥Õ¥¡¥¤¥ë¤Î½ñ¹þ¤ß¤Ë»ÈÍѤ·¤¿ pcap ¤Î¥á¥¸¥ã¡¼¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_minor_version()
¤Ï¡¢Êݸ¥Õ¥¡¥¤¥ë¤Î½ñ¹þ¤ß¤Ë»ÈÍѤ·¤¿ pcap ¤Î¥Þ¥¤¥Ê¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_file()
¤Ï¡ÖÊݸ¥Õ¥¡¥¤¥ë¡×¤Î̾Á°¤òÌᤷ¤Þ¤¹¡£
.PP
.B int pcap_stats()
¤Ï 0¤òÌᤷ¡¢
.B pcap_stat
¹½Â¤ÂΤ˥ǡ¼¥¿¤òÆþÎϤ·¤Þ¤¹¡£Ãͤϡ¢¼Â¹Ô¤Î³«»Ï¤«¤é¸Æ¤Ó½Ð¤·¤Þ¤Ç¤Î¥Ñ¥±¥Ã¥È
Åý·×¤òɽ¤·¤Þ¤¹¡£¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï´ðÁäȤʤë¥Ñ¥±¥Ã¥È³ÍÆÀ¤Ç¥Ñ
¥±¥Ã¥ÈÅý·×¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï \-1 ¤¬Ìᤵ¤ì¤Þ¤¹¡£
.B pcap_perror()
¤«
.B pcap_geterr()
¤Ç¥¨¥é¡¼¥Æ¥­¥¹¥È¤òÆþ¼ê¤·¤Æ¤¯¤À¤µ¤¤¡£
.PP
.B pcap_fileno()
¤Ï¡¢¡ÖÊݸ¥Õ¥¡¥¤¥ë¡×¤Î¥Õ¥¡¥¤¥ëµ­½Ò»ÒÈÖ¹æ¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_perror()
¤Ï¡¢ºÇ¸å¤Î pcap ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¤Î¥Æ¥­¥¹¥È¤ò
.IR prefix
¤Ë³¤±¤Æ
.BR stderr
¤Ë½ÐÎϤ·¤Þ¤¹¡£
.PP
.B pcap_geterr()
¤Ï¡¢ºÇ¸å¤Î pcap ¥é¥¤¥Ö¥é¥ê¥¨¥é¡¼¤Ë´Ø¤¹¤ë¥¨¥é¡¼¥Æ¥­¥¹¥È¤òÌᤷ¤Þ¤¹¡£
.PP
.B pcap_strerror()
¤Ï¡¢
.BR strerror(1)
¤¬»ÈÍѤǤ­¤Ê¤¤¾ì¹ç¤Ë»ÈÍѤǤ­¤Þ¤¹¡£
.PP
.B pcap_close()
¤Ï¡¢
.I p
¤Ë´ØÏ¢¤¹¤ë¥Õ¥¡¥¤¥ë¤òÊĤ¸¡¢¥ê¥½¡¼¥¹¤Î³ä¤ê¿¶¤ê¤ò²ò½ü¤·¤Þ¤¹¡£
.PP
.B pcap_dump_close()
¤Ï¡ÖÊݸ¥Õ¥¡¥¤¥ë¡×¤òÊĤ¸¤Þ¤¹¡£
.SH ´ØÏ¢¹àÌÜ
tcpdump(1),
tcpslice(1)
.SH ºî¼Ô
¥«¥ê¥Õ¥©¥ë¥Ë¥¢Âç³Ø¥Ð¡¼¥¯¥ì¡¼¹»¡¢Lawrence Berkeley National Laboratory
¤Î Van Jacobson¡¢Craig Leres¡¢Steven McCanne
.LP
¸½¹Ô¥Ð¡¼¥¸¥ç¥ó¤Ï¡¢°Ê²¼¤Îƿ̾ ftp ¤Ç»ÈÍѤǤ­¤Þ¤¹¡£
.LP
.RS
.I ftp://ftp.ee.lbl.gov/libpcap.tar.Z
.RE
.SH ¥Ð¥°
¥Ð¥°¤òȯ¸«¤·¤¿¾ì¹ç¤Ï¡¢libpcap@ee.lbl.gov ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£