Kalanand's April 2015 Log

   March 2015   
April 2015
SuMoTuWeThFrSa
   1234
567891011
12131415161718
19202122232425
2627282930  
   May 2015   

April 20th

Using 'tcprewrite' I can change the source IP in a pcap to 192.168.x.x for both "send" and "receive" packets:

  tcprewrite --infile=input.pcap --outfile=output.pcap --srcipmap=65.19.130.36/32:192.168.2.2 --dstipmap=65.19.130.36/32:192.168.2.2
Interestingly enough the above command works for both TCP and UDP packets :)

For more options see this documentation.

April 23rd

To see the full history of a file after git move of the parent directory, one needs to use "--follow" option

  git log --follow pkg/dir/subdir/test/script.h
Here is what the git documentation says:
--follow
          Continue listing the history of a file beyond renames (works only for a single file).  

Go to March's log


Last modified: Thu Apr 23 15:11:26 PDT 2015