----- Original Message -----
>Date: Wed, 12 Mar 2008 14:31:21 +0530
>From: "Nabil Rahiman" <[EMAIL PROTECTED]>
>To: [email protected]
>Subject: [driver-discuss] EthernetDirver-packet-tcp_mss
>
>
>Hi,
>
>    I am writing for device driver for an Ethernet chip. It is required TCP
>MSS value of the packet for sending across the network.
> Is there any routine/macro  for accessing  the TC MSS field of a
>packet(always stored at  end of tcp header.).
> In linux it is available, hope same type routine or macro is available in
>Solaris too.
>

I guess you are planning to use TCP large send offloading.
If yes, you can get mss by hcksum_retrieve().
For detail, please refer xge driver, especially uts/common/io/xge/drv/xgell.c

If not, I don't know how to get mss from mblk_t, sorry. I think there is
no formal way to refer data structures in tcp from mblk_t.

-masa

>----- inline -----
>_______________________________________________
>driver-discuss mailing list
>[email protected]
>http://mail.opensolaris.org/mailman/listinfo/driver-discuss

_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to