Home
last modified time | relevance | path

Searched refs:etype (Results 1 – 25 of 48) sorted by relevance

12

/dragonfly/contrib/tcpdump/
HDprint-symantec.c45 uint16_t etype; in symantec_hdr_print() local
49 etype = GET_BE_U_2(sp->ether_type); in symantec_hdr_print()
51 if (etype <= MAX_ETHERNET_LENGTH_VAL) in symantec_hdr_print()
52 ND_PRINT("invalid ethertype %u", etype); in symantec_hdr_print()
55 tok2str(ethertype_values,"Unknown", etype), in symantec_hdr_print()
56 etype); in symantec_hdr_print()
58 if (etype <= MAX_ETHERNET_LENGTH_VAL) in symantec_hdr_print()
59 ND_PRINT("invalid ethertype %u", etype); in symantec_hdr_print()
61 … ND_PRINT("%s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", etype)); in symantec_hdr_print()
/dragonfly/stand/lib/
HDether.c55 sendether(struct iodesc *d, void *pkt, size_t len, u_char *dea, int etype) in sendether() argument
70 eh->ether_type = htons(etype); in sendether()
87 u_int16_t *etype) in readether() argument
114 *etype = ntohs(eh->ether_type); in readether()
HDudp.c138 u_int16_t etype; /* host order */ in readudp() local
148 n = readether(d, ip, len + sizeof(*ip) + sizeof(*uh), tleft, &etype); in readudp()
155 if (etype == ETHERTYPE_ARP) { in readudp()
164 if (etype != ETHERTYPE_IP) { in readudp()
167 printf("readudp: not IP. ether_type=%x\n", etype); in readudp()
HDrarp.c153 u_int16_t etype; /* host order */ in rarprecv() local
160 n = readether(d, pkt, len, tleft, &etype); in rarprecv()
170 if (etype != ETHERTYPE_REVARP) { in rarprecv()
173 printf("bad type=0x%x\n", etype); in rarprecv()
HDarp.c166 u_int16_t etype; /* host order */ in arprecv() local
173 n = readether(d, pkt, len, tleft, &etype); in arprecv()
183 if (etype != ETHERTYPE_ARP) { in arprecv()
186 printf("not arp type=%d\n", etype); in arprecv()
HDnet.h101 u_char *dea, int etype);
103 time_t tleft, u_int16_t *etype);
/dragonfly/usr.bin/truss/
HDmain.c98 char *etype; in set_etype() local
102 asprintf(&etype, "%s/%d/etype", procfs_path, trussinfo->pid); in set_etype()
103 if (etype == NULL) in set_etype()
105 if ((fd = open(etype, O_RDONLY)) == -1) { in set_etype()
112 free(etype); in set_etype()
/dragonfly/sys/netgraph/netgraph/
HDng_parse.c1177 etype = ng_get_composite_etype(type, index, ctype); in ng_parse_composite() local
1197 error = INVOKE(etype, parse)(etype, in ng_parse_composite()
1250 etype = ng_get_composite_etype(type, index, ctype); in ng_unparse_composite() local
1289 if ((error = INVOKE(etype, unparse) in ng_unparse_composite()
1290 (etype, data, off, cbuf, cbuflen)) != 0) { in ng_unparse_composite()
1315 const struct ng_parse_type *etype; in ng_get_composite_elem_default() local
1346 etype = ng_get_composite_etype(type, index, ctype); in ng_get_composite_elem_default()
1347 func = METHOD(etype, getDefault); in ng_get_composite_elem_default()
1350 return (*func)(etype, start, buf, buflen); in ng_get_composite_elem_default()
1401 const struct ng_parse_type *etype = NULL; in ng_get_composite_etype() local
[all …]
/dragonfly/sys/netgraph7/netgraph/
HDng_parse.c1335 etype = ng_get_composite_etype(type, index, ctype); in ng_parse_composite() local
1355 error = INVOKE(etype, parse)(etype, in ng_parse_composite()
1410 etype = ng_get_composite_etype(type, index, ctype); in ng_unparse_composite() local
1454 if ((error = INVOKE(etype, unparse) in ng_unparse_composite()
1455 (etype, data, off, cbuf, cbuflen)) != 0) { in ng_unparse_composite()
1483 const struct ng_parse_type *etype; in ng_get_composite_elem_default() local
1514 etype = ng_get_composite_etype(type, index, ctype); in ng_get_composite_elem_default()
1515 func = METHOD(etype, getDefault); in ng_get_composite_elem_default()
1518 return (*func)(etype, start, buf, buflen); in ng_get_composite_elem_default()
1569 const struct ng_parse_type *etype = NULL; in ng_get_composite_etype() local
[all …]
/dragonfly/contrib/nvi2/ex/
HDex_init.c353 enum { ROOTOWN, OWN, WRITER } etype; in exrc_isok() local
366 etype = rootown ? ROOTOWN : OWN; in exrc_isok()
372 etype = WRITER; in exrc_isok()
386 switch (etype) { in exrc_isok()
405 switch (etype) { in exrc_isok()
/dragonfly/sys/netgraph/rfc1490/
HDng_rfc1490.c243 u_int16_t etype; in ng_rfc1490_rcvdata() local
246 etype = ntohs(*((const u_int16_t *)ptr)); in ng_rfc1490_rcvdata()
249 switch (etype) { in ng_rfc1490_rcvdata()
/dragonfly/usr.bin/brandelf/
HDbrandelf.c172 iselftype(int etype) in iselftype() argument
179 if (etype == elftypes[elfwalk].value) in iselftype()
/dragonfly/usr.bin/who/
HDutmpentry.c57 int etype = 1 << USER_PROCESS; variable
144 if (fname == NULL && ((1 << utx->ut_type) & etype) == 0) { in getutentries()
HDutmpentry.h52 extern int etype;
HDwho.c154 etype = et; in main()
/dragonfly/crypto/libressl/crypto/cms/
HDcms_lib.c323 ASN1_OBJECT **petype, *etype; in CMS_set1_eContentType() local
330 etype = OBJ_dup(oid); in CMS_set1_eContentType()
331 if (!etype) in CMS_set1_eContentType()
334 *petype = etype; in CMS_set1_eContentType()
/dragonfly/sys/netgraph7/rfc1490/
HDng_rfc1490.c340 u_int16_t etype; in ng_rfc1490_rcvdata() local
343 switch_on_etype: etype = ntohs(*((const u_int16_t *)ptr)); in ng_rfc1490_rcvdata()
346 switch (etype) { in ng_rfc1490_rcvdata()
/dragonfly/sys/net/
HDethernet.h65 #define ETHER_MAX_FRAME(ifp, etype, hasfcs) \ argument
68 (((etype) == ETHERTYPE_VLAN) ? ETHER_VLAN_ENCAP_LEN : 0))
/dragonfly/sys/netgraph7/netflow/
HDng_netflow.c504 uint16_t etype; in ng_netflow_rcvdata() local
510 etype = ntohs(eh->ether_type); in ng_netflow_rcvdata()
511 switch (etype) { in ng_netflow_rcvdata()
/dragonfly/contrib/gcc-8.0/gcc/
HDtree-chkp.c1588 chkp_build_array_ref (tree arr, tree etype, tree esize,
1610 TREE_TYPE (res) = etype;
1614 res = build4 (ARRAY_REF, etype, arr, index, NULL_TREE, NULL_TREE);
1672 tree etype = TREE_TYPE (type);
1673 HOST_WIDE_INT esize = TREE_INT_CST_LOW (TYPE_SIZE (etype));
1682 tree arr_elem = chkp_build_array_ref (base, etype,
1683 TYPE_SIZE (etype),
1731 tree etype = TREE_TYPE (type);
1732 HOST_WIDE_INT esize = TREE_INT_CST_LOW (TYPE_SIZE (etype));
1743 chkp_find_bound_slots_1 (etype, have_bound, offs + cur * esize);
[all …]
HDfold-const.c4883 range_check_type (tree etype) in range_check_type() argument
4887 if (TREE_CODE (etype) == ENUMERAL_TYPE || TREE_CODE (etype) == BOOLEAN_TYPE) in range_check_type()
4888 etype = lang_hooks.types.type_for_size (TYPE_PRECISION (etype), in range_check_type()
4889 TYPE_UNSIGNED (etype)); in range_check_type()
4891 if (TREE_CODE (etype) == INTEGER_TYPE && !TYPE_OVERFLOW_WRAPS (etype)) in range_check_type()
4897 utype = unsigned_type_for (etype); in range_check_type()
4898 maxv = fold_convert (utype, TYPE_MAX_VALUE (etype)); in range_check_type()
4901 minv = fold_convert (utype, TYPE_MIN_VALUE (etype)); in range_check_type()
4905 etype = utype; in range_check_type()
4909 return etype; in range_check_type()
[all …]
HDgimple-fold.c1189 tree etype; in gimple_fold_builtin_memset() local
1214 etype = TREE_TYPE (var); in gimple_fold_builtin_memset()
1215 if (TREE_CODE (etype) == ARRAY_TYPE) in gimple_fold_builtin_memset()
1216 etype = TREE_TYPE (etype); in gimple_fold_builtin_memset()
1218 if (!INTEGRAL_TYPE_P (etype) in gimple_fold_builtin_memset()
1219 && !POINTER_TYPE_P (etype)) in gimple_fold_builtin_memset()
1226 if (GET_MODE_SIZE (SCALAR_INT_TYPE_MODE (etype)) != length in gimple_fold_builtin_memset()
1247 var = fold_build2 (MEM_REF, etype, dest, build_int_cst (ptr_type_node, 0)); in gimple_fold_builtin_memset()
1248 gimple *store = gimple_build_assign (var, build_int_cst_type (etype, cval)); in gimple_fold_builtin_memset()
3864 tree etype = TREE_TYPE (TREE_OPERAND (expected, 0)); in optimize_atomic_compare_exchange_p() local
[all …]
/dragonfly/sys/net/lagg/
HDif_lagg.c1645 uint16_t etype; in lagg_hashmbuf() local
1675 etype = ntohs(eh->ether_type); in lagg_hashmbuf()
1688 if (etype == ETHERTYPE_VLAN) { in lagg_hashmbuf()
1695 etype = ntohs(vlan->evl_proto); in lagg_hashmbuf()
1699 switch (etype) { in lagg_hashmbuf()
2138 u_short etype; in lagg_lacp_input() local
2141 etype = ntohs(eh->ether_type); in lagg_lacp_input()
2144 if ((m->m_flags & M_VLANTAG) == 0 && etype == ETHERTYPE_SLOW) { in lagg_lacp_input()
/dragonfly/sys/net/gre/
HDif_gre.c254 u_short etype = 0; in gre_output_serialized() local
378 etype = ETHERTYPE_IP; in gre_output_serialized()
402 gh->gi_ptype = htons(etype); in gre_output_serialized()
/dragonfly/contrib/gcc-4.7/gcc/
HDfold-const.c4178 tree etype = TREE_TYPE (exp), value; in build_range_check() local
4184 && TREE_CODE (etype) == POINTER_TYPE in build_range_check()
4185 && TREE_CODE (TREE_TYPE (etype)) == FUNCTION_TYPE) in build_range_check()
4203 fold_convert_loc (loc, etype, high)); in build_range_check()
4207 fold_convert_loc (loc, etype, low)); in build_range_check()
4211 fold_convert_loc (loc, etype, low)); in build_range_check()
4215 if (! TYPE_UNSIGNED (etype)) in build_range_check()
4217 etype = unsigned_type_for (etype); in build_range_check()
4218 high = fold_convert_loc (loc, etype, high); in build_range_check()
4219 exp = fold_convert_loc (loc, etype, exp); in build_range_check()
[all …]

12