MCPcopy Create free account
hub / github.com/google/gvisor / TransportHeader

Method TransportHeader

pkg/tcpip/stack/packet_buffer.go:251–256  ·  view source on GitHub ↗

TransportHeader returns the handle to transport-layer header.

()

Source from the content-addressed store, hash-verified

249
250// TransportHeader returns the handle to transport-layer header.
251func (pk *PacketBuffer) TransportHeader() PacketHeader {
252 return PacketHeader{
253 pk: pk,
254 typ: transportHeader,
255 }
256}
257
258// HeaderSize returns the total size of all headers in bytes.
259func (pk *PacketBuffer) HeaderSize() int {

Callers 15

TestWriteStatsFunction · 0.95
handleICMPMethod · 0.95
sendICMPEchoReplyMethod · 0.95
returnErrorMethod · 0.95
MakeRandPktFunction · 0.95
TestWriteStatsFunction · 0.95
returnErrorMethod · 0.95
genTCPPacketFunction · 0.95
WriteMethod · 0.95

Calls

no outgoing calls

Tested by 15

TestWriteStatsFunction · 0.76
TestWriteStatsFunction · 0.76
genTCPPacketFunction · 0.76
WriteMethod · 0.76
TestPacketHeaderPushFunction · 0.76
TestPacketHeaderConsumeFunction · 0.76