Skip to content

Commit 424a8b6

Browse files
authored
Merge pull request #12 from h0x0er/jatin/updates
progs(net): fixed placeholders
2 parents cf380de + e92786d commit 424a8b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"name": "h0x0er",
1111
"url": "https://h0x0er.github.io/"
1212
},
13-
"version": "0.3.0",
13+
"version": "0.3.1",
1414
"engines": {
1515
"vscode": "^1.0.0"
1616
},

snippets/progs-network.code-snippets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scope": "c",
44
"prefix": "bpf-prog-tc",
55
"body": [
6-
"${1| ,// Refer: https://docs.ebpf.io/linux/program-type/BPF_PROG_TYPE_SCHED_CLS|}",
6+
"${2| ,// Refer: https://docs.ebpf.io/linux/program-type/BPF_PROG_TYPE_SCHED_CLS|}",
77
"SEC(\"${1|tc/egress,tc/ingress,tcx/egress,tcx/ingress|}\")",
88
"int handle_${1/[\\/]/_/}(struct __sk_buff *skb){ return -1; }"
99
]
@@ -21,7 +21,7 @@
2121
"scope": "c",
2222
"prefix": "bpf-prog-sk-skb",
2323
"body": [
24-
"${1| ,// Refer: https://docs.ebpf.io/linux/program-type/BPF_PROG_TYPE_SK_SKB/|}",
24+
"${2| ,// Refer: https://docs.ebpf.io/linux/program-type/BPF_PROG_TYPE_SK_SKB/|}",
2525
"SEC(\"sk_skb/${1|stream_parser,stream_verdict|}\")",
2626
"int handle_$1(struct __sk_buff *skb){ return 1; }"
2727
]
@@ -33,7 +33,7 @@
3333
"${1| ,// Refer: https://docs.ebpf.io/linux/program-type/BPF_PROG_TYPE_SK_MSG/|}",
3434
"SEC(\"sk_msg\")",
3535
"int handle_skmsg(struct sk_msg_md *msg){ return SK_PASS; }"
36-
]
36+
]
3737
},
3838
"create sk_lookup prog": {
3939
"scope": "c",

0 commit comments

Comments
 (0)