DHCP: Add parentheses to macro definitions#585
DHCP: Add parentheses to macro definitions#585rsmarples merged 1 commit intoNetworkConfiguration:masterfrom
Conversation
Missing parentheses in IP_UDP_SIZE caused wrong computation of MSZ (option57). When mtu is 1500, current MSZ value is 1488=1500-20+8, while the correct value should be 1472=1500-(20+8). Also added parentheses for BOOTP_MIN_MTU.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
WalkthroughMacro definitions for DHCP size calculations are updated with explicit parenthesization to enforce correct operator precedence. IP_UDP_SIZE and BOOTP_MIN_MTU now use grouped expressions instead of relying on implicit precedence, eliminating potential miscalculation risks. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Looks good, thanks! |
f48f695
into
NetworkConfiguration:master
Missing parentheses in IP_UDP_SIZE caused wrong computation of MSZ (option57). When mtu is 1500, current MSZ value is 1488=1500-20+8, while the correct value should be 1472=1500-(20+8).
Also added parentheses for BOOTP_MIN_MTU.