Skip to content

Instantly share code, notes, and snippets.

@johalun
johalun / gist:21ccbc88672903bf509331e6b1490859
Last active June 7, 2018 14:01
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);
@johalun
johalun / gist:183b4c8c7371b97a35261efaf4d9e6d0
Created June 3, 2018 07:53
netmap pkt-gen rx fail 12-current 2018-06-02
pkt-gen -i em0 -f rx fails after a few second with poll error.
hw: Dell broadwell laptop with I218-LM NIC
dmesg:
095.668289 [1706] nm_rxsync_prologue em0 RX0: fail 'head < kring->nr_hwcur || head > kring->nr_hwtail' h 160 c 160 t 671 rh 160 rc 160 rt 671 hc 671 ht 671
095.668315 [1751] netmap_ring_reinit called for em0 RX0
@johalun
johalun / libudev-devd.diff
Created May 31, 2018 12:50
libudev-devd update
diff --git a/devel/libudev-devd/Makefile b/devel/libudev-devd/Makefile
index c65aa3a543ec..26d04eeb9afb 100644
--- a/devel/libudev-devd/Makefile
+++ b/devel/libudev-devd/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= libudev-devd
-PORTVERSION= 0.3
+PORTVERSION= 0.4