Skip to content

Commit

Permalink
make gen
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <[email protected]>
  • Loading branch information
LiZhenCheng9527 committed Jul 31, 2024
1 parent 438e282 commit ccb0848
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bpf/kmesh/workload/sockops.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static inline bool is_managed_by_kmesh(struct bpf_sock_ops *skops)
else
IP6_COPY(key.addr.ip6, skops->local_ip6);
}

int *value = bpf_map_lookup_elem(&map_of_manager, &key);
if (!value)
return false;
Expand Down Expand Up @@ -73,7 +73,6 @@ static inline void extract_skops_to_tuple(struct bpf_sock_ops *skops, struct bpf

static inline void extract_skops_to_tuple_reverse(struct bpf_sock_ops *skops, struct bpf_sock_tuple *tuple_key)
{

if (skops->family == AF_INET) {
tuple_key->ipv4.saddr = skops->remote_ip4;
tuple_key->ipv4.daddr = skops->local_ip4;
Expand Down
2 changes: 1 addition & 1 deletion pkg/auth/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func isEmptyMatch(m *security.Match) bool {
m.GetNamespaces() == nil && m.GetNotNamespaces() == nil
}

// todo : get identity form tls connection
// todo : get identity from tls connection
func (r *Rbac) getIdentityByIp(ip []byte) Identity {
var networkAddress cache.NetworkAddress
networkAddress.Address, _ = netip.AddrFromSlice(ip)
Expand Down
1 change: 1 addition & 0 deletions pkg/auth/rbac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/cilium/ebpf/asm"
"github.com/stretchr/testify/assert"
"istio.io/istio/pkg/util/sets"

"kmesh.net/kmesh/api/v2/workloadapi"
"kmesh.net/kmesh/api/v2/workloadapi/security"
"kmesh.net/kmesh/pkg/controller/workload/cache"
Expand Down

0 comments on commit ccb0848

Please sign in to comment.