-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check: Refactor and create base for test cases
- Make tx_timestamp_timeout an argument - Import latest WMO net_tstamp.h - Set up an example test case Signed-off-by: Casper Andersson <[email protected]>
- Loading branch information
Showing
7 changed files
with
355 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
// SPDX-FileCopyrightText: 2024 Casper Andersson <[email protected]> | ||
|
||
#include "net_tstamp_cpy.h" | ||
#include "timestamping.h" | ||
#include "tstest.h" | ||
|
||
#define SEQUENCE_MAX 100 | ||
|
||
struct pkt_cfg { | ||
|
@@ -17,11 +21,18 @@ struct pkt_cfg { | |
int domain; | ||
int tstype; | ||
int count; | ||
int vlan; | ||
int prio; | ||
int seq; | ||
unsigned char mac[ETH_ALEN]; | ||
char *interface; | ||
int sequence_types[SEQUENCE_MAX]; | ||
int sequence_length; | ||
enum delay_mechanism dm; | ||
enum hwtstamp_clk_types clk_type; | ||
}; | ||
|
||
int msg_get_type(union Message *msg); | ||
union Message build_msg(struct pkt_cfg *cfg, int type); | ||
int send_msg(struct pkt_cfg *cfg, int sock, union Message *msg, int64_t *ns); | ||
int build_and_send(struct pkt_cfg *cfg, int sock, int type, struct hw_timestamp *hwts, int64_t *ns); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.