Skip to content

Commit

Permalink
test: Fix tst.print.skb.r
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh authored and kvanhees committed Jan 30, 2024
1 parent aeac9ac commit bea9dfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/unittest/print/tst.print.skb.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ BEGIN
{
skb = (struct sk_buff *)alloca(sizeof (struct sk_buff));
skb->len = 123;
skb->network_header = 32;
skb->data = (unsigned char *)0xfeedfacefeedface;
skb->truesize = 32;
print(skb);
exit(0);
}
9 changes: 1 addition & 8 deletions test/unittest/print/tst.print.skb.r
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{ptr} = *
(struct sk_buff) {
.len = (unsigned int)123,
(struct) {
(struct) {
.network_header = (__u16)32,
},
.headers = (struct) {
.network_header = (__u16)32,
},
},
.data = (unsigned char *){ptr},
.truesize = (unsigned int)32,
}

0 comments on commit bea9dfe

Please sign in to comment.