Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106964859
D40826.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
794 B
Referenced Files
None
Subscribers
None
D40826.diff
View Options
diff --git a/sys/netinet/siftr.c b/sys/netinet/siftr.c
--- a/sys/netinet/siftr.c
+++ b/sys/netinet/siftr.c
@@ -160,6 +160,12 @@
DIR_IN = 0,
DIR_OUT = 1,
} direction;
+ /* IP version pkt_node relates to; either INP_IPV4 or INP_IPV6. */
+ uint8_t ipver;
+ /* Local TCP port. */
+ uint16_t tcp_localport;
+ /* Foreign TCP port. */
+ uint16_t tcp_foreignport;
/* Congestion Window (bytes). */
uint32_t snd_cwnd;
/* Sending Window (bytes). */
@@ -635,6 +641,9 @@
siftr_siftdata(struct pkt_node *pn, struct inpcb *inp, struct tcpcb *tp,
int ipver, int dir, int inp_locally_locked)
{
+ pn->ipver = ipver;
+ pn->tcp_localport = inp->inp_lport;
+ pn->tcp_foreignport = inp->inp_fport;
pn->snd_cwnd = tp->snd_cwnd;
pn->snd_wnd = tp->snd_wnd;
pn->rcv_wnd = tp->rcv_wnd;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 4:45 AM (6 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15729621
Default Alt Text
D40826.diff (794 B)
Attached To
Mode
D40826: siftr: unbreak dtrace support
Attached
Detach File
Event Timeline
Log In to Comment