Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
- Subject: Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
- From: Karunakar Reddy G <email@hidden>
- Date: Tue, 26 Jul 2005 11:18:09 +0530
Hi Josh,
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",
For that I need to update mbuf_t for hardware checks.
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
1) mbuf->m_pkthdr.csum_flags = 0x0020;
2) mbuf->m_pkthdr.csum_data = 0xFFFFFFFF;
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 */
};
Thanks
Karunakar
_______________________________________________
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