Skip to content

Instantly share code, notes, and snippets.

@johalun
Last active June 7, 2018 14:01
Show Gist options
  • Save johalun/21ccbc88672903bf509331e6b1490859 to your computer and use it in GitHub Desktop.
Save johalun/21ccbc88672903bf509331e6b1490859 to your computer and use it in GitHub Desktop.
Missing patch for SO_REUSEPORT_LB
diff --git a/cddl/lib/libdtrace/udp.d b/cddl/lib/libdtrace/udp.d
index 70652cbfce4..917baa663c7 100644
--- a/cddl/lib/libdtrace/udp.d
+++ b/cddl/lib/libdtrace/udp.d
@@ -58,12 +58,12 @@ translator udpsinfo_t < struct inpcb *p > {
udps_rport = p == NULL ? 0 : ntohs(p->inp_inc.inc_ie.ie_fport);
udps_laddr = p == NULL ? "" :
p->inp_vflag == INP_IPV4 ?
- inet_ntoa(&p->inp_inc.inc_ie.ie_dependladdr.ie46_local.ia46_addr4.s_addr) :
- inet_ntoa6(&p->inp_inc.inc_ie.ie_dependladdr.ie6_local);
+ inet_ntoa(&p->inp_inc.inc_ie.ie_dependladdr.id46_addr.ia46_addr4.s_addr) :
+ inet_ntoa6(&p->inp_inc.inc_ie.ie_dependladdr.id6_addr);
udps_raddr = p == NULL ? "" :
p->inp_vflag == INP_IPV4 ?
- inet_ntoa(&p->inp_inc.inc_ie.ie_dependfaddr.ie46_foreign.ia46_addr4.s_addr) :
- inet_ntoa6(&p->inp_inc.inc_ie.ie_dependfaddr.ie6_foreign);
+ inet_ntoa(&p->inp_inc.inc_ie.ie_dependfaddr.id46_addr.ia46_addr4.s_addr) :
+ inet_ntoa6(&p->inp_inc.inc_ie.ie_dependfaddr.id6_addr);
};
#pragma D binding "1.6.3" translator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment