Skip to content
Browse files

bugfix

  • Loading branch information...
1 parent 6940bc9 commit 8964bdc5c344d6be735344406ad8dfc8b727a92d @ryanbreed committed Apr 30, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/dns_parser.rb
View
5 lib/dns_parser.rb
@@ -38,10 +38,11 @@ class UdpFrame <BitStruct
initial_value.ip_v = 4
initial_value.ip_hl = 5
alias_method :original_to_h, :to_h
- alias_method :original_new, :new
- def new(pkt)
+ alias_method :original_initialize, :initialize
+ def initialize(pkt)
p=original_new(pkt.body)
p.timestamp=pkt.timestamp.utc.to_i
+ p
end
def to_h
h=original_to_h

0 comments on commit 8964bdc

Please sign in to comment.
Something went wrong with that request. Please try again.