Solved

paket header query?

Posted on 2004-04-16
6
184 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
Comment Utility
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
Comment Utility
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
Comment Utility
http://sourceforge.net/projects/pacgen/ is a program which allows you to send customised packets.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:b123coder
Comment Utility

 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
Comment Utility
>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
Comment Utility
>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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

13 Experts available now in Live!

Get 1:1 Help Now