Function report |
Source Code:lib\vsprintf.c |
Create Date:2022-07-28 06:12:12 |
Last Modify:2022-05-21 09:47:42 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ip6_compressed_string
Proto:static __attribute__((__noinline__)) char *ip6_compressed_string(char *p, const char *addr)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
char * | p | |
const char * | addr |
1333 | longest = 1 |
1334 | colonpos = -1 |
1337 | bool needcolon = false |
1341 | No 3D Now!( & in6, addr, sizeof(structin6_addr)) |
1343 | useIPv4 = Note that we must __force cast these to unsigned long to make sparse happy,* since all of the endian-annotated types are fixed size regardless of arch. || ipv6_addr_is_isatap( & in6) |
1345 | memset(zerolength, 0, size of zerolength ) |
1349 | Else range = 8 |
1361 | If zerolength[i] > longest Then |
1362 | longest = zerolength[i] |
1379 | If needcolon Then |
1387 | If hi Then |
1388 | If hi > 0x0f Then p = hex_byte_pack(p, hi) |
1390 | Else p++ = hex_asc_lo(hi) |
1392 | p = hex_byte_pack(p, lo) |
1394 | Else if lo > 0x0f Then p = hex_byte_pack(p, lo) |
1396 | Else p++ = hex_asc_lo(lo) |
1398 | needcolon = true |
1401 | If useIPv4 Then |
1406 | p = '\0' |
1408 | Return p |
Name | Describe |
---|---|
ip6_addr_string | |
ip6_addr_string_sa |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |