Skip to content

Commit 5478167

Browse files
committed
netlib_ipv6route.c: fix the issue of parsing IPv6 routing entries
Update the column ruler and field labels in route_ipv6_entry comment to match the actual output: lowercase to uppercase, remove colons. Consistent with Nuttx definition Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
1 parent c829571 commit 5478167

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

netutils/netlib/netlib_ipv6route.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949

5050
/* The form of the entry from the routing table file:
5151
*
52-
* 11111111112222222222333333333344444444445555
53-
* 12345678901234567890123456789012345678901234567890123
54-
* nnnn. target: xxxx:xxxx:xxxx:xxxxxxxx:xxxx:xxxx:xxxx
55-
* netmask: xxxx:xxxx:xxxx:xxxxxxxx:xxxx:xxxx:xxxx
56-
* router: xxxx:xxxx:xxxx:xxxxxxxx:xxxx:xxxx:xxxx
52+
* 1111111111222222222233333333334444444444555
53+
* 1234567890123456789012345678901234567890123456789012
54+
* nnnn. TARGET xxxx:xxxx:xxxx:xxxxxxxx:xxxx:xxxx:xxxx
55+
* NETMASK xxxx:xxxx:xxxx:xxxxxxxx:xxxx:xxxx:xxxx
56+
* ROUTER xxxx:xxxx:xxxx:xxxxxxxx:xxxx:xxxx:xxxx
5757
*/
5858

59-
#define ADDR_OFFSET 15
59+
#define ADDR_OFFSET 14
6060

6161
/****************************************************************************
6262
* Private Functions

0 commit comments

Comments
 (0)