Browse files

now can spoof ip source for the train

  • Loading branch information...
1 parent 15424f4 commit 57bd73280d1ebf70f27093e860fee11cec62f95a @lucasdicioccio committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/probecraft/probes/train.rb
View
2 lib/probecraft/probes/train.rb
@@ -57,7 +57,7 @@ def raw_pkt_for(pkt, params)
def ip_layer_for(params)
pkt = @probecraft.link_layer_pkt do |ll|
ll.payload = IP.new do |ip|
- ip.src = @probecraft.iface_addr
+ ip.src = @probecraft.iface_addr || params[:source]
ip.dst = params[:target]
ip.ttl = params[:ttl]
ip.dont_fragment!

0 comments on commit 57bd732

Please sign in to comment.