Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Zhonghu Xu <[email protected]>
  • Loading branch information
hzxuzhonghu committed Oct 10, 2024
1 parent 45a7064 commit 0a7735d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bpf/include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static inline int convert_v6(char *data, __u32 *ip6)
__u16 ip_1 = (ip >> 0) & 0xFFFF;
__u16 ip_2 = (ip >> 16) & 0xFFFF;
for (int j = 0; j < 2; j++) {
__u16 ip_1 = (ip) & 0xFFFF;
__u16 ip_1 = (ip)&0xFFFF;
__u8 h_1 = (ip_1 >> 0) & 0xFF;
__u8 h_2 = (ip_1 >> 8) & 0xFF;
*data++ = hex_digits[(h_1 >> 4) & 0xF];
Expand Down
2 changes: 1 addition & 1 deletion hack/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ function install_clang_format () {

install_clang_format

find ./ -path "./api/v2-c" -prune -o -name "*.[ch]" -exec clang-format -i {} \;
find ./ -name "*.[ch]" |grep -v pb-c |xargs clang-format -i

0 comments on commit 0a7735d

Please sign in to comment.