mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
embed the Header in the ExtendedHeader
This commit is contained in:
parent
af157408de
commit
b740d57c61
12 changed files with 306 additions and 244 deletions
|
@ -50,9 +50,9 @@ var _ = Describe("Client", func() {
|
|||
acceptClientVersionPacket := func(connID protocol.ConnectionID) []byte {
|
||||
b := &bytes.Buffer{}
|
||||
Expect((&wire.ExtendedHeader{
|
||||
DestConnectionID: connID,
|
||||
PacketNumber: 1,
|
||||
PacketNumberLen: 1,
|
||||
Header: wire.Header{DestConnectionID: connID},
|
||||
PacketNumber: 1,
|
||||
PacketNumberLen: 1,
|
||||
}).Write(b, protocol.VersionWhatever)).To(Succeed())
|
||||
return b.Bytes()
|
||||
}
|
||||
|
@ -516,7 +516,7 @@ var _ = Describe("Client", func() {
|
|||
DestConnectionID: id,
|
||||
},
|
||||
extHdr: &wire.ExtendedHeader{
|
||||
IsLongHeader: true,
|
||||
Header: wire.Header{IsLongHeader: true},
|
||||
Type: protocol.PacketTypeRetry,
|
||||
Token: []byte("foobar"),
|
||||
OrigDestConnectionID: connID,
|
||||
|
@ -580,11 +580,13 @@ var _ = Describe("Client", func() {
|
|||
Version: cl.version,
|
||||
},
|
||||
extHdr: &wire.ExtendedHeader{
|
||||
IsLongHeader: true,
|
||||
Header: wire.Header{
|
||||
IsLongHeader: true,
|
||||
Version: protocol.VersionTLS,
|
||||
},
|
||||
Type: protocol.PacketTypeRetry,
|
||||
Token: []byte("foobar"),
|
||||
OrigDestConnectionID: connID,
|
||||
Version: protocol.VersionTLS,
|
||||
},
|
||||
})
|
||||
}).AnyTimes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue