2009/6/5 Tom Chen <chento...@hotmail.com>: > > I think of a workaround. Our card has packet header split capability, > "non-fragmented TCP or UDP packets will be split at the TCP/UDP payload". > So, I am wondering if it is better just to copy the TCP/UDP header > portion to the new mblk_t and link its b_cont to the payload? I guess, > Solaris OS does not care if payload is on a 4 byte boundary or not, only > header portion matters. I tried, but FTP fails. Below is the code, I haven't > done the 2 bytes offset yet as Garrett advised. >
I suspect you probably need at least the TCP header in the first segment. The stack should pull it up but I bet it's buggy because most drivers pass packets up in a single segment. Try doing your header/payload split but insert a gratuitous pullupmsg(mp, 66); just before you send it up. See if that fixes your problem. -- Paul Durrant http://www.linkedin.com/in/pdurrant _______________________________________________ driver-discuss mailing list driver-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/driver-discuss