zephyr/subsys/net/ip
Paul Sokolovsky 7c7223982a net: shell: conn: Cross-ref TCP control block to owning context
Previously "conn" command dumped TCP control blocks without
referencing it to an owning context, making it hard to figure
out what happens. Now, dump context address.

Example before:

net> conn
     Context    Iface         Flags Local               Remote
[ 1] 0x00403360 0x0041fac0    6ST   [::]:4242   [::]:0
[ 2] 0x004033c8 0x0041fac0    4ST   0.0.0.0:4242        0.0.0.0:0
[ 3] 0x00403430 0x0041fac0    6DU   [::]:4242   [::]:0
[ 4] 0x00403498 0x0041fac0    4DU   0.0.0.0:4242        0.0.0.0:0
[ 5] 0x00403500 0x0041fac0    4ST   192.0.2.1:4242      192.0.2.2:55314

TCP        Src port  Dst port   Send-Seq   Send-Ack  MSS
0x00403c00     4242         0 2541690653          0  1440
0x00403cbc     4242         0 2797902539 3233948882  1460
0x00403d78     4242     55314 2797902539 3233948882  1460

Example after:

net> conn
     Context    Iface         Flags Local               Remote
[ 1] 0x00403360 0x0041fac0    6ST   [::]:4242   [::]:0
[ 2] 0x004033c8 0x0041fac0    4ST   0.0.0.0:4242        0.0.0.0:0
[ 3] 0x00403430 0x0041fac0    6DU   [::]:4242   [::]:0
[ 4] 0x00403498 0x0041fac0    4DU   0.0.0.0:4242        0.0.0.0:0
[ 5] 0x00403500 0x0041fac0    4ST   192.0.2.1:4242      192.0.2.2:55424

TCP        Context   Src port Dst port   Send-Seq   Send-Ack  MSS
0x00403c00 0x00403360    4242        0 1854382523          0  1440
0x00403cbc 0x004033c8    4242        0 1420360158 2064582979  1460
0x00403d78 0x00403500    4242    55424 1420360158 2064582979  1460

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2018-01-04 18:38:19 -05:00
..
l2 various: Update/fix some textual material and code comments. 2017-12-29 09:45:39 -05:00
6lo_private.h net/net_pkt: Fully separate struct net_pkt from struct net_buf 2017-04-21 14:19:50 +03:00
6lo.c net: 6lo: Fix 6lo uncompression issue 2017-10-20 10:33:28 +03:00
6lo.h net/net_pkt: Fully separate struct net_pkt from struct net_buf 2017-04-21 14:19:50 +03:00
CMakeLists.txt subsys/net/ip: Clear up content in CMakeLists.txt 2017-12-11 09:34:16 -05:00
connection.c net: Log drop reason when UDP or TCP checksum mismatch occurs 2017-09-29 15:10:35 +03:00
connection.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
dhcpv4.c net: dhcpv4: Unref net_pkt if message sending fails 2017-11-17 11:16:04 +02:00
dhcpv4.h
icmpv4.c net: icmpv4: Fix ICMPv4 packet size calculation 2017-09-13 09:28:32 -04:00
icmpv4.h net: icmpv4: Calculate start of ICMPv4 echo-req properly 2017-08-07 21:32:03 -04:00
icmpv6.c net: Fix indentation issues 2017-08-09 16:01:28 +03:00
icmpv6.h net: icmp: Remove NET_ICMP_HDR() macro and direct access to net_buf 2017-07-07 15:24:00 +03:00
ipv4.c net: ip: Optimize statements for setting packet lengths. 2018-01-04 18:37:18 -05:00
ipv4.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
ipv6.c net: ip: Optimize statements for setting packet lengths. 2018-01-04 18:37:18 -05:00
ipv6.h various: Update/fix some textual material and code comments. 2017-12-29 09:45:39 -05:00
Kconfig kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
Kconfig.debug net: pkt: Add CONFIG_NET_DEBUG_NET_PKT_ALL option 2017-08-16 14:50:57 -04:00
Kconfig.ipv4
Kconfig.ipv6 net/6lo: Enable it by default if IEEE 802.15.4 is enabled 2017-10-28 14:28:02 -04:00
Kconfig.mgmt net/mgmt: Cleanup a bit Kconfig 2017-10-09 10:53:17 +03:00
Kconfig.rpl net: rpl: Allow fine tuning of parent count 2017-08-14 11:06:34 +03:00
Kconfig.stack net: ip: Increase RX stack size 2017-04-07 13:33:55 +03:00
Kconfig.stats net: stats: Activate RPL and MLD stats if needed 2017-05-17 13:55:21 +03:00
nbr.c net: nbr: Use the real size of the neighbor pool 2017-08-14 11:06:34 +03:00
nbr.h net: nbr: Use the real size of the neighbor pool 2017-08-14 11:06:34 +03:00
net_context.c net: tcp: Add initial support for TIMEWAIT timer 2017-12-31 11:58:27 -05:00
net_core.c net: Let loopback driver handle lo if it is enabled 2017-11-15 12:27:14 +02:00
net_if.c net: if: Join solicited-node multicast addr for each unicast addr 2017-12-11 09:09:48 -05:00
net_mgmt.c net/mgmt: Make event notifiers able to pass info to listeners 2017-10-09 10:53:17 +03:00
net_pkt.c net: ip: net_pkt: set pkt context, iface and family in net_pkt_get() 2018-01-03 19:02:31 -05:00
net_private.h net: pkt: net_pkt_tcp/udp_data: Better document caveats 2017-10-20 11:01:48 +03:00
net_shell.c net: shell: conn: Cross-ref TCP control block to owning context 2018-01-04 18:38:19 -05:00
net_shell.h net: shell: Remove net_shell_init() as it is not needed 2017-08-01 14:45:06 +03:00
net_stats.c net: stats: IPv6 multicast listener daemon stats not printed 2017-05-17 13:55:21 +03:00
net_stats.h net: stats: Add UDP checksum stats update function 2017-05-17 13:55:21 +03:00
route.c net: rpl: DAO message was discarded too early 2017-08-09 12:25:03 +03:00
route.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
rpl-mrhof.c net: Fix indentation issues 2017-08-09 16:01:28 +03:00
rpl-of0.c net: Fix indentation issues 2017-08-09 16:01:28 +03:00
rpl.c net: nbr: Print network interface pointer when adding neighbor 2017-09-26 11:31:57 +03:00
rpl.h net: Fix indentation issues 2017-08-09 16:01:28 +03:00
tcp.c net: tcp: Add initial support for TIMEWAIT timer 2017-12-31 11:58:27 -05:00
tcp.h net: tcp: Add initial support for TIMEWAIT timer 2017-12-31 11:58:27 -05:00
trickle.c net: trickle: Do clock wrap check properly 2017-08-07 21:32:03 -04:00
udp_internal.h net: udp: Remove NET_UDP_HDR() macro and direct access to net_buf 2017-07-07 15:24:00 +03:00
udp.c net: udp: Remove NET_UDP_HDR() macro and direct access to net_buf 2017-07-07 15:24:00 +03:00
utils.c net: Do not try to parse empty IP address string 2017-09-15 12:20:32 +03:00