Skip to content

Commit 64a1668

Browse files
committed
Reformat eBPF code. Add .editorconfig to .gitignore.
1 parent c62da14 commit 64a1668

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

.editorconfig

-24
This file was deleted.

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ token.json
4040

4141
## Usual macOS cruft ###
4242
.DS_Store
43+
44+
## Editor config
45+
.editorconfig

counter.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static inline void process_eth(void *data, void *data_end, __u64 pkt_len) {
267267
break;
268268
}
269269
default:
270-
bpf_printk("wrong packet type: %d", eth->h_proto);
270+
bpf_printk("wrong packet type: %d", eth->h_proto);
271271
return;
272272
}
273273

@@ -323,9 +323,8 @@ static inline void process_cgroup_skb(struct __sk_buff *skb) {
323323
break;
324324
}
325325
default:
326-
bpf_printk("wrong packet type: %d", skb->protocol);
326+
bpf_printk("wrong packet type: %d", skb->protocol);
327327
return;
328-
329328
}
330329

331330
// lookup value in hash

0 commit comments

Comments
 (0)