LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2010, 06:13 AM   #1
pawelch
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Rep: Reputation: 0
Talking [SOLVED] Fatal Error:raw.c:dlt_raw_encode() : DLT_RAW plugin does not support packet encoding


hi all,

I am trying to change the IP address of the traffic that has been stored. I have tried different commands:

Code:
tcprewrite --endpoints=10.16.101.58:10.16.101.55 --cachefile=example.cache --infile=test.pcap --outfile=new.pcap
Code:
tcprewrite --infile=test.pcap --outfile=out.pcap --dstipmap=198.168.222.64:10.16.101.58
however, either from these two commands end up with a following error:

Code:
Fatal Error: From ./plugins/dlt_raw/raw.c:dlt_raw_encode() line 216:
DLT_RAW plugin does not support packet encoding
I could not find anything about it in google, unless I have searched in a wrong way.

when I searched for a solution and generic commands I used those two websites: website1 website2

Commands have been tested using a casual user account as well as a privileged one (root).

Thank you for your time and help accordingly.

Last edited by pawelch; 11-03-2010 at 07:32 AM.
 
Old 11-03-2010, 07:32 AM   #2
pawelch
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Thumbs up [SOLVED] Fatal Error:raw.c:dlt_raw_encode() : DLT_RAW plugin does not support packet encoding

I have not figured one thing. with raw packets (by raw I mean when they are stored as a flow of raw data) it is necessary to translate that data to:

a) layer 2 first and then to
b) layer 3

in command-like language, for (a) it was enough to equip the flow with a random mac-address (note I have used --dlt-enet (ethernet) formating):

Code:
sudo tcprewrite --infile=smaller.pcap --dlt=enet --outfile=out.pcap --enet-dmac=00:55:22:AF:C6:37 --enet-smac=00:44:66:FC:29:AF
and then for(b) just change the ip address with:

Code:
sudo tcprewrite --infile=out.pcap --outfile=out11.pcap --dstipmap=192.168.2.2:1.1.1.1 --srcipmap=192.168.2.2:1.1.1.1
Problem is sorted, hopefully it will help people getting the error from the title
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mondorestore on ubuntu, fatal error! brianpbarnes Linux - Software 0 03-11-2009 05:40 PM
compiz-fusion-plugins-main-0.5.2/ make check error 9 and 1 /intltool-update line 308 R03L Linux - Software 0 03-14-2008 08:31 PM
XIO: Fatal IO Error 104 after installing my first distro Ubuntu Eighties Khild™ Linux - Newbie 3 08-24-2006 09:34 AM
cs423x fatal error on ubuntu tokenringman38 Linux - Newbie 1 08-20-2006 08:54 PM
Fatal Error - Call to undefined function : pg_pconnect() in filename.php on line xx mwpeng Linux - Newbie 1 02-26-2005 09:57 AM


All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration