Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Packetdrill_tarr_ext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stefan Gense
Packetdrill_tarr_ext
Commits
475de68c
Commit
475de68c
authored
9 years ago
by
Michael Tüxen
Browse files
Options
Downloads
Patches
Plain Diff
Add structure for HEARTBEAT Information parameter.
parent
85818684
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gtests/net/packetdrill/sctp.h
+12
-1
12 additions, 1 deletion
gtests/net/packetdrill/sctp.h
with
12 additions
and
1 deletion
gtests/net/packetdrill/sctp.h
+
12
−
1
View file @
475de68c
...
...
@@ -53,6 +53,8 @@ struct sctp_common_header {
#define SCTP_CWR_CHUNK_TYPE 0x0d
#define SCTP_SHUTDOWN_COMPLETE_CHUNK_TYPE 0x0e
#define MAX_SCTP_CHUNK_BYTES 0xffff
struct
sctp_chunk
{
__u8
type
;
__u8
flags
;
...
...
@@ -202,6 +204,7 @@ struct sctp_shutdown_complete_chunk {
__be16
length
;
}
__packed
;
#define SCTP_HEARTBEAT_INFORMATION_PARAMETER_TYPE 0x0001
#define SCTP_IPV4_ADDRESS_PARAMETER_TYPE 0x0005
#define SCTP_IPV6_ADDRESS_PARAMETER_TYPE 0x0006
#define SCTP_STATE_COOKIE_PARAMETER_TYPE 0x0007
...
...
@@ -211,12 +214,20 @@ struct sctp_shutdown_complete_chunk {
#define SCTP_SUPPORTED_ADDRESS_TYPES_PARAMETER_TYPE 0x000c
#define SCTP_ECN_CAPABLE_PARAMETER_TYPE 0x8000
#define MAX_SCTP_PARAMETER_BYTES 0xffff
struct
sctp_parameter
{
__be16
type
;
__be16
length
;
__u8
value
[];
}
__packed
;
struct
sctp_heartbeat_information_parameter
{
__be16
type
;
__be16
length
;
__u8
information
[];
}
__packed
;
struct
sctp_ipv4_address_parameter
{
__be16
type
;
__be16
length
;
...
...
@@ -250,7 +261,7 @@ struct sctp_cookie_preservative_parameter {
struct
sctp_hostname_address_parameter
{
__be16
type
;
__be16
length
;
__u8
hostname
[];
char
hostname
[];
}
__packed
;
struct
sctp_supported_address_types_parameter
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment