Permalink
Browse files

Convert to using pkt

Now with extra dependency nastiness (note the deeply nested paths).
  • Loading branch information...
1 parent 516ce40 commit ddd450d5a1bb22d4472cc12781d4f583a7035c9a @msantos committed Dec 28, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 rebar.config
  2. +2 −2 src/perv.erl
  3. +1 −1 start.sh
View
@@ -1,4 +1,4 @@
{deps, [
{epcap, ".*", {git, "git://github.com/msantos/epcap.git", "master"}}
]}.
-{erl_opts, [{i, "deps/epcap/include"}]}.
+{erl_opts, [{i, "deps/epcap/deps/pkt/include"}]}.
View
@@ -32,7 +32,7 @@
-behaviour(gen_server).
-include_lib("inets/src/http_lib/http_internal.hrl").
--include("epcap_net.hrl").
+-include("pkt.hrl").
-define(SERVER, ?MODULE).
@@ -88,7 +88,7 @@ handle_cast(_Msg, State) ->
% Sniffed packet
handle_info([{pkthdr, {_, {caplen, Length}, {len, Length}}}, {packet, Packet}],
#state{c = C} = State) ->
- P = epcap_net:decapsulate(Packet),
+ P = pkt:decapsulate(Packet),
C1 = match(P, C),
{noreply, State#state{c = C1}};
View
@@ -1,3 +1,3 @@
#!/bin/sh
-erl -sname perv -pa deps/*/ebin ebin
+erl -sname perv -pa deps/*/ebin deps/*/deps/*/ebin ebin

0 comments on commit ddd450d

Please sign in to comment.