HomeSort by relevance Sort by last modified time
    Searched refs:nh (Results 1 - 25 of 178) sorted by null

1 2 3 4 5 6 7 8

  /external/dtc/tests/
root_node.c 34 const struct fdt_node_header *nh; local
39 nh = fdt_offset_ptr(fdt, 0, sizeof(*nh));
41 if (! nh)
44 if (fdt32_to_cpu(nh->tag) != FDT_BEGIN_NODE)
47 if (strlen(nh->name) != 0)
49 nh->name);
subnode_offset.c 33 const struct fdt_node_header *nh; local
41 nh = fdt_offset_ptr(fdt, offset, sizeof(*nh));
42 verbose_printf("pointer %p\n", nh);
43 if (! nh)
46 tag = fdt32_to_cpu(nh->tag);
50 if (!nodename_eq(nh->name, name))
52 nh->name, name);
path_offset.c 33 const struct fdt_node_header *nh; local
41 nh = fdt_offset_ptr(fdt, offset, sizeof(*nh));
42 verbose_printf("pointer %p\n", nh);
43 if (! nh)
46 tag = fdt32_to_cpu(nh->tag);
50 if (!nodename_eq(nh->name, name))
52 nh->name, name);
  /external/libnl/lib/route/
nexthop.c 39 struct rtnl_nexthop *nh; local
41 nh = calloc(1, sizeof(*nh));
42 if (!nh)
45 nl_init_list_head(&nh->rtnh_list);
47 return nh;
52 struct rtnl_nexthop *nh; local
54 nh = rtnl_route_nh_alloc();
55 if (!nh)
58 nh->rtnh_flags = src->rtnh_flags
    [all...]
route_obj.c 82 struct rtnl_nexthop *nh, *tmp; local
91 nl_list_for_each_entry_safe(nh, tmp, &r->rt_nexthops, rtnh_list) {
92 rtnl_route_remove_nexthop(r, nh);
93 rtnl_route_nh_free(nh);
101 struct rtnl_nexthop *nh, *new; local
119 nl_list_for_each_entry(nh, &src->rt_nexthops, rtnh_list) {
120 new = rtnl_route_nh_clone(nh);
162 struct rtnl_nexthop *nh; local
164 nl_list_for_each_entry(nh, &r->rt_nexthops, rtnh_list) {
166 rtnl_route_nh_dump(nh, p)
249 struct rtnl_nexthop *nh; local
869 struct rtnl_nexthop *nh; local
880 struct rtnl_nexthop *nh; local
919 struct rtnl_nexthop *nh; local
948 struct rtnl_nexthop *nh = NULL; local
1205 struct rtnl_nexthop *nh; local
1246 struct rtnl_nexthop *nh; local
1257 struct rtnl_nexthop *nh; local
    [all...]
  /system/core/libsysutils/include/sysutils/
NetlinkEvent.h 61 bool parseIfInfoMessage(const struct nlmsghdr *nh);
62 bool parseIfAddrMessage(const struct nlmsghdr *nh);
63 bool parseUlogPacketMessage(const struct nlmsghdr *nh);
64 bool parseNfPacketMessage(struct nlmsghdr *nh);
65 bool parseRtMessage(const struct nlmsghdr *nh);
66 bool parseNdUserOptMessage(const struct nlmsghdr *nh);
  /device/google/cuttlefish_common/common/libs/net/
netlink_client.cpp 58 struct nlmsghdr *nh; local
69 for (nh = reinterpret_cast<nlmsghdr*>(buf);
70 NLMSG_OK(nh, len);
71 nh = NLMSG_NEXT(nh, len)) {
72 if (nh->nlmsg_seq != seq_no) {
77 << nh->nlmsg_seq << " != " << seq_no;
84 if (nh->nlmsg_type == NLMSG_DONE)
90 if (nh->nlmsg_type == NLMSG_ERROR) {
91 nlmsgerr* err = reinterpret_cast<nlmsgerr*>(nh + 1)
    [all...]
  /system/core/libsysutils/src/
NetlinkEvent.cpp 101 static bool checkRtNetlinkLength(const struct nlmsghdr *nh, size_t size) {
102 if (nh->nlmsg_len < NLMSG_LENGTH(size)) {
103 SLOGE("Got a short %s message\n", rtMessageName(nh->nlmsg_type));
125 bool NetlinkEvent::parseIfInfoMessage(const struct nlmsghdr *nh) {
126 struct ifinfomsg *ifi = (struct ifinfomsg *) NLMSG_DATA(nh);
127 if (!checkRtNetlinkLength(nh, sizeof(*ifi)))
134 int len = IFLA_PAYLOAD(nh);
159 bool NetlinkEvent::parseIfAddrMessage(const struct nlmsghdr *nh) {
160 struct ifaddrmsg *ifaddr = (struct ifaddrmsg *) NLMSG_DATA(nh);
165 if (!checkRtNetlinkLength(nh, sizeof(*ifaddr))
533 struct nlmsghdr *nh; local
    [all...]
  /external/tcpdump/
print-ip6.c 52 u_int nh; local
61 nh = ip6->ip6_nxt;
67 switch (nh) {
81 nh = *cp;
92 nh = *cp;
222 int nh; local
281 nh = ip6->ip6_nxt;
289 nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
290 nh != IPPROTO_DCCP && nh != IPPROTO_SCTP)
    [all...]
print-cnfp.c 160 register const struct nfhdr_v1 *nh; local
168 nh = (const struct nfhdr_v1 *)cp;
169 ND_TCHECK(*nh);
171 ver = EXTRACT_16BITS(&nh->version);
172 nrecs = EXTRACT_32BITS(&nh->count);
179 t = EXTRACT_32BITS(&nh->utc_sec);
183 EXTRACT_32BITS(&nh->msys_uptime)/1000,
184 EXTRACT_32BITS(&nh->msys_uptime)%1000,
185 EXTRACT_32BITS(&nh->utc_sec), EXTRACT_32BITS(&nh->utc_nsec)))
249 register const struct nfhdr_v5 *nh; local
345 register const struct nfhdr_v6 *nh; local
    [all...]
  /external/ltp/testcases/kernel/containers/share/
ns_ifmove.c 43 struct nlmsghdr nh; member in struct:__anon28513
104 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
105 req.nh.nlmsg_flags = NLM_F_REQUEST;
106 req.nh.nlmsg_type = RTM_NEWLINK;
111 NLMSG_ALIGN(req.nh.nlmsg_len));
114 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +
118 if (send(rtnetlink_socket, &req, req.nh.nlmsg_len, 0) == -1) {
  /external/strace/tests/
nlattr_rtmsg.c 124 struct rtnexthop nh = { local
125 .rtnh_len = sizeof(nh) - 1,
132 RTA_MULTIPATH, pattern, nh,
136 nh.rtnh_len, nh.rtnh_hops));
138 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)];
139 nh.rtnh_len = sizeof(buf);
141 memcpy(buf, &nh, sizeof(nh));
142 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla))
    [all...]
  /external/strace/tests-m32/
nlattr_rtmsg.c 124 struct rtnexthop nh = { local
125 .rtnh_len = sizeof(nh) - 1,
132 RTA_MULTIPATH, pattern, nh,
136 nh.rtnh_len, nh.rtnh_hops));
138 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)];
139 nh.rtnh_len = sizeof(buf);
141 memcpy(buf, &nh, sizeof(nh));
142 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla))
    [all...]
  /external/strace/tests-mx32/
nlattr_rtmsg.c 124 struct rtnexthop nh = { local
125 .rtnh_len = sizeof(nh) - 1,
132 RTA_MULTIPATH, pattern, nh,
136 nh.rtnh_len, nh.rtnh_hops));
138 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)];
139 nh.rtnh_len = sizeof(buf);
141 memcpy(buf, &nh, sizeof(nh));
142 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla))
    [all...]
  /frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
Conversion.h 91 * \param[in] nh The source `native_handle_t*`.
92 * \param[in] index The index of the file descriptor in \p nh to read from. This
94 * \return The `index`-th file descriptor in \p nh. If \p nh does not have
99 int native_handle_read_fd(native_handle_t const* nh, int index = 0);
154 * \param[in] nh The source `native_handle_t*`.
155 * \return The `hidl_handle` that points to \p nh.
158 hidl_handle inHidlHandle(native_handle_t const* nh);
319 * \param[out] nh The underlying native handle.
326 * If the return value is `NO_ERROR`, \p nh will point to a newly create
    [all...]
WGraphicBufferProducer.h 102 native_handle_t* nh = nullptr; variable
103 if ((fence == nullptr) || !::android::conversion::wrapAs(&tFence, &nh, *fence)) {
120 native_handle_delete(nh); variable
128 native_handle_delete(nh); variable
157 native_handle_t* nh = nullptr; variable
158 if ((outFence != nullptr) && !::android::conversion::wrapAs(&tFence, &nh, *outFence)) {
166 native_handle_delete(nh); variable
214 for (auto& nh : nhA) {
215 native_handle_delete(nh); variable
260 for (auto& nh : nhA)
261 native_handle_delete(nh); variable
328 native_handle_t* nh = nullptr; variable
341 native_handle_delete(nh); variable
361 native_handle_delete(nh); variable
    [all...]
  /external/libpcap/
pcap-nit.c 108 register struct nit_hdr *nh; local
153 nh = (struct nit_hdr *)bp;
154 cp = bp + sizeof(*nh);
156 switch (nh->nh_state) {
164 pn->stat.ps_drop = nh->nh_dropped;
172 "bad nit state %d", nh->nh_state);
176 bp += ((sizeof(struct nit_hdr) + nh->nh_datalen +
179 caplen = nh->nh_wirelen;
182 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
184 h.ts = nh->nh_timestamp
    [all...]
  /frameworks/native/libs/gui/bufferqueue/1.0/
H2BGraphicBufferProducer.cpp 61 native_handle_t* nh = native_handle_create(1, 0); local
62 if (nh == nullptr) {
65 nh->data[0] = fd;
66 return nh;
72 * \param[in] nh The source `native_handle_t*`.
73 * \param[in] index The index of the file descriptor in \p nh to read from. This
75 * \return The `index`-th file descriptor in \p nh. If \p nh does not have
80 inline int native_handle_read_fd(native_handle_t const* nh, int index = 0) {
81 return ((nh == nullptr) || (nh->numFds == 0) |
356 native_handle_t* nh = native_handle_create_from_fd(fd); local
1075 native_handle_t* nh; local
1099 native_handle_t* nh = nullptr; local
    [all...]
  /frameworks/av/media/libstagefright/bqhelper/
Conversion.cpp 43 native_handle_t* nh = native_handle_create(1, 0); local
44 if (nh == nullptr) {
47 nh->data[0] = fd;
48 return nh;
54 * \param[in] nh The source `native_handle_t*`.
55 * \param[in] index The index of the file descriptor in \p nh to read from. This
57 * \return The `index`-th file descriptor in \p nh. If \p nh does not have
62 int native_handle_read_fd(native_handle_t const* nh, int index) {
63 return ((nh == nullptr) || (nh->numFds == 0) |
499 native_handle_t* nh = native_handle_create_from_fd(fd); local
1423 native_handle_t* nh; local
    [all...]
  /external/strace/
rtnl_route.c 245 struct rtnexthop nh; local
247 if (len < sizeof(nh))
249 else if (!umove_or_printaddr(tcp, addr, &nh)) {
251 PRINT_FIELD_U("{", nh, rtnh_len);
252 PRINT_FIELD_FLAGS(", ", nh, rtnh_flags,
254 PRINT_FIELD_U(", ", nh, rtnh_hops);
255 PRINT_FIELD_IFINDEX(", ", nh, rtnh_ifindex);
259 len < nh.rtnh_len ? len : nh.rtnh_len;
260 const size_t offset = RTNH_ALIGN(sizeof(nh));
    [all...]
  /external/libcxx/src/
new.cpp 78 std::new_handler nh = std::get_new_handler(); variable
79 if (nh)
80 nh();
198 std::new_handler nh = std::get_new_handler(); variable
199 if (nh)
200 nh();
  /external/libcxxabi/src/
stdlib_new_delete.cpp 37 std::new_handler nh = std::get_new_handler(); variable
38 if (nh)
39 nh();
157 std::new_handler nh = std::get_new_handler(); variable
158 if (nh)
159 nh();
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/src/
new.cpp 74 std::new_handler nh = std::get_new_handler(); variable
75 if (nh)
76 nh();
194 std::new_handler nh = std::get_new_handler(); variable
195 if (nh)
196 nh();
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++abi/src/
stdlib_new_delete.cpp 37 std::new_handler nh = std::get_new_handler(); variable
38 if (nh)
39 nh();
157 std::new_handler nh = std::get_new_handler(); variable
158 if (nh)
159 nh();
  /external/iproute2/ip/
ipmroute.c 138 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); local
144 if (len < sizeof(*nh))
146 if (nh->rtnh_len > len)
153 fprintf(fp, "%s", ll_index_to_name(nh->rtnh_ifindex));
154 if (nh->rtnh_hops > 1)
155 fprintf(fp, "(ttl %d) ", nh->rtnh_hops);
158 len -= NLMSG_ALIGN(nh->rtnh_len);
159 nh = RTNH_NEXT(nh);

Completed in 287 milliseconds

1 2 3 4 5 6 7 8