mbufs in tcp_output and tcp_input
- From: "Haisang Wu" <haisang@xxxxxxxxx>
- Date: Mon, 26 Jun 2006 19:11:09 -0700
Hello,
I need to read m_flags of a mbuf in an TCP application in the following
two cases:
(1) in sending direction, right before TCP calls ip_output() to send out a
packet,
(2) in receiving direction, right before TCP appends a packet to so_rcv of
the corresponding socket and wakes up the socket.
My understandings are: for (1), tcp_output() only calls ip_output() once,
so right before that function call, I should read the m_flags.
For (2), tcp_input() is more complex and calls insbappendstream_locked()
twice, one for fast path processing, and one for slow path processing. I
think I should read m_flags before both of the two insbappendstream_locked()
function calls.
I am using freebsd 5.4. Could you let me know whether my above
understandings are correct, and provide some suggestions?
Thank you!
Haisang
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Prev by Date: Re: kern/99188: [tcp] [patch] FIN in same packet as duplicate ACK is lost
- Next by Date: Re: VPN with FAST_IPSEC and ipsec tools
- Previous by thread: FreeBSD-6.1 modification about tcp_input fast recovery
- Next by thread: fetch http://localhost:6666 hangs
- Index(es):
Relevant Pages
|
|