Modify IP address / Port with a interface filter extension
Modify IP address / Port with a interface filter extension
- Subject: Modify IP address / Port with a interface filter extension
- From: devmaillists <email@hidden>
- Date: Tue, 4 Apr 2006 21:39:24 +0200
Hello dear mailing list,
I like to modify a Ethernet packet with a interface filter extension.
The subject of change is the ip destination and port number.
I am not very familiar with the mbuf structures but I am currently
learning. So here come my questions.
Do I have to extract the data of an mbuf int a separate buffer to
work on? Or is looping through the mbuf until I find the right
position the best way.
If I modifiy a byte in the IP data, the CS of the IP Packet and of
the Ethernet packet do have to be recalculated or only the IP CS?
Is there a call doing the recalculation or is it best to recalc it by
my own?
Does anybody have s short sample?
Szenario:
several Macs in a Network. One Mac shares its network to the outside
with the other Macs trough Internetsharing.
iMac1 types www.something.com in its safari.
It will see a page located at: www.auth.com and has to type a password.
Next time the Gateway Mac knows the MACADDr of iMac1 and allows the
connection to the outside.
Any tips welcome.
Thank you very much in advance.
Jürgen
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden