Skip to content

Commit

Permalink
Update packet.bpf.h
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxianyu777 authored Jun 14, 2024
1 parent 54aecc5 commit 1530317
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions eBPF_Supermarket/Network_Subsystem/net_watcher/packet.bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ int __tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)

// TX HTTP info
if (http_info) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 1)
u8 *user_data = BPF_CORE_READ(msg, msg_iter.__iov, iov_base);
#else
u8 *user_data = BPF_CORE_READ(msg, msg_iter.iov,iov_base);
#endif
//u8 *user_data = BPF_CORE_READ(msg, msg_iter.__iov, iov_base);
// #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 1)
// u8 *user_data = BPF_CORE_READ(msg, msg_iter.__iov, iov_base);
// #else
// u8 *user_data = BPF_CORE_READ(msg, msg_iter.iov,iov_base);
// #endif
u8 *user_data = BPF_CORE_READ(msg, msg_iter.__iov, iov_base);
tinfo = (struct ktime_info *)bpf_map_lookup_or_try_init(
&timestamps, &pkt_tuple, &zero);
if (tinfo == NULL) {
Expand Down

0 comments on commit 1530317

Please sign in to comment.