Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Fang-
Copy link
Collaborator

@Fang- Fang- commented May 31, 2022

This was printing the components of IPv4 addresses in backwards order.

This was printing the components of IPv4 addresses in backwards order.
@Fang- Fang- requested a review from joemfb May 31, 2022 22:27
u3l_log("ames: forwarding for %s to %s from %d.%d.%d.%d:%d\n",
sen_c, rec_c,
pip_y[0], pip_y[1], pip_y[2], pip_y[3],
pip_y[3], pip_y[2], pip_y[1], pip_y[0],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is correct so long as the "host byte order" is little-endian. That probably merits the classic comment.

Copy link
Collaborator

@joemfb joemfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joemfb joemfb merged commit 24e872f into next/vere Jun 4, 2022
@joemfb joemfb deleted the m/4vpi branch June 4, 2022 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants