Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -josh On Jul 25, 2005, at 10:48 PM, Karunakar Reddy G wrote: Hi Josh, For that I need to update mbuf_t for hardware checks. 1) mbuf->m_pkthdr.csum_flags = 0x0020; 2) mbuf->m_pkthdr.csum_data = 0xFFFFFFFF; Thanks Karunakar _______________________________________________ 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... This email sent to site_archiver@lists.apple.com I'm not sure I follow. I understand that you set that flag and value on the outbound path. Who is the client of that flag and value? The csum_flags value of 0x0020 is undefined. I use this to update checksum flag and data for Transmits an output packet , I override function outputPacket(mbuf _t, void * param) which defined in "network/IONetworkController.h", In old code, it can be used very easily using mbuf->m_pkthdr, You can see below for the same, now I dont have any option to update these members I will appreciate if any body can help me, /* record/packet header in first mbuf of chain; valid if M_PKTHDR set */ struct pkthdr { int len; /* total packet length */ struct ifnet *rcvif; /* rcv interface */ /* variables for ip and tcp reassembly */ void *header; /* pointer to packet header */ /* variables for hardware checksum */ int csum_flags; /* flags regarding checksum */ int csum_data; /* data field used by csum routines */ struct mbuf *aux; /* extra data buffer; ipsec/others */ void *reserved1; /* for future use */ void *reserved2; /* for future use */ }; _______________________________________________ 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/jgraessley% 40apple.com This email sent to jgraessley@apple.com smime.p7s
participants (1)
-
Josh Graessley