Skip to content

Commit dc9553c

Browse files
avasylevmeta-codesync[bot]
authored andcommitted
Shiv Laser: Update Encapsulator to support HC_DST_MATCH BPF variant
Summary: See D94374505 for overall context . This diff implements C++ wrapper for functionality added in D94374505. Encapsulator class is intended to be used by other projects needing encapsulated redirection functionality. Reviewed By: nikhildl12 Differential Revision: D94395149 fbshipit-source-id: 9faac769957ca8c5922f49362588935db8942a92
1 parent 72f91e0 commit dc9553c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

katran/lib/BalancerStructs.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ struct hc_mac {
3636
uint8_t mac[6];
3737
};
3838

39+
// key for destination-based healthcheck matching
40+
struct hc_dst_key {
41+
union {
42+
uint32_t addr; // big-endian (__be32)
43+
uint32_t addrv6[4]; // big-endian (__be32)
44+
};
45+
uint16_t port; // big-endian (__be16); 0 = wildcard
46+
uint8_t flags; // V6DADDR if IPv6
47+
uint8_t pad;
48+
};
49+
3950
// vip's definition for lookup
4051
// also used for hc_keys
4152
struct vip_definition {

0 commit comments

Comments
 (0)