So the underlying drivers can use it to select the sending queue properly for SYN|ACK instead of rolling their own hash.
Details
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
I hope you'd write a bit more descriptive commit-log (not just 'what' but also 'why') for the change. Thanks a lot for your work!
Cheers,
Hiren
sys/netinet/tcp_syncache.c | ||
---|---|---|
1507 | Do you mind adding a line or two about what this function does in comments to improve readability? Thanks :-) |
Basically what you're doing is to loop back the flowid of the received packet - right?
Maybe you could put that in a code comment.
Yep, since we don't have inp to loopback the SYN's flowid here. So we use the SYN's flowid directly. OK, will add.
style(9) was recently changed to permit the braces that were here. I personally prefer the braces, especially in cases like this, where the else has braces.