Solved

paket header query?

Posted on 2004-04-16
6
200 Views
Last Modified: 2010-03-18
can it be possible to modify packet header? can i add some own header field to packet header and let it be sent by kernel?
my system is redhat linux 9 kernel 2.4.24?
0
Comment
Question by:b123coder
  • 4
6 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10841117
Hi b123coder,

You can use raw sockets and form header in any way you like ... However note that if you form the header which does not correspond to the standards (RFC for that protocol ... see ietf.org) then recepient willnot be able to understand it and will reject it ..

http://mixter.void.ru/rawip.html

good luck
Sunnycoder
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10841139
Hi n_uthra25,

btw, if you just wish to mangle the packet a bit without descending into the kernel, then check libipq
http://www.cs.princeton.edu/~nakao/libipq.htm

Sunnycoder
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10841652
http://sourceforge.net/projects/pacgen/ is a program which allows you to send customised packets.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:b123coder
ID: 10849285

 i want to know also:-
while reading computer networks book i came across a statement that all machines are required to receive at least 576 bytes?
what is that mean? then what is the ethernet handling 1500 bytes payload then? it means that those machines cannot transfer 1500 payloads?
Is there any room for implementing own header field in options of IP header?
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 90 total points
ID: 10856495
>all machines are required to receive at least 576 bytes?
>what is that mean?
This is protocol specific information and will vary from protocol to protocol ... ATM cells are 53 bytes and minimum valid ethernet frame is perhaps 64 bytes (if I recollect correctly)

>then what is the ethernet handling 1500 bytes payload then? it means that those machines
>cannot transfer 1500 payloads?
What you read was specific to a protocols and universally applicable to all protocols ... An ethernet frame has its own minimum and maximum size

>Is there any room for implementing own header field in options of IP header?
There is an options field in V4
http://www.freesoft.org/CIE/RFC/791/12.htm

For details of what you can and cannot do with V4 and V6 headers, I recommend that you go through the rfcs
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10856536
>What you read was specific to a protocols and universally applicable to all protocols

I meant

What you read was specific to a protocol and NOT universally applicable to all protocols
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now