Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry committed Sep 10, 2024
1 parent 5aa36cd commit 049b2c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPL/Events/Network/Probe.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ handle_consume(struct sock *sk, struct sk_buff *skb, int len, enum ebpf_event_ty
bpf_core_read(&ip_hdr, sizeof(struct iphdr), data + skb->network_header);

proto = ip_hdr.protocol;
bpf_probe_read(event->net.saddr, 4, (void*)&ip_hdr.saddr);
bpf_probe_read(event->net.daddr, 4, (void*)&ip_hdr.daddr);
bpf_probe_read(event->net.saddr, 4, (void *)&ip_hdr.saddr);
bpf_probe_read(event->net.daddr, 4, (void *)&ip_hdr.daddr);

} else if (iphdr_first_byte == 6) {
struct ipv6hdr ip6_hdr;
Expand Down

0 comments on commit 049b2c1

Please sign in to comment.