Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-02-2010, 05:13 AM   #1
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:

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

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 06:32 AM.
Old 11-03-2010, 06:32 AM   #2
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):

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:

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


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 04: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 07:31 PM
XIO: Fatal IO Error 104 after installing my first distro Ubuntu Eighties Khild™ Linux - Newbie 3 08-24-2006 08:34 AM
cs423x fatal error on ubuntu tokenringman38 Linux - Newbie 1 08-20-2006 07:54 PM
Fatal Error - Call to undefined function : pg_pconnect() in filename.php on line xx mwpeng Linux - Newbie 1 02-26-2005 08:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 PM.

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