Skip to content

Commit

Permalink
loxilb-io/loxilb#864 Initail support for lb source ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Nov 18, 2024
1 parent 0572805 commit 7aed0bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/common_pdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pdi_rule_delete(struct pdi_map *map, struct pdi_key *key, uint32_t pref, int *nr

node = pdi_rule_delete__(map, key, pref, nr);
if (node != NULL) {
pdi_rule2str(node);
//pdi_rule2str(node);
HASH_ITER(hh, node->hash, val, tmp) {
HASH_DEL(node->hash, val);
if (map->pdi_del_map_em) {
Expand Down
6 changes: 3 additions & 3 deletions common/llb_dpapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,9 @@ struct dp_nat_key {
__u32 daddr[4];
__u16 dport;
__u16 zone;
__u16 mark;
__u8 l4proto;
__u8 v6;
__u32 mark;
__u16 l4proto;
__u16 v6;
};

#define NAT_LB_SEL_RR 0
Expand Down
4 changes: 2 additions & 2 deletions kernel/llb_kern_natlbfwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ dp_do_nat(void *ctx, struct xfi *xf)
}

memset(&key, 0, sizeof(key));
key.mark = (__u16)(xf->pm.dp_mark & 0xffff);
key.mark = xf->pm.dp_mark;

if (!(key.mark & 0x8000)) {
if (!(key.mark & 0x80000000)) {
DP_XADDR_CP(key.daddr, xf->l34m.daddr);
if (xf->l34m.nw_proto != IPPROTO_ICMP) {
key.dport = xf->l34m.dest;
Expand Down

0 comments on commit 7aed0bd

Please sign in to comment.