blackfoundry-pcap 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  require 'jeweler'
13
13
  Jeweler::Tasks.new do |s|
14
- s.version = '0.2.2'
14
+ s.version = '0.2.3'
15
15
  s.name = 'blackfoundry-pcap'
16
16
  s.summary = 'extensions to ruby-pcap'
17
17
  s.email = 'david@blackfoundry.com'
@@ -20,6 +20,6 @@ Jeweler::Tasks.new do |s|
20
20
  eod
21
21
  s.executables = []
22
22
  s.authors = ['David Turnbull']
23
- s.files = ['Rakefile', 'lib'] + Dir['ext/**'] + Dir['lib/**'] - Dir['ext/*.o']
23
+ s.files = ['Rakefile', 'lib'] + Dir['ext/**'] + Dir['lib/**']
24
24
  end
25
25
 
@@ -4,67 +4,84 @@ SHELL = /bin/sh
4
4
  #### Start of system configuration section. ####
5
5
 
6
6
  srcdir = .
7
- topdir = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir):$(topdir):$(hdrdir)
7
+ topdir = /Users/david/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1
8
+ hdrdir = /Users/david/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1
9
+ arch_hdrdir = /Users/david/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/$(arch)
10
+ VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
11
+ prefix = $(DESTDIR)/Users/david/.rvm/rubies/ruby-1.9.2-p290
12
+ rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
10
13
  exec_prefix = $(prefix)
11
- prefix = $(DESTDIR)/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr
12
- sharedstatedir = $(prefix)/com
13
- mandir = $(DESTDIR)/usr/share/man
14
- psdir = $(docdir)
15
- oldincludedir = $(DESTDIR)/usr/include
14
+ vendorhdrdir = $(rubyhdrdir)/vendor_ruby
15
+ sitehdrdir = $(rubyhdrdir)/site_ruby
16
+ rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
17
+ vendordir = $(rubylibprefix)/vendor_ruby
18
+ sitedir = $(rubylibprefix)/site_ruby
19
+ ridir = $(datarootdir)/$(RI_BASE_NAME)
20
+ mandir = $(datarootdir)/man
16
21
  localedir = $(datarootdir)/locale
17
- bindir = $(exec_prefix)/bin
18
- libexecdir = $(exec_prefix)/libexec
19
- sitedir = $(DESTDIR)/Library/Ruby/Site
22
+ libdir = $(exec_prefix)/lib
23
+ psdir = $(docdir)
24
+ pdfdir = $(docdir)
25
+ dvidir = $(docdir)
20
26
  htmldir = $(docdir)
21
- vendorarchdir = $(vendorlibdir)/$(sitearch)
27
+ infodir = $(datarootdir)/info
28
+ docdir = $(datarootdir)/doc/$(PACKAGE)
29
+ oldincludedir = $(DESTDIR)/usr/include
22
30
  includedir = $(prefix)/include
23
- infodir = $(DESTDIR)/usr/share/info
24
- vendorlibdir = $(vendordir)/$(ruby_version)
31
+ localstatedir = $(prefix)/var
32
+ sharedstatedir = $(prefix)/com
25
33
  sysconfdir = $(prefix)/etc
26
- libdir = $(exec_prefix)/lib
27
- sbindir = $(exec_prefix)/sbin
28
- rubylibdir = $(libdir)/ruby/$(ruby_version)
29
- docdir = $(datarootdir)/doc/$(PACKAGE)
30
- dvidir = $(docdir)
31
- vendordir = $(libdir)/ruby/vendor_ruby
34
+ datadir = $(datarootdir)
32
35
  datarootdir = $(prefix)/share
33
- pdfdir = $(docdir)
36
+ libexecdir = $(exec_prefix)/libexec
37
+ sbindir = $(exec_prefix)/sbin
38
+ bindir = $(exec_prefix)/bin
39
+ rubylibdir = $(rubylibprefix)/$(ruby_version)
34
40
  archdir = $(rubylibdir)/$(arch)
35
- sitearchdir = $(sitelibdir)/$(sitearch)
36
- datadir = $(datarootdir)
37
- localstatedir = $(prefix)/var
38
41
  sitelibdir = $(sitedir)/$(ruby_version)
42
+ sitearchdir = $(sitelibdir)/$(sitearch)
43
+ vendorlibdir = $(vendordir)/$(ruby_version)
44
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
39
45
 
40
46
  CC = gcc
47
+ CXX = g++
41
48
  LIBRUBY = $(LIBRUBY_SO)
42
49
  LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
43
50
  LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
44
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)
51
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
52
+ OUTFLAG = -o
53
+ COUTFLAG = -o
45
54
 
46
55
  RUBY_EXTCONF_H =
47
- CFLAGS = -fno-common -I/usr/local/include
48
- INCFLAGS = -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I.
56
+ cflags = $(optflags) $(debugflags) $(warnflags)
57
+ optflags = -O3
58
+ debugflags = -ggdb
59
+ warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
60
+ CFLAGS = -fno-common -I/usr/local/include
61
+ INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
49
62
  DEFS =
50
- CPPFLAGS = -DHAVE_HSTRERROR -DHAVE_PCAP_H -DHAVE_PCAP_COMPILE_NOPCAP -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
51
- CXXFLAGS = $(CFLAGS)
63
+ CPPFLAGS = -DHAVE_HSTRERROR -DHAVE_PCAP_H -DHAVE_PCAP_COMPILE_NOPCAP -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)
64
+ CXXFLAGS = $(CFLAGS) $(cxxflags)
52
65
  ldflags = -L/usr/local/lib
53
- dldflags =
54
- archflag =
55
- DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
56
- LDSHARED = cc -arch x86_64 -pipe -bundle -undefined dynamic_lookup
66
+ dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace
67
+ ARCH_FLAG =
68
+ DLDFLAGS = $(ldflags) $(dldflags)
69
+ LDSHARED = $(CC) -dynamic -bundle
70
+ LDSHAREDXX = $(CXX) -dynamic -bundle
57
71
  AR = ar
58
72
  EXEEXT =
59
73
 
74
+ RUBY_BASE_NAME = ruby
60
75
  RUBY_INSTALL_NAME = ruby
61
- RUBY_SO_NAME = ruby
62
- arch = universal-darwin10.0
63
- sitearch = universal-darwin10.0
64
- ruby_version = 1.8
65
- ruby = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
76
+ RUBY_SO_NAME = ruby.1.9.1
77
+ arch = x86_64-darwin11.2.0
78
+ sitearch = $(arch)
79
+ ruby_version = 1.9.1
80
+ ruby = /Users/david/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
66
81
  RUBY = $(ruby)
67
82
  RM = rm -f
83
+ RM_RF = $(RUBY) -run -e rm -- -rf
84
+ RMDIRS = $(RUBY) -run -e rmdir -- -p
68
85
  MAKEDIRS = mkdir -p
69
86
  INSTALL = /usr/bin/install -c
70
87
  INSTALL_PROG = $(INSTALL) -m 0755
