len_diff is signed.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -1433,7 +1433,7 @@ union bpf_attr { · 1432 unmodified lines | ||
| 1433 | 1433 | * Return |
| 1434 | 1434 | * 0 on success, or a negative error in case of failure. |
| 1435 | 1435 | * |
| 1436 | − * int bpf_skb_adjust_room(struct sk_buff *skb, u32 len_diff, u32 mode, u64 flags) | |
| 1436 | + * int bpf_skb_adjust_room(struct sk_buff *skb, s32 len_diff, u32 mode, u64 flags) | |
| 1437 | 1437 | * Description |
| 1438 | 1438 | * Grow or shrink the room for data in the packet associated to |
| 1439 | 1439 | * *skb* by *len_diff*, and according to the selected *mode*. |