udp_var: correct intoudpcb macro unintended identifier dependency
Change 483fe9651
embedded struct inpcb into struct udpcb and updated the
intoudpcb macro to use __containerof to locate it. This change accidentally
introduced a dependency on the identifier inp being defined in the block the
macro is expanded in. This should have been the macro argument ip. This change
makes this simple correction.
No functional change intended.
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
70e3e1bde9
commit
de4bfd6b99
|
@ -120,7 +120,7 @@ struct udpcb {
|
|||
void *u_tun_ctx; /* Tunneling callback context. */
|
||||
};
|
||||
|
||||
#define intoudpcb(ip) __containerof((inp), struct udpcb, u_inpcb)
|
||||
#define intoudpcb(ip) __containerof((ip), struct udpcb, u_inpcb)
|
||||
#define sotoudpcb(so) (intoudpcb(sotoinpcb(so)))
|
||||
|
||||
VNET_PCPUSTAT_DECLARE(struct udpstat, udpstat);
|
||||
|
|
Loading…
Reference in New Issue