Home
last modified time | relevance | path

Searched refs:nh (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/libnl/lib/route/
Dnexthop.c39 struct rtnl_nexthop *nh; in rtnl_route_nh_alloc() local
41 nh = calloc(1, sizeof(*nh)); in rtnl_route_nh_alloc()
42 if (!nh) in rtnl_route_nh_alloc()
45 nl_init_list_head(&nh->rtnh_list); in rtnl_route_nh_alloc()
47 return nh; in rtnl_route_nh_alloc()
52 struct rtnl_nexthop *nh; in rtnl_route_nh_clone() local
54 nh = rtnl_route_nh_alloc(); in rtnl_route_nh_clone()
55 if (!nh) in rtnl_route_nh_clone()
58 nh->rtnh_flags = src->rtnh_flags; in rtnl_route_nh_clone()
59 nh->rtnh_flag_mask = src->rtnh_flag_mask; in rtnl_route_nh_clone()
[all …]
Droute_obj.c82 struct rtnl_nexthop *nh, *tmp; in route_free_data() local
91 nl_list_for_each_entry_safe(nh, tmp, &r->rt_nexthops, rtnh_list) { in route_free_data()
92 rtnl_route_remove_nexthop(r, nh); in route_free_data()
93 rtnl_route_nh_free(nh); in route_free_data()
101 struct rtnl_nexthop *nh, *new; in route_clone() local
119 nl_list_for_each_entry(nh, &src->rt_nexthops, rtnh_list) { in route_clone()
120 new = rtnl_route_nh_clone(nh); in route_clone()
162 struct rtnl_nexthop *nh; in route_dump_line() local
164 nl_list_for_each_entry(nh, &r->rt_nexthops, rtnh_list) { in route_dump_line()
166 rtnl_route_nh_dump(nh, p); in route_dump_line()
[all …]
/external/ltp/lib/
Dtst_crypto.c51 struct nlmsghdr *nh; in tst_crypto_recv_ack() local
55 for (nh = (struct nlmsghdr *) buf; in tst_crypto_recv_ack()
56 NLMSG_OK(nh, len); in tst_crypto_recv_ack()
57 nh = NLMSG_NEXT(nh, len)) { in tst_crypto_recv_ack()
58 if (nh->nlmsg_seq != ses->seq_num) { in tst_crypto_recv_ack()
61 nh->nlmsg_type, nh->nlmsg_seq, ses->seq_num); in tst_crypto_recv_ack()
67 if (nh->nlmsg_type == NLMSG_ERROR) in tst_crypto_recv_ack()
68 return ((struct nlmsgerr *)NLMSG_DATA(nh))->error; in tst_crypto_recv_ack()
71 nh->nlmsg_type, nh->nlmsg_seq); in tst_crypto_recv_ack()
82 struct nlmsghdr nh = { in tst_crypto_add_alg() local
[all …]
/external/tcpdump/
Dprint-cnfp.c160 register const struct nfhdr_v1 *nh; in cnfp_v1_print() local
168 nh = (const struct nfhdr_v1 *)cp; in cnfp_v1_print()
169 ND_TCHECK(*nh); in cnfp_v1_print()
171 ver = EXTRACT_16BITS(&nh->version); in cnfp_v1_print()
172 nrecs = EXTRACT_32BITS(&nh->count); in cnfp_v1_print()
179 t = EXTRACT_32BITS(&nh->utc_sec); in cnfp_v1_print()
183 EXTRACT_32BITS(&nh->msys_uptime)/1000, in cnfp_v1_print()
184 EXTRACT_32BITS(&nh->msys_uptime)%1000, in cnfp_v1_print()
185 EXTRACT_32BITS(&nh->utc_sec), EXTRACT_32BITS(&nh->utc_nsec))); in cnfp_v1_print()
187 nr = (const struct nfrec_v1 *)&nh[1]; in cnfp_v1_print()
[all …]
Dprint-ip6.c52 u_int nh; in ip6_finddst() local
61 nh = ip6->ip6_nxt; in ip6_finddst()
67 switch (nh) { in ip6_finddst()
81 nh = *cp; in ip6_finddst()
92 nh = *cp; in ip6_finddst()
222 int nh; in ip6_print() local
281 nh = ip6->ip6_nxt; in ip6_print()
289 nh != IPPROTO_TCP && nh != IPPROTO_UDP && in ip6_print()
290 nh != IPPROTO_DCCP && nh != IPPROTO_SCTP) { in ip6_print()
295 switch (nh) { in ip6_print()
[all …]
Dprint-ip.c334 u_char nh; member
345 switch (ipds->nh) { in ip_print_demux()
352 ipds->nh = *ipds->cp; in ip_print_demux()
370 ipds->nh = enh & 0xff; in ip_print_demux()
502 if (ndo->ndo_nflag==0 && (p_name = netdb_protoname(ipds->nh)) != NULL) in ip_print_demux()
505 ND_PRINT((ndo, " ip-proto-%d", ipds->nh)); in ip_print_demux()
514 u_int length, u_int nh, in ip_print_inner() argument
523 ipd.nh = nh; in ip_print_inner()
665 ipds->nh = ipds->ip->ip_p; in ip_print()
667 if (ipds->nh != IPPROTO_TCP && ipds->nh != IPPROTO_UDP && in ip_print()
[all …]
/external/ltp/testcases/kernel/crypto/
Dcrypto_user01.c116 static void validate_one_alg(const struct nlmsghdr *nh) in validate_one_alg() argument
118 const struct crypto_user_alg *alg = NLMSG_DATA(nh); in validate_one_alg()
120 size_t remaining = NLMSG_PAYLOAD(nh, sizeof(*alg)); in validate_one_alg()
136 const struct nlmsghdr *nh; in validate_alg_list() local
138 for (nh = buf; NLMSG_OK(nh, remaining); in validate_alg_list()
139 nh = NLMSG_NEXT(nh, remaining)) { in validate_alg_list()
140 if (nh->nlmsg_seq != ses.seq_num) { in validate_alg_list()
143 nh->nlmsg_type, nh->nlmsg_seq, ses.seq_num); in validate_alg_list()
145 if (nh->nlmsg_type == NLMSG_DONE) in validate_alg_list()
147 if (nh->nlmsg_type != CRYPTO_MSG_GETALG) { in validate_alg_list()
[all …]
/external/dtc/tests/
Droot_node.c34 const struct fdt_node_header *nh; in main() local
39 nh = fdt_offset_ptr(fdt, 0, sizeof(*nh)); in main()
41 if (! nh) in main()
44 if (fdt32_to_cpu(nh->tag) != FDT_BEGIN_NODE) in main()
47 if (strlen(nh->name) != 0) in main()
49 nh->name); in main()
Dsubnode_offset.c33 const struct fdt_node_header *nh; in check_subnode() local
41 nh = fdt_offset_ptr(fdt, offset, sizeof(*nh)); in check_subnode()
42 verbose_printf("pointer %p\n", nh); in check_subnode()
43 if (! nh) in check_subnode()
46 tag = fdt32_to_cpu(nh->tag); in check_subnode()
50 if (!nodename_eq(nh->name, name)) in check_subnode()
52 nh->name, name); in check_subnode()
Dpath_offset.c33 const struct fdt_node_header *nh; in check_subnode() local
41 nh = fdt_offset_ptr(fdt, offset, sizeof(*nh)); in check_subnode()
42 verbose_printf("pointer %p\n", nh); in check_subnode()
43 if (! nh) in check_subnode()
46 tag = fdt32_to_cpu(nh->tag); in check_subnode()
50 if (!nodename_eq(nh->name, name)) in check_subnode()
52 nh->name, name); in check_subnode()
/external/libexif/po/
Dvi.po30 msgstr "Định dạng không hợp lệ \"%s\", mong chờ \"%s\"."
37 msgstr "Số thành phần không hợp lệ (%i, mong chờ %i)."
44 msgstr "Số thành phần không hợp lệ (%i, mong chờ %i hay %i)."
54 msgstr "Vĩ lệnh"
79 msgstr "Chính xác"
162 msgstr "Đèn nháy ngoài"
270 msgstr "Màn hình rộng"
351 msgstr "Đèn nháy bị tắt"
360 msgstr "Siêu vĩ lệnh"
368 msgstr "Trong nhà"
[all …]
/external/strace/tests-mx32/
Dnlattr_rtmsg.c125 struct rtnexthop nh = { in main() local
126 .rtnh_len = sizeof(nh) - 1, in main()
133 RTA_MULTIPATH, pattern, nh, in main()
137 nh.rtnh_len, nh.rtnh_hops)); in main()
139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
140 nh.rtnh_len = sizeof(buf); in main()
142 memcpy(buf, &nh, sizeof(nh)); in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
/external/strace/tests-m32/
Dnlattr_rtmsg.c125 struct rtnexthop nh = { in main() local
126 .rtnh_len = sizeof(nh) - 1, in main()
133 RTA_MULTIPATH, pattern, nh, in main()
137 nh.rtnh_len, nh.rtnh_hops)); in main()
139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
140 nh.rtnh_len = sizeof(buf); in main()
142 memcpy(buf, &nh, sizeof(nh)); in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
/external/strace/tests/
Dnlattr_rtmsg.c125 struct rtnexthop nh = { in main() local
126 .rtnh_len = sizeof(nh) - 1, in main()
133 RTA_MULTIPATH, pattern, nh, in main()
137 nh.rtnh_len, nh.rtnh_hops)); in main()
139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
140 nh.rtnh_len = sizeof(buf); in main()
142 memcpy(buf, &nh, sizeof(nh)); in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
/external/ltp/testcases/kernel/containers/share/
Dns_ifmove.c43 struct nlmsghdr nh; member
104 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in main()
105 req.nh.nlmsg_flags = NLM_F_REQUEST; in main()
106 req.nh.nlmsg_type = RTM_NEWLINK; in main()
111 NLMSG_ALIGN(req.nh.nlmsg_len)); in main()
114 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + in main()
118 if (send(rtnetlink_socket, &req, req.nh.nlmsg_len, 0) == -1) { in main()
/external/scapy/scapy/layers/
Dipsec.py104 bind_layers(IPv6, AH, nh=socket.IPPROTO_AH)
105 bind_layers(AH, IP, nh=socket.IPPROTO_IP)
106 bind_layers(AH, IPv6, nh=socket.IPPROTO_IPV6)
132 bind_layers(IPv6, ESP, nh=socket.IPPROTO_ESP)
157 return raw(self.data) + self.padding + struct.pack("BB", self.padlen, self.nh)
394 nh = orb(data[-1])
406 nh=nh,
637 nh = None
640 nh = header.proto
646 return header, nh, next_hdr
[all …]
/external/ltp/include/
Dtst_netlink.h37 int fd, const struct nlmsghdr *nh, in safe_netlink_send() argument
42 {(struct nlmsghdr *)nh, sizeof(*nh)}, in safe_netlink_send()
43 {(void *)payload, nh->nlmsg_len - sizeof(*nh)} in safe_netlink_send()
52 return safe_sendmsg(file, lineno, nh->nlmsg_len, fd, &msg, 0); in safe_netlink_send()
/external/libpcap/
Dpcap-nit.c108 register struct nit_hdr *nh; in pcap_read_nit() local
153 nh = (struct nit_hdr *)bp; in pcap_read_nit()
154 cp = bp + sizeof(*nh); in pcap_read_nit()
156 switch (nh->nh_state) { in pcap_read_nit()
164 pn->stat.ps_drop = nh->nh_dropped; in pcap_read_nit()
172 "bad nit state %d", nh->nh_state); in pcap_read_nit()
176 bp += ((sizeof(struct nit_hdr) + nh->nh_datalen + in pcap_read_nit()
179 caplen = nh->nh_wirelen; in pcap_read_nit()
182 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) { in pcap_read_nit()
184 h.ts = nh->nh_timestamp; in pcap_read_nit()
[all …]
/external/libaom/libaom/av1/encoder/
Ddwt.c76 int lv, i, j, nh, nw, hh = height, hw = width; in dyadic_analyze_53_uint8_input() local
95 nh = hh; in dyadic_analyze_53_uint8_input()
99 if ((nh < 2) || (nw < 2)) return; in dyadic_analyze_53_uint8_input()
100 for (i = 0; i < nh; i++) { in dyadic_analyze_53_uint8_input()
105 for (i = 0; i < nh; i++) buffer[i + nh] = c[i * pitch_c + j]; in dyadic_analyze_53_uint8_input()
106 analysis_53_col(nh, buffer + nh, buffer, buffer + hh); in dyadic_analyze_53_uint8_input()
107 for (i = 0; i < nh; i++) c[i * pitch_c + j] = buffer[i]; in dyadic_analyze_53_uint8_input()
/external/strace/
Drtnl_route.c263 struct rtnexthop nh; in decode_rta_multipath() local
265 if (len < sizeof(nh)) in decode_rta_multipath()
267 else if (!umove_or_printaddr(tcp, addr, &nh)) { in decode_rta_multipath()
269 PRINT_FIELD_U("{", nh, rtnh_len); in decode_rta_multipath()
270 PRINT_FIELD_FLAGS(", ", nh, rtnh_flags, in decode_rta_multipath()
272 PRINT_FIELD_U(", ", nh, rtnh_hops); in decode_rta_multipath()
273 PRINT_FIELD_IFINDEX(", ", nh, rtnh_ifindex); in decode_rta_multipath()
276 const unsigned short rtnh_len = MIN(len, nh.rtnh_len); in decode_rta_multipath()
277 const size_t offset = RTNH_ALIGN(sizeof(nh)); in decode_rta_multipath()
/external/iproute2/ip/
Dipmroute.c138 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); in print_mroute() local
144 if (len < sizeof(*nh)) in print_mroute()
146 if (nh->rtnh_len > len) in print_mroute()
153 fprintf(fp, "%s", ll_index_to_name(nh->rtnh_ifindex)); in print_mroute()
154 if (nh->rtnh_hops > 1) in print_mroute()
155 fprintf(fp, "(ttl %d) ", nh->rtnh_hops); in print_mroute()
158 len -= NLMSG_ALIGN(nh->rtnh_len); in print_mroute()
159 nh = RTNH_NEXT(nh); in print_mroute()
/external/e2fsprogs/po/
Dvi.po2 # Bản dịch tiếng Việt dành cho e2fsprogs.
123 msgstr "trong khi cập nhật nút thông tin khối hỏng"
129 "Cảnh báo: tìm thấy khối %u không hợp lệ trong nút thông tin khối hỏng nên bị "
171 msgstr "ánh xạ thư mục rỗng"
195 msgstr "ánh xạ nút tái thiết mở rộng"
245 msgstr "đang đọc siêu khối nhật ký\n"
250 msgstr "%s: không tìm thấy siêu khối nhật ký hợp lệ\n"
255 msgstr "%s: nhật ký quá ngắn\n"
260 msgstr "%s: đang phục hồi nhật ký\n"
265 msgstr "%s: sẽ không phục hồi nhật ký trong khi ở chế độ chỉ-đọc\n"
[all …]
/external/iputils/ninfod/
Dni_ifaddrs.c165 struct nlmsghdr *nh; in nl_getmsg() local
187 nh = (struct nlmsghdr *) buff; in nl_getmsg()
188 …for (nh = (struct nlmsghdr *) buff; NLMSG_OK(nh, read_size); nh = (struct nlmsghdr *) NLMSG_NEXT(n… in nl_getmsg()
189 if (nh->nlmsg_pid != pid || nh->nlmsg_seq != seq) in nl_getmsg()
191 if (nh->nlmsg_type == NLMSG_DONE) { in nl_getmsg()
195 if (nh->nlmsg_type == NLMSG_ERROR) { in nl_getmsg()
196 struct nlmsgerr *nlerr = (struct nlmsgerr *) NLMSG_DATA(nh); in nl_getmsg()
198 if (nh->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) in nl_getmsg()
/external/libcxxabi/src/
Dstdlib_new_delete.cpp36 std::new_handler nh = std::get_new_handler(); in operator new() local
37 if (nh) in operator new()
38 nh(); in operator new()
156 std::new_handler nh = std::get_new_handler(); in operator new() local
157 if (nh) in operator new()
158 nh(); in operator new()
/external/libcxx/src/
Dnew.cpp76 std::new_handler nh = std::get_new_handler(); in operator new() local
77 if (nh) in operator new()
78 nh(); in operator new()
195 std::new_handler nh = std::get_new_handler(); in operator new() local
196 if (nh) in operator new()
197 nh(); in operator new()

12345678910>>...13