Home
last modified time | relevance | path

Searched refs:bytelen (Results 1 – 25 of 26) sorted by relevance

12

/external/iproute2/ip/
Dtcp_metrics.c121 daddr.bytelen = 4; in process_msg()
131 daddr.bytelen = 16; in process_msg()
144 saddr.bytelen = 4; in process_msg()
153 saddr.bytelen = 16; in process_msg()
174 daddr.bytelen); in process_msg()
177 saddr.bytelen); in process_msg()
343 if (f.saddr.bytelen && f.saddr.bytelen * 8 == f.saddr.bitlen) { in tcpm_do_cmd()
368 if (f.daddr.bytelen && f.daddr.bytelen * 8 == f.daddr.bitlen) { in tcpm_do_cmd()
420 f.daddr.bytelen); in tcpm_do_cmd()
423 f.saddr.bytelen); in tcpm_do_cmd()
Dipmaddr.c113 ma->addr.bytelen = len; in read_dev_mcast()
139 m.addr.bytelen = 4; in read_igmp()
189 ma->addr.bytelen = len; in read_igmp6()
204 list->addr.bytelen, 0, in print_maddr()
Diproute.c746 rta_addattr_l(rta, 4096, RTA_GATEWAY, &addr.data, addr.bytelen); in parse_one_nh()
747 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh()
749 rta_addattr_l(rta, 4096, RTA_VIA, &addr.family, addr.bytelen+2); in parse_one_nh()
750 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen+2; in parse_one_nh()
863 addattr_l(&req.n, sizeof(req), RTA_PREFSRC, &addr.data, addr.bytelen); in iproute_modify()
873 addattr_l(&req.n, sizeof(req), RTA_NEWDST, &addr.data, addr.bytelen); in iproute_modify()
888 addattr_l(&req.n, sizeof(req), RTA_GATEWAY, &addr.data, addr.bytelen); in iproute_modify()
890 addattr_l(&req.n, sizeof(req), RTA_VIA, &addr.family, addr.bytelen+2); in iproute_modify()
897 if (addr.bytelen) in iproute_modify()
898 addattr_l(&req.n, sizeof(req), RTA_SRC, &addr.data, addr.bytelen); in iproute_modify()
[all …]
Dipl2tp.c111 addattr_l(&req.n, 1024, local_attr, &p->local_ip.data, p->local_ip.bytelen); in create_tunnel()
115 addattr_l(&req.n, 1024, peer_attr, &p->peer_ip.data, p->peer_ip.bytelen); in create_tunnel()
301 p->local_ip.bytelen = 4; in get_response()
307 p->peer_ip.bytelen = 4; in get_response()
313 p->local_ip.bytelen = 16); in get_response()
319 p->peer_ip.bytelen = 16); in get_response()
Diproute_lwtunnel.c189 addr.bytelen); in parse_encap_mpls()
218 rta_addattr_l(rta, len, LWTUNNEL_IP_DST, &addr.data, addr.bytelen); in parse_encap_ip()
291 rta_addattr_l(rta, len, LWTUNNEL_IP6_DST, &addr.data, addr.bytelen); in parse_encap_ip6()
Dlink_vti6.c164 memcpy(&daddr, addr.data, addr.bytelen); in vti6_parse_opt()
174 memcpy(&saddr, addr.data, addr.bytelen); in vti6_parse_opt()
Dipaddress.c1743 if (lcl->bytelen >= 1 && *(__u8*)&lcl->data == 127) in default_scope()
1798 peer_len = peer.bytelen; in ipaddr_modify()
1801 addattr_l(&req.n, sizeof(req), IFA_ADDRESS, &peer.data, peer.bytelen); in ipaddr_modify()
1817 addattr_l(&req.n, sizeof(req), IFA_BROADCAST, &addr.data, addr.bytelen); in ipaddr_modify()
1818 brd_len = addr.bytelen; in ipaddr_modify()
1828 addattr_l(&req.n, sizeof(req), IFA_ANYCAST, &addr.data, addr.bytelen); in ipaddr_modify()
1829 any_len = addr.bytelen; in ipaddr_modify()
1880 addattr_l(&req.n, sizeof(req), IFA_LOCAL, &lcl.data, lcl.bytelen); in ipaddr_modify()
1881 local_len = lcl.bytelen; in ipaddr_modify()
1908 addattr_l(&req.n, sizeof(req), IFA_ADDRESS, &lcl.data, lcl.bytelen); in ipaddr_modify()
[all …]
Dlink_ip6tnl.c166 memcpy(&raddr, addr.data, addr.bytelen); in ip6tunnel_parse_opt()
173 memcpy(&laddr, addr.data, addr.bytelen); in ip6tunnel_parse_opt()
Diptoken.c161 &addr.data, addr.bytelen); in iptoken_set()
Dipaddrlabel.c179 addattr_l(&req.n, sizeof(req), IFAL_ADDRESS, &prefix.data, prefix.bytelen); in ipaddrlabel_modify()
Diprule.c361 addattr_l(&req.n, sizeof(req), FRA_SRC, &dst.data, dst.bytelen); in iprule_modify()
367 addattr_l(&req.n, sizeof(req), FRA_DST, &dst.data, dst.bytelen); in iprule_modify()
Dipneigh.c164 if (addattr_l(&req.n, sizeof(req), NDA_DST, &dst.data, dst.bytelen) < 0) in ipneigh_modify()
/external/libvterm/src/
Dencoding.c30 const char bytes[], size_t *pos, size_t bytelen) in decode_utf8() argument
38 for(; *pos < bytelen && *cpi < cplen; (*pos)++) { in decode_utf8()
156 const char bytes[], size_t *pos, size_t bytelen) in decode_usascii() argument
160 for(; *pos < bytelen && *cpi < cplen; (*pos)++) { in decode_usascii()
181 const char bytes[], size_t *pos, size_t bytelen) in decode_table() argument
186 for(; *pos < bytelen && *cpi < cplen; (*pos)++) { in decode_table()
/external/tcpdump/
Dprint-ospf6.c468 register int bytelen; in ospf6_print_lsa() local
575 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa()
576 if (bytelen < 0) in ospf6_print_lsa()
578 lsa_length -= bytelen; in ospf6_print_lsa()
579 tptr += bytelen; in ospf6_print_lsa()
597 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa()
598 if (bytelen < 0) in ospf6_print_lsa()
600 lsa_length -= bytelen; in ospf6_print_lsa()
601 tptr += bytelen; in ospf6_print_lsa()
659 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa()
[all …]
Dprint-domain.c66 int bitlen, bytelen; in ns_nskip() local
74 bytelen = (bitlen + 7) / 8; in ns_nskip()
75 cp += bytelen; in ns_nskip()
/external/syslinux/core/
Dhello.c31 void hexdump(void *buf, int bytelen, const char *str) in hexdump() argument
39 for (i = 0; i < (bytelen / 4); i++){ in hexdump()
/external/iproute2/lib/
Dutils.c432 addr->bytelen = (family == AF_INET6 ? 16 : 4); in get_addr_1()
444 addr->bytelen = len; in get_addr_1()
455 addr->bytelen = 16; in get_addr_1()
467 addr->bytelen = 2; in get_addr_1()
478 addr->bytelen = 4; in get_addr_1()
483 addr->bytelen = (i + 1)*4; in get_addr_1()
497 addr->bytelen = 4; in get_addr_1()
539 dst->bytelen = 0; in get_prefix_1()
801 n->addr.bytelen == len && in resolve_address()
808 n->addr.bytelen = len; in resolve_address()
/external/python/cpython2/Objects/
Dmemoryobject.c629 Py_ssize_t start, len, bytelen; in memory_ass_sub() local
692 bytelen = len * view->itemsize; in memory_ass_sub()
693 if (bytelen != srcview.len) { in memory_ass_sub()
701 if (destbuf + bytelen < srcbuf || srcbuf + bytelen < destbuf) in memory_ass_sub()
703 memcpy(destbuf, srcbuf, bytelen); in memory_ass_sub()
705 memmove(destbuf, srcbuf, bytelen); in memory_ass_sub()
/external/iproute2/tc/
Df_flower.c115 addr.data, addr.bytelen); in flower_parse_ip_addr()
117 memset(addr.data, 0xff, addr.bytelen); in flower_parse_ip_addr()
119 for (i = 0; i < addr.bytelen / 4; i++) { in flower_parse_ip_addr()
132 addr.data, addr.bytelen); in flower_parse_ip_addr()
Df_rsvp.c202 addattr_l(n, 4096, TCA_RSVP_DST, &addr.data, addr.bytelen); in rsvp_parse_opt()
214 addattr_l(n, 4096, TCA_RSVP_SRC, &addr.data, addr.bytelen); in rsvp_parse_opt()
/external/dhcpcd-6.8.2/
Dipv6.c446 int bytelen, bitlen; in ipv6_makeprefix() local
453 bytelen = len / NBBY; in ipv6_makeprefix()
455 memcpy(&prefix->s6_addr, &addr->s6_addr, (size_t)bytelen); in ipv6_makeprefix()
457 prefix->s6_addr[bytelen] = in ipv6_makeprefix()
458 (uint8_t)(prefix->s6_addr[bytelen] >> (NBBY - bitlen)); in ipv6_makeprefix()
459 memset((char *)prefix->s6_addr + bytelen, 0, in ipv6_makeprefix()
460 sizeof(prefix->s6_addr) - (size_t)bytelen); in ipv6_makeprefix()
/external/iproute2/misc/
Dss.c1356 b->addr.bytelen = len; in remember_he()
1643 s->local.bytelen = s->remote.bytelen = 4; in proc_parse_inet_addr()
1658 s->local.bytelen = s->remote.bytelen = 16; in proc_parse_inet_addr()
2070 s.local.bytelen = s.remote.bytelen = 4; in inet_show_sock()
2072 s.local.bytelen = s.remote.bytelen = 16; in inet_show_sock()
2075 memcpy(s.local.data, r->id.idiag_src, s.local.bytelen); in inet_show_sock()
2076 memcpy(s.remote.data, r->id.idiag_dst, s.local.bytelen); in inet_show_sock()
/external/iproute2/include/
Dutils.h60 __u16 bytelen; member
/external/iproute2/bridge/
Dfdb.c348 addattr_l(&req.n, sizeof(req), NDA_DST, &dst.data, dst.bytelen); in fdb_modify()
/external/toybox/toys/pending/
Dip.c1069 int family, bytelen, bitlen; in ipaddrupdate() member
1163 local.bytelen = len; in ipaddrupdate()
1167 IFA_LOCAL, &local.data, local.bytelen); in ipaddrupdate()
1179 IFA_ADDRESS, &local.data, local.bytelen); in ipaddrupdate()
1196 IFA_BROADCAST, &local.data, local.bytelen); in ipaddrupdate()
1197 length_brd = local.bytelen; in ipaddrupdate()
1203 && (local.bytelen >= 1 && *(uint8_t*)&local.data == 127)) in ipaddrupdate()

12