Skip to content

Commit

Permalink
Add missing break when creating PTP packets
Browse files Browse the repository at this point in the history
Signed-off-by: Casper Andersson <[email protected]>
  • Loading branch information
cappe987 committed Dec 6, 2023
1 parent 66a9f90 commit e40063c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ptp_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,24 +207,34 @@ union Message ptp_msg_create_type(struct ptp_header hdr, Octet type)
switch (type) {
case SYNC:
msg.sync = create_sync(hdr);
break;
case DELAY_REQ:
msg.delay_req = create_delay_req(hdr);
break;
case FOLLOW_UP:
msg.follow_up = create_follow_up(hdr);
break;
case DELAY_RESP:
msg.delay_resp = create_delay_resp(hdr);
break;
case MANAGEMENT:
msg.management = create_management(hdr);
break;
case PDELAY_REQ:
msg.pdelay_req = create_pdelay_req(hdr);
break;
case PDELAY_RESP:
msg.pdelay_resp = create_pdelay_resp(hdr);
break;
case PDELAY_RESP_FUP:
msg.pdelay_resp_fup = create_pdelay_resp_fup(hdr);
break;
case ANNOUNCE:
msg.announce = create_announce(hdr);
break;
case SIGNALING:
msg.signaling = create_signaling(hdr);
break;
}
return msg;
}
Expand Down

0 comments on commit e40063c

Please sign in to comment.