Skip to content
Snippets Groups Projects
Commit bd05cfa2 authored by hoelscher's avatar hoelscher
Browse files

styling changes

parent c5218b4d
No related branches found
No related tags found
No related merge requests found
......@@ -344,6 +344,7 @@ static int sctp_adaptation_indication_parameter_to_string(
char **error)
{
u16 length;
length = ntohs(parameter->length);
if (length < sizeof(struct sctp_parameter)) {
asprintf(error, "PARAMETER too short (type=0x%04x, length=%u)",
......@@ -353,7 +354,7 @@ static int sctp_adaptation_indication_parameter_to_string(
fputs("ADAPTATION_INDICATION[", s);
fprintf(s, "type=0x%04x, ", ntohs(parameter->type));
fprintf(s, "len=%hu, ", ntohs(parameter->length));
fprintf(s, "val=%u", parameter->adaptation_code_point);
fprintf(s, "val=%u", ntohl(parameter->adaptation_code_point));
fputs("]", s);
return STATUS_OK;
}
......@@ -363,6 +364,7 @@ static int sctp_parameter_to_string(FILE *s,
char **error)
{
int result;
switch (ntohs(parameter->type)) {
case SCTP_HEARTBEAT_INFORMATION_PARAMETER_TYPE:
result = sctp_heartbeat_information_parameter_to_string(s,
......
......@@ -16,9 +16,9 @@
COOKIE_PRESERVATIVE[incr=12345],
SUPPORTED_ADDRESS_TYPES[types=[IPv4]]]
+0.0 > sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=..., os=..., is=..., tsn=10, ...]
+0.1 < sctp: COOKIE_ECHO[flgs=0, len=..., val=...]
+0.0 > sctp: COOKIE_ACK[flgs=0]
* > sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=..., os=..., is=..., tsn=10, ...]
+0.0 < sctp: COOKIE_ECHO[flgs=0, len=..., val=...]
* > sctp: COOKIE_ACK[flgs=0]
+0.0 accept(3, ..., ...) = 4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment