Module: Pcap

Defined in:
lib/pcaplet.rb,
lib/pcap_misc.rb,
ext/Pcap.c

Defined Under Namespace

Classes: Capture, Dumper, Filter, ICMPDomain, ICMPDomainReply, ICMPEcho, ICMPEchoReply, ICMPIReq, ICMPIReqReply, ICMPMaskReply, ICMPMaskReq, ICMPPacket, ICMPParamProb, ICMPRedirect, ICMPRouterAdvert, ICMPRouterSolicit, ICMPSourceQuench, ICMPTRoute, ICMPTStamp, ICMPTStampReply, ICMPTimxceed, ICMPUnreach, IPAddress, IPPacket, Packet, PcapError, Pcaplet, TCPPacket, TruncatedPacket, UDPPacket

Constant Summary collapse

IpPacket =

Backword compatibility

IPPacket
IpAddress =
IPAddress
TcpPacket =
TCPPacket
UdpPacket =
UDPPacket
DLT_NULL =
INT2NUM(DLT_NULL)
DLT_EN10MB =
INT2NUM(DLT_EN10MB)
DLT_EN3MB =
INT2NUM(DLT_EN3MB)
DLT_AX25 =
INT2NUM(DLT_AX25)
DLT_PRONET =
INT2NUM(DLT_PRONET)
DLT_CHAOS =
INT2NUM(DLT_CHAOS)
DLT_IEEE802 =
INT2NUM(DLT_IEEE802)
DLT_ARCNET =
INT2NUM(DLT_ARCNET)
DLT_SLIP =
INT2NUM(DLT_SLIP)
DLT_PPP =
INT2NUM(DLT_PPP)
DLT_FDDI =
INT2NUM(DLT_FDDI)
DLT_ATM_RFC1483 =
INT2NUM(DLT_ATM_RFC1483)
DLT_RAW =
INT2NUM(DLT_RAW)
DLT_SLIP_BSDOS =
INT2NUM(DLT_SLIP_BSDOS)
DLT_PPP_BSDOS =
INT2NUM(DLT_PPP_BSDOS)
Stat =
cPcapStat
ICMP_ECHOREPLY =
INT2NUM(ICMP_ECHOREPLY)
ICMP_UNREACH =
INT2NUM(ICMP_UNREACH)
ICMP_SOURCEQUENCH =
INT2NUM(ICMP_SOURCEQUENCH)
ICMP_REDIRECT =
INT2NUM(ICMP_REDIRECT)
ICMP_ECHO =
INT2NUM(ICMP_ECHO)
ICMP_TIMXCEED =
INT2NUM(ICMP_TIMXCEED)
ICMP_PARAMPROB =
INT2NUM(ICMP_PARAMPROB)
ICMP_TSTAMP =
INT2NUM(ICMP_TSTAMP)
ICMP_TSTAMPREPLY =
INT2NUM(ICMP_TSTAMPREPLY)
ICMP_IREQ =
INT2NUM(ICMP_IREQ)
ICMP_IREQREPLY =
INT2NUM(ICMP_IREQREPLY)
ICMP_MASKREQ =
INT2NUM(ICMP_MASKREQ)
ICMP_MASKREPLY =
INT2NUM(ICMP_MASKREPLY)
ICMP_UNREACH_NET =

UNREACH codes

INT2NUM(ICMP_UNREACH_NET)
ICMP_UNREACH_HOST =
INT2NUM(ICMP_UNREACH_HOST)
ICMP_UNREACH_PROTOCOL =
INT2NUM(ICMP_UNREACH_PROTOCOL)
ICMP_UNREACH_PORT =
INT2NUM(ICMP_UNREACH_PORT)
ICMP_UNREACH_NEEDFRAG =
INT2NUM(ICMP_UNREACH_NEEDFRAG)
ICMP_UNREACH_SRCFAIL =
INT2NUM(ICMP_UNREACH_SRCFAIL)
ICMP_UNREACH_NET_UNKNOWN =
INT2NUM(ICMP_UNREACH_NET_UNKNOWN)
ICMP_UNREACH_HOST_UNKNOWN =
INT2NUM(ICMP_UNREACH_HOST_UNKNOWN)
ICMP_UNREACH_ISOLATED =
INT2NUM(ICMP_UNREACH_ISOLATED)
ICMP_UNREACH_NET_PROHIB =
INT2NUM(ICMP_UNREACH_NET_PROHIB)
ICMP_UNREACH_HOST_PROHIB =
INT2NUM(ICMP_UNREACH_HOST_PROHIB)
ICMP_UNREACH_TOSNET =
INT2NUM(ICMP_UNREACH_TOSNET)
ICMP_UNREACH_TOSHOST =
INT2NUM(ICMP_UNREACH_TOSHOST)
ICMP_UNREACH_FILTER_PROHIB =
INT2NUM(ICMP_UNREACH_FILTER_PROHIB)
ICMP_UNREACH_HOST_PRECEDENCE =
INT2NUM(ICMP_UNREACH_HOST_PRECEDENCE)
ICMP_UNREACH_PRECEDENCE_CUTOFF =
INT2NUM(ICMP_UNREACH_PRECEDENCE_CUTOFF)
ICMP_REDIRECT_NET =

REDIRECT codes

INT2NUM(ICMP_REDIRECT_NET)
ICMP_REDIRECT_HOST =
INT2NUM(ICMP_REDIRECT_HOST)
ICMP_REDIRECT_TOSNET =
INT2NUM(ICMP_REDIRECT_TOSNET)
ICMP_REDIRECT_TOSHOST =
INT2NUM(ICMP_REDIRECT_TOSHOST)
ICMP_TIMXCEED_INTRANS =

TIMEXCEED codes

INT2NUM(ICMP_TIMXCEED_INTRANS)
ICMP_TIMXCEED_REASS =
INT2NUM(ICMP_TIMXCEED_REASS)
ICMP_PARAMPROB_OPTABSENT =

PARAMPROB code

INT2NUM(ICMP_PARAMPROB_OPTABSENT)

Class Method Summary collapse

Class Method Details

.convert=Object



113
114
115
# File 'ext/Pcap.c', line 113

static VALUE
pcap_s_convert_set(self, val)
VALUE self;

.convert?Boolean

Returns:

  • (Boolean)


106
107
108
# File 'ext/Pcap.c', line 106

static VALUE
pcap_s_convert(self)
VALUE self;

.findalldevsObject



65
66
67
# File 'ext/Pcap.c', line 65

static VALUE
pcap_s_findalldevs(self)
VALUE self;

.lookupdevObject



52
53
54
# File 'ext/Pcap.c', line 52

static VALUE
pcap_s_lookupdev(self)
VALUE self;

.lookupnetObject



88
89
90
# File 'ext/Pcap.c', line 88

static VALUE
pcap_s_lookupnet(self, dev)
VALUE self;