Searched refs:nh (Results 1 - 25 of 87) sorted by relevance

1234

/external/libnl/lib/route/
H A Dnexthop.c39 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
75 rtnl_route_nh_free(struct rtnl_nexthop *nh) argument
107 nh_dump_line(struct rtnl_nexthop *nh, struct nl_dump_params *dp) argument
133 nh_dump_details(struct rtnl_nexthop *nh, struct nl_dump_params *dp) argument
169 nh_dump_env(struct rtnl_nexthop *nh, struct nl_dump_params *dp) argument
205 rtnl_route_nh_dump(struct rtnl_nexthop *nh, struct nl_dump_params *dp) argument
232 rtnl_route_nh_set_weight(struct rtnl_nexthop *nh, uint8_t weight) argument
238 rtnl_route_nh_get_weight(struct rtnl_nexthop *nh) argument
243 rtnl_route_nh_set_ifindex(struct rtnl_nexthop *nh, int ifindex) argument
249 rtnl_route_nh_get_ifindex(struct rtnl_nexthop *nh) argument
254 rtnl_route_nh_set_gateway(struct rtnl_nexthop *nh, struct nl_addr *addr) argument
270 rtnl_route_nh_get_gateway(struct rtnl_nexthop *nh) argument
275 rtnl_route_nh_set_flags(struct rtnl_nexthop *nh, unsigned int flags) argument
282 rtnl_route_nh_unset_flags(struct rtnl_nexthop *nh, unsigned int flags) argument
289 rtnl_route_nh_get_flags(struct rtnl_nexthop *nh) argument
294 rtnl_route_nh_set_realms(struct rtnl_nexthop *nh, uint32_t realms) argument
300 rtnl_route_nh_get_realms(struct rtnl_nexthop *nh) argument
[all...]
H A Droute_obj.c80 struct rtnl_nexthop *nh, *tmp; local
89 nl_list_for_each_entry_safe(nh, tmp, &r->rt_nexthops, rtnh_list) {
90 rtnl_route_remove_nexthop(r, nh);
91 rtnl_route_nh_free(nh);
99 struct rtnl_nexthop *nh, *new; local
114 nl_list_for_each_entry(nh, &src->rt_nexthops, rtnh_list) {
115 new = rtnl_route_nh_clone(nh);
160 struct rtnl_nexthop *nh; local
162 nl_list_for_each_entry(nh, &r->rt_nexthops, rtnh_list) {
164 rtnl_route_nh_dump(nh,
247 struct rtnl_nexthop *nh; local
344 struct rtnl_nexthop *nh; local
746 rtnl_route_add_nexthop(struct rtnl_route *route, struct rtnl_nexthop *nh) argument
753 rtnl_route_remove_nexthop(struct rtnl_route *route, struct rtnl_nexthop *nh) argument
773 struct rtnl_nexthop *nh; local
784 struct rtnl_nexthop *nh; local
823 struct rtnl_nexthop *nh; local
852 struct rtnl_nexthop *nh = NULL; local
1141 struct rtnl_nexthop *nh; local
[all...]
/external/tcpdump/
H A Dprint-cnfp.c84 register const struct nfhdr *nh; local
92 nh = (const struct nfhdr *)cp;
94 if ((const u_char *)(nh + 1) > snapend)
97 nrecs = EXTRACT_32BITS(&nh->ver_cnt) & 0xffff;
98 ver = (EXTRACT_32BITS(&nh->ver_cnt) & 0xffff0000) >> 16;
105 t = EXTRACT_32BITS(&nh->utc_sec);
109 EXTRACT_32BITS(&nh->msys_uptime)/1000,
110 EXTRACT_32BITS(&nh->msys_uptime)%1000,
111 EXTRACT_32BITS(&nh->utc_sec), EXTRACT_32BITS(&nh
[all...]
H A Dprint-ip6.c90 int nh; local
144 nh = ip6->ip6_nxt;
150 nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
151 nh != IPPROTO_DCCP && nh != IPPROTO_SCTP) {
156 switch (nh) {
159 nh = *cp;
163 nh = *cp;
169 nh
[all...]
H A Dprint-ip.c317 u_char nh; member in struct:ip_print_demux_state
329 switch (ipds->nh) {
332 ipds->nh = *ipds->cp;
350 ipds->nh = enh & 0xff;
362 ipds->nh = enh & 0xff;
485 if (ndo->ndo_nflag==0 && (proto = getprotobynumber(ipds->nh)) != NULL)
488 ND_PRINT((ndo, " ip-proto-%d", ipds->nh));
497 u_int length, u_int nh,
506 ipd.nh = nh;
495 ip_print_inner(netdissect_options *ndo, const u_char *bp, u_int length, u_int nh, const u_char *bp2) argument
[all...]
H A Dprint-babel.c419 printf(" nh");
422 u_char nh[16]; local
425 rc = network_address(message[2], message + 4, len - 2, nh);
427 printf(" %s", format_address(nh));
H A Dprint-icmp6.c603 u_int nh; local
612 nh = ip6->ip6_nxt;
618 switch(nh) {
623 *prot = nh;
636 nh = hbh->ip6h_nxt;
647 nh = fragh->ip6f_nxt;
655 nh = ah->ah_nxt;
660 *prot = nh; /* meaningless, but set here anyway */
/external/chromium_org/tools/memory_inspector/memory_inspector/data/
H A Dserialization.py97 nh = native_heap.NativeHeap()
100 frame = nh.GetStackFrame(frame_dict['address'])
107 stack_trace.Add(nh.GetStackFrame(absolute_addr))
108 nh.Add(native_heap.Allocation(start=alloc_dict['start'],
113 return nh
H A Dfile_storage_unittest.py81 nh = native_heap.NativeHeap()
84 frame = nh.GetStackFrame(i * 10 + 1)
87 frame = nh.GetStackFrame(i * 10 + 2)
90 nh.Add(native_heap.Allocation(size=i * 10,
94 archive.StoreNativeHeap(nh)
96 self._DeepCompare(nh, nh_deser)
/external/libpcap/
H A Dpcap-nit.c112 register struct nit_hdr *nh; local
157 nh = (struct nit_hdr *)bp;
158 cp = bp + sizeof(*nh);
160 switch (nh->nh_state) {
168 pn->stat.ps_drop = nh->nh_dropped;
176 "bad nit state %d", nh->nh_state);
180 bp += ((sizeof(struct nit_hdr) + nh->nh_datalen +
183 caplen = nh->nh_wirelen;
186 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
188 h.ts = nh
[all...]
/external/chromium_org/base/allocator/
H A Dallocator_shim.cc62 std::new_handler nh; local
65 nh = std::set_new_handler(0);
66 (void) std::set_new_handler(nh);
70 if (!nh)
74 (*nh)();
78 if (!nh) {
87 (*nh)();
/external/libcxx/src/
H A Dnew.cpp58 std::new_handler nh = std::get_new_handler(); local
59 if (nh)
60 nh();
/external/libcxxabi/src/
H A Dcxa_new_delete.cpp46 std::new_handler nh = std::get_new_handler(); local
47 if (nh)
48 nh();
/external/iputils/ninfod/
H A Dni_ifaddrs.c165 struct nlmsghdr *nh; local
187 nh = (struct nlmsghdr *) buff;
188 for (nh = (struct nlmsghdr *) buff; NLMSG_OK(nh, read_size); nh = (struct nlmsghdr *) NLMSG_NEXT(nh, read_size)) {
189 if (nh->nlmsg_pid != pid || nh->nlmsg_seq != seq)
191 if (nh->nlmsg_type == NLMSG_DONE) {
195 if (nh
[all...]
/external/blktrace/btt/
H A Dq2d.c96 double nh = (double)q2dp->nhistos; local
99 double p = 100.0 * (double)q2dp->histos[i] / nh;
/external/libnl/src/lib/
H A Droute.c151 struct rtnl_nexthop *nh; local
157 if (!(nh = rtnl_route_nh_alloc()))
174 rtnl_route_nh_set_ifindex(nh, ival);
179 rtnl_route_nh_set_gateway(nh, addr);
189 rtnl_route_nh_set_weight(nh, lval);
194 rtnl_route_add_nexthop(route, nh);
/external/libedit/src/
H A Dhistory.c686 history_set_fun(TYPE(History) *h, TYPE(History) *nh)
690 if (nh->h_first == NULL || nh->h_next == NULL || nh->h_last == NULL ||
691 nh->h_prev == NULL || nh->h_curr == NULL || nh->h_set == NULL ||
692 nh->h_enter == NULL || nh->h_add == NULL || nh
[all...]
/external/elfutils/0.153/libdwfl/
H A Ddwfl_segment_report_module.c316 const GElf_Nhdr *nh = notes; local
317 while ((const void *) nh < (const void *) notes + filesz)
319 const void *note_name = nh + 1;
320 const void *note_desc = note_name + NOTE_ALIGN (nh->n_namesz);
322 - note_desc) < nh->n_descsz))
325 if (nh->n_type == NT_GNU_BUILD_ID
326 && nh->n_descsz > 0
327 && nh->n_namesz == sizeof "GNU"
331 build_id_len = nh->n_descsz;
332 build_id = malloc (nh
[all...]
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Ddebugallocation.cc1122 std::new_handler nh;
1125 nh = std::set_new_handler(0);
1126 (void) std::set_new_handler(nh);
1129 if (nh) {
1132 (*nh)();
1138 if (!nh) {
1146 (*nh)();
1329 std::new_handler nh;
1332 nh = std::set_new_handler(0);
1333 (void) std::set_new_handler(nh);
[all...]
H A Dtcmalloc.cc1429 std::new_handler nh;
1432 nh = std::set_new_handler(0);
1433 (void) std::set_new_handler(nh);
1436 if (nh) {
1439 (*nh)();
1445 if (!nh) {
1453 (*nh)();
1477 std::new_handler nh;
1480 nh = std::set_new_handler(0);
1481 (void) std::set_new_handler(nh);
[all...]
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Ddebugallocation.cc1115 std::new_handler nh;
1118 nh = std::set_new_handler(0);
1119 (void) std::set_new_handler(nh);
1122 if (nh) {
1125 (*nh)();
1131 if (!nh) {
1139 (*nh)();
1317 std::new_handler nh;
1320 nh = std::set_new_handler(0);
1321 (void) std::set_new_handler(nh);
[all...]
H A Dtcmalloc.cc1384 std::new_handler nh;
1387 nh = std::set_new_handler(0);
1388 (void) std::set_new_handler(nh);
1391 if (nh) {
1394 (*nh)();
1400 if (!nh) {
1408 (*nh)();
1432 std::new_handler nh;
1435 nh = std::set_new_handler(0);
1436 (void) std::set_new_handler(nh);
[all...]
/external/iproute2/ip/
H A Diproute.c568 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); local
574 if (len < sizeof(*nh))
576 if (nh->rtnh_len > len)
585 if (nh->rtnh_len > sizeof(*nh)) {
586 parse_rtattr(tb, RTA_MAX, RTNH_DATA(nh), nh->rtnh_len - sizeof(*nh));
608 fprintf(fp, " %s", ll_index_to_name(nh->rtnh_ifindex));
609 if (nh
[all...]
/external/svox/pico/lib/
H A Dpicofftsg.c670 picoos_int32 j0, k0, j1, k1, l, m, i, j, k, nh, m2; local
678 nh = n >> 1;
722 j1 += nh;
763 k1 += nh;
802 j1 -= nh;
842 for (i = nh >> 1; i > (k ^= i); i >>= 1) {
848 k1 += nh;
878 k1 -= nh;
887 j1 += nh + 2;
888 k1 += nh
1029 picoos_int32 j0, k0, j1, k1, l, m, i, j, k, nh, m2; local
1583 picoos_int32 j0, k0, j1, k1, l, m, i, j, k, nh; local
[all...]
/external/chromium_org/third_party/usrsctp/usrsctplib/
H A Duser_recv_thread.c199 struct nlmsghdr *nh;
232 for (nh = (struct nlmsghdr *) buf; NLMSG_OK (nh, len);
233 nh = NLMSG_NEXT (nh, len)) {
234 if (nh->nlmsg_type == NLMSG_DONE)
237 if (nh->nlmsg_type == RTM_NEWADDR || nh->nlmsg_type == RTM_DELADDR) {
238 rtmsg = (struct ifaddrmsg *)NLMSG_DATA(nh);
249 sctp_handle_ifamsg(nh
[all...]

Completed in 699 milliseconds

1234