Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
d402ba6f
Commit
d402ba6f
authored
Jun 07, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make settings_id 2 bytes field
parent
458ccb36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/nghttp2_frame.c
lib/nghttp2_frame.c
+4
-4
lib/nghttp2_frame.h
lib/nghttp2_frame.h
+1
-1
No files found.
lib/nghttp2_frame.c
View file @
d402ba6f
...
...
@@ -513,8 +513,8 @@ size_t nghttp2_frame_pack_settings_payload(uint8_t *buf,
{
size_t
i
;
for
(
i
=
0
;
i
<
niv
;
++
i
,
buf
+=
NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH
)
{
buf
[
0
]
=
iv
[
i
].
settings_id
;
nghttp2_put_uint32be
(
buf
+
1
,
iv
[
i
].
value
);
nghttp2_put_uint16be
(
buf
,
iv
[
i
].
settings_id
)
;
nghttp2_put_uint32be
(
buf
+
2
,
iv
[
i
].
value
);
}
return
NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH
*
niv
;
}
...
...
@@ -544,8 +544,8 @@ int nghttp2_frame_unpack_settings_payload(nghttp2_settings *frame,
void
nghttp2_frame_unpack_settings_entry
(
nghttp2_settings_entry
*
iv
,
const
uint8_t
*
payload
)
{
iv
->
settings_id
=
payload
[
0
]
;
iv
->
value
=
nghttp2_get_uint32
(
&
payload
[
1
]);
iv
->
settings_id
=
nghttp2_get_uint16
(
&
payload
[
0
])
;
iv
->
value
=
nghttp2_get_uint32
(
&
payload
[
2
]);
}
int
nghttp2_frame_unpack_settings_payload2
(
nghttp2_settings_entry
**
iv_ptr
,
...
...
lib/nghttp2_frame.h
View file @
d402ba6f
...
...
@@ -55,7 +55,7 @@
#define NGHTTP2_DATA_PAYLOADLEN 4096
/* The number of bytes for each SETTINGS entry */
#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH
5
#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH
6
/* The maximum header table size in SETTINGS_HEADER_TABLE_SIZE */
#define NGHTTP2_MAX_HEADER_TABLE_SIZE ((1u << 31) - 1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment