Fix regression in handling O_FORWARD_IP opcode after r279948.
To properly handle 'fwd tablearg,port' opcode, copy sin_port value from sockaddr_in structure stored in the opcode into corresponding hopstore field. PR: 222953 MFC after: 1 week
This commit is contained in:
parent
092f8ba32f
commit
ff0a137952
@ -2442,6 +2442,7 @@ do { \
|
||||
sa6->sin6_len = sizeof(*sa6);
|
||||
sa6->sin6_addr = TARG_VAL(
|
||||
chain, tablearg, nh6);
|
||||
sa6->sin6_port = sa->sin_port;
|
||||
/*
|
||||
* Set sin6_scope_id only for
|
||||
* link-local unicast addresses.
|
||||
@ -2455,6 +2456,8 @@ do { \
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
args->hopstore.sin_port =
|
||||
sa->sin_port;
|
||||
sa = args->next_hop =
|
||||
&args->hopstore;
|
||||
sa->sin_family = AF_INET;
|
||||
|
Loading…
Reference in New Issue
Block a user