site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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. Does anybody have s short sample? Any tips welcome. Thank you very much in advance. Jürgen kodierwerk@mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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? 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. This email sent to site_archiver@lists.apple.com