@@ -81,12 +98,13 @@ DEFFILE =
81
98
 
82
99
  CLEANFILES = mkmf.log
83
100
  DISTCLEANFILES =
101
+ DISTCLEANDIRS =
84
102
 
85
103
  extout =
86
104
  extout_prefix =
87
105
  target_prefix =
88
106
  LOCAL_LIBS =
89
- LIBS = $(LIBRUBYARG_SHARED) -lpcap -lpthread -ldl
107
+ LIBS = $(LIBRUBYARG_SHARED) -lpcap -lpthread -ldl -lobjc
90
108
  SRCS = icmp_packet.c ip_packet.c packet.c Pcap.c tcp_packet.c udp_packet.c
91
109
  OBJS = icmp_packet.o ip_packet.o packet.o Pcap.o tcp_packet.o udp_packet.o
92
110
  TARGET = pcap
@@ -98,28 +116,40 @@ BINDIR = $(bindir)
98
116
  RUBYCOMMONDIR = $(sitedir)$(target_prefix)
99
117
  RUBYLIBDIR = $(sitelibdir)$(target_prefix)
100
118
  RUBYARCHDIR = $(sitearchdir)$(target_prefix)
119
+ HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
120
+ ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
101
121
 
102
122
  TARGET_SO = $(DLLIB)
103
- CLEANLIBS = $(TARGET).bundle $(TARGET).il? $(TARGET).tds $(TARGET).map
104
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
105
-
106
- all: $(DLLIB)
107
- static: $(STATIC_LIB)
108
-
109
- clean:
123
+ CLEANLIBS = $(TARGET).bundle
124
+ CLEANOBJS = *.o *.bak
125
+
126
+ all: $(DLLIB)
127
+ static: $(STATIC_LIB)
128
+ .PHONY: all install static install-so install-rb
129
+ .PHONY: clean clean-so clean-rb
130
+
131
+ clean-rb-default::
132
+ clean-rb::
133
+ clean-so::
134
+ clean: clean-so clean-rb-default clean-rb
110
135
  @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
111
136
 
112
- distclean: clean
137
+ distclean-rb-default::
138
+ distclean-rb::
139
+ distclean-so::
140
+ distclean: clean distclean-so distclean-rb-default distclean-rb
113
141
  @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
114
142
  @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
143
+ @-$(RMDIRS) $(DISTCLEANDIRS)
115
144
 
116
- realclean: distclean
145
+ realclean: distclean
117
146
  install: install-so install-rb
118
147
 
119
148
  install-so: $(RUBYARCHDIR)
120
149
  install-so: $(RUBYARCHDIR)/$(DLLIB)
121
150
  $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
122
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
151
+ @-$(MAKEDIRS) $(@D)
152
+ $(INSTALL_PROG) $(DLLIB) $(@D)
123
153
  install-rb: pre-install-rb install-rb-default
124
154
  install-rb-default: pre-install-rb-default
125
155
  pre-install-rb: Makefile
@@ -134,24 +164,24 @@ site-install-rb: install-rb
134
164
  .SUFFIXES: .c .m .cc .cxx .cpp .C .o
135
165
 
136
166
  .cc.o:
137
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
167
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
138
168
 
139
169
  .cxx.o:
140
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
170
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
141
171
 
142
172
  .cpp.o:
143
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
173
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
144
174
 
145
175
  .C.o:
146
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
176
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
147
177
 
148
178
  .c.o:
149
- $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
179
+ $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
150
180
 
151
181
  $(DLLIB): $(OBJS) Makefile
152
- @-$(RM) $@
182
+ @-$(RM) $(@)
153
183
  $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
154
184
 
155
185
 
156
186
 
157
- $(OBJS): ruby.h defines.h
187
+ $(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
data/ext/Pcap.c CHANGED
@@ -145,7 +145,7 @@ capture_open_live(argc, argv, class)
145
145
 
146
146
  /* device */
147
147
  Check_SafeStr(v_device);
148
- device = RSTRING(v_device)->ptr;
148
+ device = RSTRING_PTR(v_device);
149
149
  /* snaplen */
150
150
  if (rs >= 2) {
151
151
  Check_Type(v_snaplen, T_FIXNUM);
@@ -201,7 +201,7 @@ capture_open_offline(class, fname)
201
201
 
202
202
  /* open offline */
203
203
  Check_SafeStr(fname);
204
- pcap = pcap_open_offline(RSTRING(fname)->ptr, pcap_errbuf);
204
+ pcap = pcap_open_offline(RSTRING_PTR(fname), pcap_errbuf);
205
205
  if (pcap == NULL) {
206
206
  rb_raise(ePcapError, "%s", pcap_errbuf);
207
207
  }
@@ -364,7 +364,7 @@ capture_setfilter(argc, argv, self)
364
364
  filter = f->expr;
365
365
  } else {
366
366
  Check_Type(vfilter, T_STRING);
367
- filter = RSTRING(vfilter)->ptr;
367
+ filter = RSTRING_PTR(vfilter);
368
368
  }
369
369
  opt = RTEST(optimize);
370
370
 
@@ -476,7 +476,7 @@ dumper_open(class, v_cap, v_fname)
476
476
  GetCapture(v_cap, cap);
477
477
  Check_SafeStr(v_fname);
478
478
 
479
- pcap_dumper = pcap_dump_open(cap->pcap, RSTRING(v_fname)->ptr);
479
+ pcap_dumper = pcap_dump_open(cap->pcap, RSTRING_PTR(v_fname));
480
480
  if (pcap_dumper == NULL) {
481
481
  rb_raise(ePcapError, "dumper_open: %s", pcap_geterr(cap->pcap));
482
482
  }
@@ -168,7 +168,7 @@ ipaddr_s_new(self, val)
168
168
 
169
169
  switch(TYPE(val)) {
170
170
  case T_STRING:
171
- hname = RSTRING(val)->ptr;
171
+ hname = RSTRING_PTR(val);
172
172
  hent = gethostbyname(hname);
173
173
  if (hent == NULL) {
174
174
  extern int h_errno;
@@ -285,11 +285,11 @@ ipaddr_s_load(klass, str)
285
285
  struct in_addr addr;
286
286
  int i;
287
287
 
288
- if (RSTRING(str)->len != sizeof addr) {
288
+ if (RSTRING_PTR(str) != sizeof addr) {
289
289
  rb_raise(rb_eArgError, "dump format error (IPAddress)");
290
290
  }
291
291
  for (i = 0; i < sizeof addr; i++) {
292
- ((char *)&addr)[i] = RSTRING(str)->ptr[i];
292
+ ((char *)&addr)[i] = RSTRING_PTR(str)[i];
293
293
  }
294
294
  return new_ipaddr(&addr);
295
295
  }
@@ -147,7 +147,7 @@ packet_load(class, str)
147
147
 
148
148
  DEBUG_PRINT("packet_load");
149
149
 
150
- str_ptr = RSTRING(str)->ptr;
150
+ str_ptr = RSTRING_PTR(str);
151
151
  hdr = (struct packet_object_header *)str_ptr;
152
152
  version = hdr->version;
153
153
  if (version == PACKET_MARSHAL_VERSION) {
@@ -175,7 +175,7 @@ packet_load(class, str)
175
175
  memcpy(pkt->data, str_ptr + sizeof(*hdr), caplen);
176
176
  if (PKTFLAG_TEST(pkt, POH_UDATA)) {
177
177
  int l = sizeof(*hdr) + caplen;
178
- VALUE ustr = rb_str_substr(str, l, RSTRING(str)->len - l);
178
+ VALUE ustr = rb_str_substr(str, l, RSTRING_LEN(str) - l);
179
179
  pkt->udata = rb_funcall(mMarshal, id_load, 1, ustr);
180
180
  } else {
181
181
  pkt->udata = Qnil;
@@ -0,0 +1,332 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.8 //
7
+ AR Makefile /^AR = ar$/;" m
8
+ ARCHHDRDIR Makefile /^ARCHHDRDIR = $(rubyhdrdir)\/$(arch)\/ruby$(target_prefix)$/;" m
9
+ ARCH_FLAG Makefile /^ARCH_FLAG = $/;" m
10
+ BINDIR Makefile /^BINDIR = $(bindir)$/;" m
11
+ CC Makefile /^CC = gcc$/;" m
12
+ CFLAGS Makefile /^CFLAGS = -fno-common -I\/usr\/local\/include $/;" m
13
+ CLEANFILES Makefile /^CLEANFILES = mkmf.log$/;" m
14
+ CLEANLIBS Makefile /^CLEANLIBS = $(TARGET).bundle $/;" m
15
+ CLEANOBJS Makefile /^CLEANOBJS = *.o *.bak$/;" m
16
+ COPY Makefile /^COPY = cp$/;" m
17
+ COUTFLAG Makefile /^COUTFLAG = -o $/;" m
18
+ CPPFLAGS Makefile /^CPPFLAGS = -DHAVE_HSTRERROR -DHAVE_PCAP_H -DHAVE_PCAP_COMPILE_NOPCAP -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)$/;" m
19
+ CXX Makefile /^CXX = g++$/;" m
20
+ CXXFLAGS Makefile /^CXXFLAGS = $(CFLAGS) $(cxxflags)$/;" m
21
+ Caplen ruby_pcap.h /^#define Caplen(/;" d
22
+ CheckClass ruby_pcap.h /^#define CheckClass(/;" d
23
+ CheckTruncate ruby_pcap.h /^#define CheckTruncate(/;" d
24
+ CheckTruncateICMP icmp_packet.c /^#define CheckTruncateICMP(/;" d file:
25
+ CheckTruncateIp ip_packet.c /^#define CheckTruncateIp(/;" d file:
26
+ CheckTruncateTcp tcp_packet.c /^#define CheckTruncateTcp(/;" d file:
27
+ CheckTruncateUdp udp_packet.c /^#define CheckTruncateUdp(/;" d file:
28
+ DATALINK_MAX packet.c /^#define DATALINK_MAX /;" d file:
29
+ DEBUG_PRINT ruby_pcap.h /^# define DEBUG_PRINT(/;" d
30
+ DEFAULT_DATALINK Pcap.c /^#define DEFAULT_DATALINK /;" d file:
31
+ DEFAULT_PROMISC Pcap.c /^#define DEFAULT_PROMISC /;" d file:
32
+ DEFAULT_SNAPLEN Pcap.c /^#define DEFAULT_SNAPLEN /;" d file:
33
+ DEFAULT_TO_MS Pcap.c /^#define DEFAULT_TO_MS /;" d file:
34
+ DEFFILE Makefile /^DEFFILE = $/;" m
35
+ DEFS Makefile /^DEFS = $/;" m
36
+ DISTCLEANDIRS Makefile /^DISTCLEANDIRS = $/;" m
37
+ DISTCLEANFILES Makefile /^DISTCLEANFILES = $/;" m
38
+ DLDFLAGS Makefile /^DLDFLAGS = $(ldflags) $(dldflags)$/;" m
39
+ DLLIB Makefile /^DLLIB = $(TARGET).bundle$/;" m
40
+ DL_DATA packet.c /^#define DL_DATA(/;" d file:
41
+ DL_HDR packet.c /^#define DL_HDR(/;" d file:
42
+ DOMAIN icmp_packet.c /^#define DOMAIN(/;" d file:
43
+ EXEEXT Makefile /^EXEEXT = $/;" m
44
+ EXTSTATIC Makefile /^EXTSTATIC = $/;" m
45
+ GetCapture Pcap.c /^#define GetCapture(/;" d file:
46
+ GetDumper Pcap.c /^#define GetDumper(/;" d file:
47
+ GetFilter Pcap.c /^#define GetFilter(/;" d file:
48
+ GetIPAddress ip_packet.c /^#define GetIPAddress(/;" d file:
49
+ GetPacket ruby_pcap.h /^#define GetPacket(/;" d
50
+ HDRDIR Makefile /^HDRDIR = $(rubyhdrdir)\/ruby$(target_prefix)$/;" m
51
+ ICMPP_METHOD icmp_packet.c /^#define ICMPP_METHOD(/;" d file:
52
+ ICMP_CAPLEN icmp_packet.c /^#define ICMP_CAPLEN(/;" d file:
53
+ ICMP_DATA icmp_packet.c /^#define ICMP_DATA(/;" d file:
54
+ ICMP_DATALEN icmp_packet.c /^#define ICMP_DATALEN(/;" d file:
55
+ ICMP_DOMAIN icmp_packet.c /^#define ICMP_DOMAIN /;" d file:
56
+ ICMP_DOMAINREPLY icmp_packet.c /^#define ICMP_DOMAINREPLY /;" d file:
57
+ ICMP_HDR icmp_packet.c /^#define ICMP_HDR(/;" d file:
58
+ ICMP_PARAMPROB_OPTABSENT icmp_packet.c /^#define ICMP_PARAMPROB_OPTABSENT /;" d file:
59
+ ICMP_ROUTERADVERT icmp_packet.c /^#define ICMP_ROUTERADVERT /;" d file:
60
+ ICMP_ROUTERSOLICIT icmp_packet.c /^#define ICMP_ROUTERSOLICIT /;" d file:
61
+ ICMP_TROUTE icmp_packet.c /^#define ICMP_TROUTE /;" d file:
62
+ ICMP_TYPE_MAX icmp_packet.c /^#define ICMP_TYPE_MAX /;" d file:
63
+ ICMP_UNREACH_FILTER_PROHIB icmp_packet.c /^#define ICMP_UNREACH_FILTER_PROHIB /;" d file:
64
+ ICMP_UNREACH_HOST_PRECEDENCE icmp_packet.c /^#define ICMP_UNREACH_HOST_PRECEDENCE /;" d file:
65
+ ICMP_UNREACH_HOST_PROHIB icmp_packet.c /^#define ICMP_UNREACH_HOST_PROHIB /;" d file:
66
+ ICMP_UNREACH_HOST_UNKNOWN icmp_packet.c /^#define ICMP_UNREACH_HOST_UNKNOWN /;" d file:
67
+ ICMP_UNREACH_ISOLATED icmp_packet.c /^#define ICMP_UNREACH_ISOLATED /;" d file:
68
+ ICMP_UNREACH_NET_PROHIB icmp_packet.c /^#define ICMP_UNREACH_NET_PROHIB /;" d file:
69
+ ICMP_UNREACH_NET_UNKNOWN icmp_packet.c /^#define ICMP_UNREACH_NET_UNKNOWN /;" d file:
70
+ ICMP_UNREACH_PRECEDENCE_CUTOFF icmp_packet.c /^#define ICMP_UNREACH_PRECEDENCE_CUTOFF /;" d file:
71
+ ICMP_UNREACH_TOSHOST icmp_packet.c /^#define ICMP_UNREACH_TOSHOST /;" d file:
72
+ ICMP_UNREACH_TOSNET icmp_packet.c /^#define ICMP_UNREACH_TOSNET /;" d file:
73
+ IDRD icmp_packet.c /^#define IDRD(/;" d file:
74
+ IHRD icmp_packet.c /^#define IHRD(/;" d file:
75
+ INADDR_NONE ip_packet.c /^# define INADDR_NONE /;" d file:
76
+ INCFLAGS Makefile /^INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)\/ruby\/backward -I$(hdrdir) -I$(srcdir)$/;" m
77
+ INSTALL Makefile /^INSTALL = \/usr\/bin\/install -c$/;" m
78
+ INSTALL_DATA Makefile /^INSTALL_DATA = $(INSTALL) -m 644$/;" m
79
+ INSTALL_PROG Makefile /^INSTALL_PROG = $(INSTALL) -m 0755$/;" m
80
+ IPP_METHOD ip_packet.c /^#define IPP_METHOD(/;" d file:
81
+ IP_DATA ruby_pcap.h /^#define IP_DATA(/;" d
82
+ IP_HDR ruby_pcap.h /^#define IP_HDR(/;" d
83
+ IP_OFFMASK ruby_pcap.h /^# define IP_OFFMASK /;" d
84
+ Init_icmp_packet icmp_packet.c /^Init_icmp_packet(void)$/;" f
85
+ Init_ip_packet ip_packet.c /^Init_ip_packet(void)$/;" f
86
+ Init_packet packet.c /^Init_packet(void)$/;" f
87
+ Init_pcap Pcap.c /^Init_pcap(void)$/;" f
88
+ Init_tcp_packet tcp_packet.c /^Init_tcp_packet(void)$/;" f
89
+ Init_udp_packet udp_packet.c /^Init_udp_packet(void)$/;" f
90
+ IsKindOf ruby_pcap.h /^#define IsKindOf(/;" d
91
+ LAYER2_HDR ruby_pcap.h /^#define LAYER2_HDR(/;" d
92
+ LAYER3_HDR ruby_pcap.h /^#define LAYER3_HDR(/;" d
93
+ LAYER4_HDR ruby_pcap.h /^#define LAYER4_HDR(/;" d
94
+ LAYER5_HDR ruby_pcap.h /^#define LAYER5_HDR(/;" d
95
+ LDSHARED Makefile /^LDSHARED = $(CC) -dynamic -bundle$/;" m
96
+ LDSHAREDXX Makefile /^LDSHAREDXX = $(CXX) -dynamic -bundle$/;" m
97
+ LIBPATH Makefile /^LIBPATH = -L. -L$(libdir)$/;" m
98
+ LIBRUBY Makefile /^LIBRUBY = $(LIBRUBY_SO)$/;" m
99
+ LIBRUBYARG_SHARED Makefile /^LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)$/;" m
100
+ LIBRUBYARG_STATIC Makefile /^LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static$/;" m
101
+ LIBRUBY_A Makefile /^LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a$/;" m
102
+ LIBS Makefile /^LIBS = $(LIBRUBYARG_SHARED) -lpcap -lpthread -ldl -lobjc $/;" m
103
+ LOCAL_LIBS Makefile /^LOCAL_LIBS = $/;" m
104
+ MAKEDIRS Makefile /^MAKEDIRS = mkdir -p$/;" m
105
+ MIN ruby_pcap.h /^#define MIN(/;" d
106
+ MTUD icmp_packet.c /^#define MTUD(/;" d file:
107
+ OBJS Makefile /^OBJS = icmp_packet.o ip_packet.o packet.o Pcap.o tcp_packet.o udp_packet.o$/;" m
108
+ OFF_NONEXIST ruby_pcap.h /^#define OFF_NONEXIST /;" d
109
+ OUTFLAG Makefile /^OUTFLAG = -o $/;" m
110
+ PACKET_MARSHAL_VERSION ruby_pcap.h /^#define PACKET_MARSHAL_VERSION /;" d
111
+ PACKET_METHOD packet.c /^#define PACKET_METHOD(/;" d file:
112
+ PKTFLAG_SET ruby_pcap.h /^#define PKTFLAG_SET(/;" d
113
+ PKTFLAG_TEST ruby_pcap.h /^#define PKTFLAG_TEST(/;" d
114
+ POH_RSVD1 ruby_pcap.h /^#define POH_RSVD1 /;" d
115
+ POH_RSVD2 ruby_pcap.h /^#define POH_RSVD2 /;" d
116
+ POH_RSVD3 ruby_pcap.h /^#define POH_RSVD3 /;" d
117
+ POH_UDATA ruby_pcap.h /^#define POH_UDATA /;" d
118
+ RM Makefile /^RM = rm -f$/;" m
119
+ RMDIRS Makefile /^RMDIRS = $(RUBY) -run -e rmdir -- -p$/;" m
120
+ RM_RF Makefile /^RM_RF = $(RUBY) -run -e rm -- -rf$/;" m
121
+ RUBY Makefile /^RUBY = $(ruby)$/;" m
122
+ RUBYARCHDIR Makefile /^RUBYARCHDIR = $(sitearchdir)$(target_prefix)$/;" m
123
+ RUBYCOMMONDIR Makefile /^RUBYCOMMONDIR = $(sitedir)$(target_prefix)$/;" m
124
+ RUBYLIBDIR Makefile /^RUBYLIBDIR = $(sitelibdir)$(target_prefix)$/;" m
125
+ RUBY_BASE_NAME Makefile /^RUBY_BASE_NAME = ruby$/;" m
126
+ RUBY_EXTCONF_H Makefile /^RUBY_EXTCONF_H = $/;" m
127
+ RUBY_INSTALL_NAME Makefile /^RUBY_INSTALL_NAME = ruby$/;" m
128
+ RUBY_PCAP_H ruby_pcap.h /^#define RUBY_PCAP_H$/;" d
129
+ RUBY_SO_NAME Makefile /^RUBY_SO_NAME = ruby.1.9.1$/;" m
130
+ SHELL Makefile /^SHELL = \/bin\/sh$/;" m
131
+ SRCS Makefile /^SRCS = icmp_packet.c ip_packet.c packet.c Pcap.c tcp_packet.c udp_packet.c$/;" m
132
+ STATIC_LIB Makefile /^STATIC_LIB = $/;" m
133
+ TARGET Makefile /^TARGET = pcap$/;" m
134
+ TARGET_SO Makefile /^TARGET_SO = $(DLLIB)$/;" m
135
+ TCPP_FLAG tcp_packet.c /^#define TCPP_FLAG(/;" d file:
136
+ TCPP_METHOD tcp_packet.c /^#define TCPP_METHOD(/;" d file:
137
+ TCP_DATA tcp_packet.c /^#define TCP_DATA(/;" d file:
138
+ TCP_DATALEN tcp_packet.c /^#define TCP_DATALEN(/;" d file:
139
+ TCP_HDR tcp_packet.c /^#define TCP_HDR(/;" d file:
140
+ TROUTE icmp_packet.c /^#define TROUTE(/;" d file:
141
+ UDPP_METHOD udp_packet.c /^#define UDPP_METHOD(/;" d file:
142
+ UDP_DATA udp_packet.c /^#define UDP_DATA(/;" d file:
143
+ UDP_HDR udp_packet.c /^#define UDP_HDR(/;" d file:
144
+ UDP_LENGTH udp_packet.c /^#define UDP_LENGTH(/;" d file:
145
+ UINT2NUM ruby_pcap.h /^# define UINT2NUM(/;" d
146
+ UINT32_2_NUM ruby_pcap.h /^#define UINT32_2_NUM(/;" d
147
+ VPATH Makefile /^VPATH = $(srcdir):$(arch_hdrdir)\/ruby:$(hdrdir)\/ruby$/;" m
148
+ __FAVOR_BSD ruby_pcap.h /^# define __FAVOR_BSD$/;" d
149
+ arch Makefile /^arch = x86_64-darwin11.2.0$/;" m
150
+ arch_hdrdir Makefile /^arch_hdrdir = \/Users\/david\/.rvm\/rubies\/ruby-1.9.2-p290\/include\/ruby-1.9.1\/$(arch)$/;" m
151
+ archdir Makefile /^archdir = $(rubylibdir)\/$(arch)$/;" m
152
+ bindir Makefile /^bindir = $(exec_prefix)\/bin$/;" m
153
+ cCapture Pcap.c /^static VALUE cCapture;$/;" v file:
154
+ cDumper Pcap.c /^static VALUE cDumper;$/;" v file:
155
+ cFilter Pcap.c /^VALUE cFilter;$/;" v
156
+ cICMPPacket icmp_packet.c /^VALUE cICMPPacket;$/;" v
157
+ cIPAddress ip_packet.c /^static VALUE cIPAddress;$/;" v file:
158
+ cIPPacket ip_packet.c /^VALUE cIPPacket;$/;" v
159
+ cPacket packet.c /^VALUE cPacket;$/;" v
160
+ cPcapStat Pcap.c /^static VALUE cPcapStat;$/;" v file:
161
+ cTCPPacket tcp_packet.c /^VALUE cTCPPacket;$/;" v
162
+ cUDPPacket udp_packet.c /^VALUE cUDPPacket;$/;" v
163
+ capture_close Pcap.c /^capture_close(self)$/;" f file:
164
+ capture_datalink Pcap.c /^capture_datalink(self)$/;" f file:
165
+ capture_dispatch Pcap.c /^capture_dispatch(argc, argv, self)$/;" f file:
166
+ capture_loop Pcap.c /^capture_loop(argc, argv, self)$/;" f file:
167
+ capture_object Pcap.c /^struct capture_object {$/;" s file:
168
+ capture_open_live Pcap.c /^capture_open_live(argc, argv, class)$/;" f file:
169
+ capture_open_offline Pcap.c /^capture_open_offline(class, fname)$/;" f file:
170
+ capture_setfilter Pcap.c /^capture_setfilter(argc, argv, self)$/;" f file:
171
+ capture_snapshot Pcap.c /^capture_snapshot(self)$/;" f file:
172
+ capture_stats Pcap.c /^capture_stats(self)$/;" f file:
173
+ cflags Makefile /^cflags = $(optflags) $(debugflags) $(warnflags)$/;" m
174
+ closed_capture Pcap.c /^closed_capture()$/;" f file:
175
+ closed_dumper Pcap.c /^closed_dumper()$/;" f file:
176
+ data ruby_pcap.h /^ u_char *data; \/* packet data *\/$/;" m struct:packet_object
177
+ datadir Makefile /^datadir = $(datarootdir)$/;" m
178
+ datalink Pcap.c /^ int datalink;$/;" m struct:filter_object file:
179
+ datalink_type packet.c /^struct datalink_type {$/;" s file:
180
+ datalinks packet.c /^static struct datalink_type datalinks[] = {$/;" v typeref:struct:datalink_type file:
181
+ datarootdir Makefile /^datarootdir = $(prefix)\/share$/;" m
182
+ debugflags Makefile /^debugflags = -ggdb$/;" m
183
+ dl_type Pcap.c /^ int dl_type; \/* data-link type (DLT_*) *\/$/;" m struct:capture_object file:
184
+ dl_type Pcap.c /^ int dl_type;$/;" m struct:dumper_object file:
185
+ dl_type ruby_pcap.h /^ u_char dl_type; \/* data-link type (DLT_*) *\/$/;" m struct:packet_object_header
186
+ dldflags Makefile /^dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace$/;" m
187
+ docdir Makefile /^docdir = $(datarootdir)\/doc\/$(PACKAGE)$/;" m
188
+ domain_reply icmp_packet.c /^struct domain_reply {$/;" s file:
189
+ dumper_close Pcap.c /^dumper_close(self)$/;" f file:
190
+ dumper_dump Pcap.c /^dumper_dump(self, v_pkt)$/;" f file:
191
+ dumper_object Pcap.c /^struct dumper_object {$/;" s file:
192
+ dumper_open Pcap.c /^dumper_open(class, v_cap, v_fname)$/;" f file:
193
+ dvidir Makefile /^dvidir = $(docdir)$/;" m
194
+ ePcapError Pcap.c /^VALUE ePcapError;$/;" v
195
+ eTruncatedPacket Pcap.c /^VALUE eTruncatedPacket;$/;" v
196
+ exec_prefix Makefile /^exec_prefix = $(prefix)$/;" m
197
+ expr Pcap.c /^ char *expr;$/;" m struct:filter_object file:
198
+ extout Makefile /^extout = $/;" m
199
+ extout_prefix Makefile /^extout_prefix = $/;" m
200
+ filter_and Pcap.c /^filter_and(self, other)$/;" f file:
201
+ filter_match Pcap.c /^filter_match(self, v_pkt)$/;" f
202
+ filter_new Pcap.c /^filter_new(argc, argv, class)$/;" f file:
203
+ filter_not Pcap.c /^filter_not(self)$/;" f file:
204
+ filter_object Pcap.c /^struct filter_object {$/;" s file:
205
+ filter_or Pcap.c /^filter_or(self, other)$/;" f file:
206
+ filter_source Pcap.c /^filter_source(self)$/;" f file:
207
+ flags ruby_pcap.h /^ u_char flags:4; \/* flags *\/$/;" m struct:packet_object_header
208
+ free_capture Pcap.c /^free_capture(cap)$/;" f file:
209
+ free_dumper Pcap.c /^free_dumper(dumper)$/;" f file:
210
+ free_filter Pcap.c /^free_filter(filter)$/;" f file:
211
+ free_packet packet.c /^free_packet(pkt)$/;" f file:
212
+ handler Pcap.c /^handler(cap, pkthdr, data)$/;" f file:
213
+ hdr ruby_pcap.h /^ struct packet_object_header hdr; \/* packet object header *\/$/;" m struct:packet_object typeref:struct:packet_object::packet_object_header
214
+ hdrdir Makefile /^hdrdir = \/Users\/david\/.rvm\/rubies\/ruby-1.9.2-p290\/include\/ruby-1.9.1$/;" m
215
+ htmldir Makefile /^htmldir = $(docdir)$/;" m
216
+ icmp_type_info icmp_packet.c /^struct icmp_type_info {$/;" s file:
217
+ icmp_types icmp_packet.c /^static struct icmp_type_info icmp_types[] = {$/;" v typeref:struct:icmp_type_info file:
218
+ icmpp_ip icmp_packet.c /^icmpp_ip(self)$/;" f file:
219
+ icmpp_nextmtu icmp_packet.c /^icmpp_nextmtu(self)$/;" f file:
220
+ icmpp_radv icmp_packet.c /^icmpp_radv(self, ind)$/;" f file:
221
+ id_dump packet.c /^int id_dump;$/;" v
222
+ id_load packet.c /^int id_load;$/;" v
223
+ id_rdiscovery icmp_packet.c /^struct id_rdiscovery {$/;" s file:
224
+ ih_rdiscovery icmp_packet.c /^struct ih_rdiscovery {$/;" s file:
225
+ includedir Makefile /^includedir = $(prefix)\/include$/;" m
226
+ infodir Makefile /^infodir = $(datarootdir)\/info$/;" m
227
+ ipaddr_dump ip_packet.c /^ipaddr_dump(self, limit)$/;" f file:
228
+ ipaddr_equal ip_packet.c /^ipaddr_equal(self, other)$/;" f file:
229
+ ipaddr_hash ip_packet.c /^ipaddr_hash(self)$/;" f file:
230
+ ipaddr_hostname ip_packet.c /^ipaddr_hostname(self)$/;" f file:
231
+ ipaddr_num_s ip_packet.c /^ipaddr_num_s(self)$/;" f file:
232
+ ipaddr_s_load ip_packet.c /^ipaddr_s_load(klass, str)$/;" f file:
233
+ ipaddr_s_new ip_packet.c /^ipaddr_s_new(self, val)$/;" f file:
234
+ ipaddr_to_i ip_packet.c /^ipaddr_to_i(self)$/;" f file:
235
+ ipaddr_to_s ip_packet.c /^ipaddr_to_s(self)$/;" f file:
236
+ ipp_data ip_packet.c /^ipp_data(self)$/;" f file:
237
+ ipp_sumok ip_packet.c /^ipp_sumok(self)$/;" f file:
238
+ ird_addr icmp_packet.c /^ struct in_addr ird_addr;$/;" m struct:id_rdiscovery typeref:struct:id_rdiscovery::in_addr file:
239
+ ird_pref icmp_packet.c /^ long ird_pref;$/;" m struct:id_rdiscovery file:
240
+ klass icmp_packet.c /^ VALUE klass;$/;" m struct:icmp_type_info file:
241
+ layer3_off ruby_pcap.h /^ u_short layer3_off; \/* layer 3 header offset *\/$/;" m struct:packet_object_header
242
+ layer4_off ruby_pcap.h /^ u_short layer4_off; \/* layer 4 header offset *\/$/;" m struct:packet_object_header
243
+ layer5_off ruby_pcap.h /^ u_short layer5_off; \/* layer 5 header offset *\/$/;" m struct:packet_object_header
244
+ ldflags Makefile /^ldflags = -L\/usr\/local\/lib$/;" m
245
+ libdir Makefile /^libdir = $(exec_prefix)\/lib$/;" m
246
+ libexecdir Makefile /^libexecdir = $(exec_prefix)\/libexec$/;" m
247
+ libpath Makefile /^libpath = . $(libdir)$/;" m
248
+ lifetime icmp_packet.c /^ u_short lifetime;$/;" m struct:ih_rdiscovery file:
249
+ lmtu icmp_packet.c /^ u_long lmtu;$/;" m struct:traceroute file:
250
+ localedir Makefile /^localedir = $(datarootdir)\/locale$/;" m
251
+ localstatedir Makefile /^localstatedir = $(prefix)\/var$/;" m
252
+ lspeed icmp_packet.c /^ u_long lspeed;$/;" m struct:traceroute file:
253
+ mMarshal packet.c /^static VALUE mMarshal;$/;" v file:
254
+ mPcap Pcap.c /^VALUE mPcap, rbpcap_convert = Qnil;$/;" v
255
+ mandir Makefile /^mandir = $(datarootdir)\/man$/;" m
256
+ mark_filter Pcap.c /^mark_filter(filter)$/;" f file:
257
+ mark_packet packet.c /^mark_packet(pkt)$/;" f file:
258
+ mtu_discovery icmp_packet.c /^struct mtu_discovery {$/;" s file:
259
+ name icmp_packet.c /^ char *name;$/;" m struct:icmp_type_info file:
260
+ names icmp_packet.c /^ char names[1];$/;" m struct:domain_reply file:
261
+ netmask Pcap.c /^ VALUE netmask;$/;" m struct:filter_object file:
262
+ netmask Pcap.c /^ bpf_u_int32 netmask;$/;" m struct:capture_object file:
263
+ new_filter Pcap.c /^new_filter(expr, param, optimize, netmask)$/;" f file:
264
+ new_ipaddr ip_packet.c /^new_ipaddr(addr)$/;" f
265
+ new_packet packet.c /^new_packet(data, pkthdr, dl_type)$/;" f
266
+ nextmtu icmp_packet.c /^ u_short nextmtu;$/;" m struct:mtu_discovery file:
267
+ nl_off packet.c /^ int nl_off; \/* offset of network-layer header *\/$/;" m struct:datalink_type file:
268
+ nltype_off packet.c /^ int nltype_off; \/* offset of network-layer type field *\/$/;" m struct:datalink_type file:
269
+ num_addrs icmp_packet.c /^ u_char num_addrs;$/;" m struct:ih_rdiscovery file:
270
+ ohc icmp_packet.c /^ u_short ohc;$/;" m struct:traceroute file:
271
+ oldincludedir Makefile /^oldincludedir = $(DESTDIR)\/usr\/include$/;" m
272
+ optflags Makefile /^optflags = -O3$/;" m
273
+ optimize Pcap.c /^ VALUE optimize;$/;" m struct:filter_object file:
274
+ packet_dump packet.c /^packet_dump(self, limit)$/;" f file:
275
+ packet_load packet.c /^packet_load(class, str)$/;" f file:
276
+ packet_match packet.c /^packet_match(self, expr)$/;" f file:
277
+ packet_object ruby_pcap.h /^struct packet_object {$/;" s
278
+ packet_object_header ruby_pcap.h /^struct packet_object_header {$/;" s
279
+ packet_set_udata packet.c /^packet_set_udata(self, val)$/;" f file:
280
+ param Pcap.c /^ VALUE param;$/;" m struct:filter_object file:
281
+ pcap Pcap.c /^ pcap_t *pcap;$/;" m struct:capture_object file:
282
+ pcap_dumper Pcap.c /^ pcap_dumper_t *pcap_dumper;$/;" m struct:dumper_object file:
283
+ pcap_errbuf Pcap.c /^static char pcap_errbuf[PCAP_ERRBUF_SIZE];$/;" v file:
284
+ pcap_s_convert Pcap.c /^pcap_s_convert(self)$/;" f file:
285
+ pcap_s_convert_set Pcap.c /^pcap_s_convert_set(self, val)$/;" f file:
286
+ pcap_s_lookupdev Pcap.c /^pcap_s_lookupdev(self)$/;" f file:
287
+ pcap_s_lookupnet Pcap.c /^pcap_s_lookupnet(self, dev)$/;" f file:
288
+ pdfdir Makefile /^pdfdir = $(docdir)$/;" m
289
+ pkthdr ruby_pcap.h /^ struct pcap_pkthdr pkthdr; \/* pcap packet header *\/$/;" m struct:packet_object_header typeref:struct:packet_object_header::pcap_pkthdr
290
+ prefix Makefile /^prefix = $(DESTDIR)\/Users\/david\/.rvm\/rubies\/ruby-1.9.2-p290$/;" m
291
+ preload Makefile /^preload = $/;" m
292
+ program Pcap.c /^ struct bpf_program program;$/;" m struct:filter_object typeref:struct:filter_object::bpf_program file:
293
+ psdir Makefile /^psdir = $(docdir)$/;" m
294
+ rbpcap_convert Pcap.c /^VALUE mPcap, rbpcap_convert = Qnil;$/;" v
295
+ rhc icmp_packet.c /^ u_short rhc;$/;" m struct:traceroute file:
296
+ ridir Makefile /^ridir = $(datarootdir)\/$(RI_BASE_NAME)$/;" m
297
+ ruby Makefile /^ruby = \/Users\/david\/.rvm\/rubies\/ruby-1.9.2-p290\/bin\/ruby$/;" m
298
+ ruby_version Makefile /^ruby_version = 1.9.1$/;" m
299
+ rubyhdrdir Makefile /^rubyhdrdir = $(includedir)\/$(RUBY_BASE_NAME)-$(ruby_version)$/;" m
300
+ rubylibdir Makefile /^rubylibdir = $(rubylibprefix)\/$(ruby_version)$/;" m
301
+ rubylibprefix Makefile /^rubylibprefix = $(libdir)\/$(RUBY_BASE_NAME)$/;" m
302
+ sbindir Makefile /^sbindir = $(exec_prefix)\/sbin$/;" m
303
+ setup_icmp_packet icmp_packet.c /^setup_icmp_packet(pkt, tl_len)$/;" f
304
+ setup_ip_packet ip_packet.c /^setup_ip_packet(pkt, nl_len)$/;" f
305
+ setup_tcp_packet tcp_packet.c /^setup_tcp_packet(pkt, tl_len)$/;" f
306
+ setup_udp_packet udp_packet.c /^setup_udp_packet(pkt, tl_len)$/;" f
307
+ sharedstatedir Makefile /^sharedstatedir = $(prefix)\/com$/;" m
308
+ sitearch Makefile /^sitearch = $(arch)$/;" m
309
+ sitearchdir Makefile /^sitearchdir = $(sitelibdir)\/$(sitearch)$/;" m
310
+ sitedir Makefile /^sitedir = $(rubylibprefix)\/site_ruby$/;" m
311
+ sitehdrdir Makefile /^sitehdrdir = $(rubyhdrdir)\/site_ruby$/;" m
312
+ sitelibdir Makefile /^sitelibdir = $(sitedir)\/$(ruby_version)$/;" m
313
+ snaplen Pcap.c /^ bpf_u_int32 snaplen;$/;" m struct:dumper_object file:
314
+ snaplen Pcap.c /^ int snaplen;$/;" m struct:filter_object file:
315
+ srcdir Makefile /^srcdir = .$/;" m
316
+ sysconfdir Makefile /^sysconfdir = $(prefix)\/etc$/;" m
317
+ target_prefix Makefile /^target_prefix = $/;" m
318
+ tcpp_data tcp_packet.c /^tcpp_data(self)$/;" f file:
319
+ time_new_msec icmp_packet.c /^#define time_new_msec(/;" d file:
320
+ topdir Makefile /^topdir = \/Users\/david\/.rvm\/rubies\/ruby-1.9.2-p290\/include\/ruby-1.9.1$/;" m
321
+ traceroute icmp_packet.c /^struct traceroute {$/;" s file:
322
+ ttl icmp_packet.c /^ u_long ttl;$/;" m struct:domain_reply file:
323
+ udata ruby_pcap.h /^ VALUE udata; \/* user data *\/$/;" m struct:packet_object
324
+ udpp_data udp_packet.c /^udpp_data(self)$/;" f file:
325
+ unused icmp_packet.c /^ u_short unused;$/;" m struct:mtu_discovery file:
326
+ vendorarchdir Makefile /^vendorarchdir = $(vendorlibdir)\/$(sitearch)$/;" m
327
+ vendordir Makefile /^vendordir = $(rubylibprefix)\/vendor_ruby$/;" m
328
+ vendorhdrdir Makefile /^vendorhdrdir = $(rubyhdrdir)\/vendor_ruby$/;" m
329
+ vendorlibdir Makefile /^vendorlibdir = $(vendordir)\/$(ruby_version)$/;" m
330
+ version ruby_pcap.h /^ u_char version:4; \/* marshal format version *\/$/;" m struct:packet_object_header
331
+ warnflags Makefile /^warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long$/;" m
332
+ wpa icmp_packet.c /^ u_char wpa;$/;" m struct:ih_rdiscovery file:
metadata CHANGED
@@ -1,44 +1,37 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: blackfoundry-pcap
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 2
10
- version: 0.2.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - David Turnbull
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-07 00:00:00 Z
12
+ date: 2011-09-20 00:00:00.000000000Z
19
13
  dependencies: []
14
+ description: ! ' Some extensions to the pcap library.
20
15
 
21
- description: " Some extensions to the pcap library.\n"
16
+ '
22
17
  email: david@blackfoundry.com
23
18
  executables: []
24
-
25
- extensions:
19
+ extensions:
26
20
  - ext/extconf.rb
27
- extra_rdoc_files:
21
+ extra_rdoc_files:
28
22
  - ChangeLog
29
23
  - README
30
24
  - README.ja
31
- files:
25
+ files:
32
26
  - Rakefile
33
27
  - ext/Makefile
34
28
  - ext/Pcap.c
35
29
  - ext/extconf.rb
36
30
  - ext/icmp_packet.c
37
31
  - ext/ip_packet.c
38
- - ext/mkmf.log
39
32
  - ext/packet.c
40
- - ext/pcap.bundle
41
33
  - ext/ruby_pcap.h
34
+ - ext/tags
42
35
  - ext/tcp_packet.c
43
36
  - ext/udp_packet.c
44
37
  - lib/pcap_misc.rb
@@ -48,36 +41,26 @@ files:
48
41
  - README.ja
49
42
  homepage:
50
43
  licenses: []
51
-
52
44
  post_install_message:
53
45
  rdoc_options: []
54
-
55
- require_paths:
46
+ require_paths:
56
47
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
48
+ required_ruby_version: !ruby/object:Gem::Requirement
58
49
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
66
- required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
55
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
75
60
  requirements: []
76
-
77
61
  rubyforge_project:
78
- rubygems_version: 1.8.2
62
+ rubygems_version: 1.8.10
79
63
  signing_key:
80
64
  specification_version: 3
81
65
  summary: extensions to ruby-pcap
82
66
  test_files: []
83
-
@@ -1,134 +0,0 @@
1
- have_library: checking for socket() in -lsocket... -------------------- no
2
-
3
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lsocket -lpthread -ldl "
4
- conftest.c: In function ‘t’:
5
- conftest.c:3: error: ‘socket’ undeclared (first use in this function)
6
- conftest.c:3: error: (Each undeclared identifier is reported only once
7
- conftest.c:3: error: for each function it appears in.)
8
- checked program was:
9
- /* begin */
10
- 1: /*top*/
11
- 2: int main() { return 0; }
12
- 3: int t() { void ((*volatile p)()); p = (void ((*)()))socket; return 0; }
13
- /* end */
14
-
15
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lsocket -lpthread -ldl "
16
- ld: library not found for -lsocket
17
- collect2: ld returned 1 exit status
18
- checked program was:
19
- /* begin */
20
- 1: /*top*/
21
- 2: int main() { return 0; }
22
- 3: int t() { socket(); return 0; }
23
- /* end */
24
-
25
- --------------------
26
-
27
- have_library: checking for gethostbyname() in -lxnet... -------------------- no
28
-
29
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lxnet -lpthread -ldl "
30
- conftest.c: In function ‘t’:
31
- conftest.c:3: error: ‘gethostbyname’ undeclared (first use in this function)
32
- conftest.c:3: error: (Each undeclared identifier is reported only once
33
- conftest.c:3: error: for each function it appears in.)
34
- checked program was:
35
- /* begin */
36
- 1: /*top*/
37
- 2: int main() { return 0; }
38
- 3: int t() { void ((*volatile p)()); p = (void ((*)()))gethostbyname; return 0; }
39
- /* end */
40
-
41
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lxnet -lpthread -ldl "
42
- ld: library not found for -lxnet
43
- collect2: ld returned 1 exit status
44
- checked program was:
45
- /* begin */
46
- 1: /*top*/
47
- 2: int main() { return 0; }
48
- 3: int t() { gethostbyname(); return 0; }
49
- /* end */
50
-
51
- --------------------
52
-
53
- have_func: checking for hstrerror()... -------------------- yes
54
-
55
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lpthread -ldl "
56
- conftest.c: In function ‘t’:
57
- conftest.c:3: error: ‘hstrerror’ undeclared (first use in this function)
58
- conftest.c:3: error: (Each undeclared identifier is reported only once
59
- conftest.c:3: error: for each function it appears in.)
60
- checked program was:
61
- /* begin */
62
- 1: /*top*/
63
- 2: int main() { return 0; }
64
- 3: int t() { void ((*volatile p)()); p = (void ((*)()))hstrerror; return 0; }
65
- /* end */
66
-
67
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lpthread -ldl "
68
- checked program was:
69
- /* begin */
70
- 1: /*top*/
71
- 2: int main() { return 0; }
72
- 3: int t() { hstrerror(); return 0; }
73
- /* end */
74
-
75
- --------------------
76
-
77
- have_header: checking for pcap.h... -------------------- yes
78
-
79
- "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -o conftest.i"
80
- checked program was:
81
- /* begin */
82
- 1: #include <pcap.h>
83
- /* end */
84
-
85
- --------------------
86
-
87
- have_library: checking for pcap_open_live() in -lpcap... -------------------- yes
88
-
89
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lpcap -lpthread -ldl "
90
- conftest.c: In function ‘t’:
91
- conftest.c:3: error: ‘pcap_open_live’ undeclared (first use in this function)
92
- conftest.c:3: error: (Each undeclared identifier is reported only once
93
- conftest.c:3: error: for each function it appears in.)
94
- checked program was:
95
- /* begin */
96
- 1: /*top*/
97
- 2: int main() { return 0; }
98
- 3: int t() { void ((*volatile p)()); p = (void ((*)()))pcap_open_live; return 0; }
99
- /* end */
100
-
101
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lruby -lpcap -lpthread -ldl "
102
- checked program was:
103
- /* begin */
104
- 1: /*top*/
105
- 2: int main() { return 0; }
106
- 3: int t() { pcap_open_live(); return 0; }
107
- /* end */
108
-
109
- --------------------
110
-
111
- have_func: checking for pcap_compile_nopcap()... -------------------- yes
112
-
113
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lpcap -lruby -lpcap -lpthread -ldl "
114
- conftest.c: In function ‘t’:
115
- conftest.c:3: error: ‘pcap_compile_nopcap’ undeclared (first use in this function)
116
- conftest.c:3: error: (Each undeclared identifier is reported only once
117
- conftest.c:3: error: for each function it appears in.)
118
- checked program was:
119
- /* begin */
120
- 1: /*top*/
121
- 2: int main() { return 0; }
122
- 3: int t() { void ((*volatile p)()); p = (void ((*)()))pcap_compile_nopcap; return 0; }
123
- /* end */
124
-
125
- "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -lpcap -lruby -lpcap -lpthread -ldl "
126
- checked program was:
127
- /* begin */
128
- 1: /*top*/
129
- 2: int main() { return 0; }
130
- 3: int t() { pcap_compile_nopcap(); return 0; }
131
- /* end */
132
-
133
- --------------------
134
-
Binary file