Skip to content

Commit

Permalink
Use uint32_t for RTA_EXPIRES
Browse files Browse the repository at this point in the history
Remove debug logging as well.
  • Loading branch information
ColinMcInnes authored Jan 9, 2025
1 parent 1f4b9f1 commit 1ecf245
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/if-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ if_copyrt(struct dhcpcd_ctx *ctx, struct rt *rt, struct nlmsghdr *nlm)
break;
}
case RTA_EXPIRES:
rt->rt_expires = *(unsigned int *)RTA_DATA(rta);
rt->rt_expires = *(uint32_t *)RTA_DATA(rta);
break;
}

Expand Down Expand Up @@ -1739,7 +1739,6 @@ if_route(unsigned char cmd, const struct rt *rt)
add_attr_32(&nlm.hdr, sizeof(nlm), RTA_OIF, rt->rt_ifp->index);

/* add route lifetime */
logdebugx("Sending RTA_EXPIRES %d", rt->rt_expires);
add_attr_32(&nlm.hdr, sizeof(nlm), RTA_EXPIRES, rt->rt_expires);

if (rt->rt_metric != 0)
Expand Down

0 comments on commit 1ecf245

Please sign in to comment.