Skip to content

Commit

Permalink
read encap Info for port 7123
Browse files Browse the repository at this point in the history
Summary: In diff D53256766 we added port 7123 for extended shiv monitoring

Reviewed By: avasylev

Differential Revision: D53570193

fbshipit-source-id: baf4739aa3b4dbac9435d2cd74a0d24d12a1d349
  • Loading branch information
lalitg845 authored and facebook-github-bot committed Feb 13, 2024
1 parent 5e41239 commit e3917dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion katran/decap/tc_bpf/tc_decap_info.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

#define DST_PORT_443 443
#define DST_PORT_8080 8080
#define DST_PORT_7123 7123

__attribute__((__always_inline__)) static inline bool parse_inner_udp(
void* data,
Expand Down Expand Up @@ -131,7 +132,8 @@ __attribute__((__always_inline__)) static inline int process_packet(
}
if ((pckt.flow.port16[1] == bpf_htons(GUE_DPORT)) &&
((inner_pckt.flow.port16[1] == bpf_htons(DST_PORT_443)) ||
(inner_pckt.flow.port16[1] == bpf_htons(DST_PORT_8080)))) {
(inner_pckt.flow.port16[1] == bpf_htons(DST_PORT_8080)) ||
(inner_pckt.flow.port16[1] == bpf_htons(DST_PORT_7123)))) {
int ret = bpf_map_update_elem(
&pkt_encap_info, &inner_pckt.flow, &pckt.flow, BPF_ANY);
if (ret) {
Expand Down

0 comments on commit e3917dd

Please sign in to comment.