aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/khelp
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2022-11-08 18:24:40 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2022-11-08 18:24:40 +0000
commit9eb0e8326d0fe73ae947959c1df327238d3b2d53 (patch)
tree463aefaea3ad33a316cdea762f0e7efef4d4d584 /sys/netinet/khelp
parentf71cb9f74808facc9d3e6854f96da2afbed8a1e3 (diff)
downloadsrc-9eb0e8326d0fe73ae947959c1df327238d3b2d53.tar.gz
src-9eb0e8326d0fe73ae947959c1df327238d3b2d53.zip
tcp: provide macros to access inpcb and socket from a tcpcb
There should be no functional changes with this commit. Reviewed by: rscheff Differential revision: https://reviews.freebsd.org/D37123
Diffstat (limited to 'sys/netinet/khelp')
-rw-r--r--sys/netinet/khelp/h_ertt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/khelp/h_ertt.c b/sys/netinet/khelp/h_ertt.c
index 541319285b35..5e35b0909e84 100644
--- a/sys/netinet/khelp/h_ertt.c
+++ b/sys/netinet/khelp/h_ertt.c
@@ -219,7 +219,7 @@ ertt_packet_measurement_hook(int hhook_type, int hhook_id, void *udata,
measurenext = measurenext_len = multiack = rts = rtt_bytes_adjust = 0;
acked = th->th_ack - tp->snd_una;
- INP_WLOCK_ASSERT(tp->t_inpcb);
+ INP_WLOCK_ASSERT(tptoinpcb(tp));
/* Packet has provided new acknowledgements. */
if (acked > 0 || new_sacked_bytes) {
@@ -452,7 +452,7 @@ ertt_add_tx_segment_info_hook(int hhook_type, int hhook_id, void *udata,
len = thdp->len;
tso = thdp->tso;
- INP_WLOCK_ASSERT(tp->t_inpcb);
+ INP_WLOCK_ASSERT(tptoinpcb(tp));
if (len > 0) {
txsi = uma_zalloc(txseginfo_zone, M_NOWAIT);