Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142554834
D53542.id165730.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D53542.id165730.diff
View Options
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -624,6 +624,13 @@
#define INP_2PCP_MASK (INP_2PCP_BIT0 | INP_2PCP_BIT1 | INP_2PCP_BIT2)
#define INP_2PCP_SHIFT 18 /* shift PCP field in/out of inp_flags2 */
+/* inp_flags2 description for use with printf(9) %b identifier. */
+#define INP_FLAGS2_BITS "\20" \
+ "\11INP_RECVFLOWID\12INP_RECVRSSBUCKETID" \
+ "\13INP_RATE_LIMIT_CHANGED\14INP_ORIGDSTADDR" \
+ "\22INP_2PCP_SET\23INP_2PCP_BIT0\24INP_2PCP_BIT1" \
+ "\25INP_2PCP_BIT2"
+
/*
* Flags passed to in_pcblookup*(), inp_smr_lock() and inp_next().
*/
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -3076,6 +3076,9 @@
db_print_indent(indent);
db_printf("inp_flags: 0x%b\n", inp->inp_flags, INP_FLAGS_BITS);
+ db_print_indent(indent);
+ db_printf("inp_flags2: 0x%b\n", inp->inp_flags2, INP_FLAGS2_BITS);
+
db_print_indent(indent);
db_printf("inp_sp: %p inp_vflag: 0x%b\n", inp->inp_sp,
inp->inp_vflag, INP_VFLAGS_BITS);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 21, 10:58 PM (9 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24758935
Default Alt Text
D53542.id165730.diff (1 KB)
Attached To
Mode
D53542: ddb: provide inp_flags2 when printing inpcbs
Attached
Detach File
Event Timeline
Log In to Comment