/net/ieee802154/ |
D | nl_policy.c | 28 [IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, }, 29 [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, }, 30 [IEEE802154_ATTR_PHY_NAME] = { .type = NLA_STRING, }, 32 [IEEE802154_ATTR_STATUS] = { .type = NLA_U8, }, 33 [IEEE802154_ATTR_SHORT_ADDR] = { .type = NLA_U16, }, 34 [IEEE802154_ATTR_HW_ADDR] = { .type = NLA_HW_ADDR, }, 35 [IEEE802154_ATTR_PAN_ID] = { .type = NLA_U16, }, 36 [IEEE802154_ATTR_CHANNEL] = { .type = NLA_U8, }, 37 [IEEE802154_ATTR_PAGE] = { .type = NLA_U8, }, 38 [IEEE802154_ATTR_COORD_SHORT_ADDR] = { .type = NLA_U16, }, [all …]
|
/net/sctp/ |
D | sm_statefuns.c | 83 const sctp_subtype_t type, 89 const sctp_subtype_t type, 95 const sctp_subtype_t type, 119 const sctp_subtype_t type, 127 const sctp_subtype_t type, 135 const sctp_subtype_t type, 143 const sctp_subtype_t type, 150 const sctp_subtype_t type, 156 const sctp_subtype_t type, 220 const sctp_subtype_t type, in sctp_sf_do_4_C() argument [all …]
|
/net/ipv6/netfilter/ |
D | nf_conntrack_proto_icmpv6.c | 47 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple() 76 int type = orig->dst.u.icmp.type - 128; in icmpv6_invert_tuple() local 77 if (type < 0 || type >= sizeof(invmap) || !invmap[type]) in icmpv6_invert_tuple() 81 tuple->dst.u.icmp.type = invmap[type] - 1; in icmpv6_invert_tuple() 91 tuple->dst.u.icmp.type, in icmpv6_print_tuple() 126 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in icmpv6_new() local 128 if (type < 0 || type >= sizeof(valid_new) || !valid_new[type]) { in icmpv6_new() 131 type + 128); in icmpv6_new() 137 type + 128); in icmpv6_new() 202 int type; in icmpv6_error() local [all …]
|
/net/irda/ |
D | parameters.c | 39 PV_TYPE type, PI_HANDLER func); 41 PV_TYPE type, PI_HANDLER func); 43 PV_TYPE type, PI_HANDLER func); 45 PV_TYPE type, PI_HANDLER func); 48 PV_TYPE type, PI_HANDLER func); 50 PV_TYPE type, PI_HANDLER func); 79 PV_TYPE type, PI_HANDLER func) in irda_insert_no_value() argument 106 PV_TYPE type, PI_HANDLER func) in irda_extract_no_value() argument 127 PV_TYPE type, PI_HANDLER func) in irda_insert_integer() argument 134 p.pl = type & PV_MASK; /* The integer type codes the length as well */ in irda_insert_integer() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_core.c | 85 struct ip_set_type *type; in find_set_type() local 87 list_for_each_entry_rcu(type, &ip_set_type_list, list) in find_set_type() 88 if (STREQ(type->name, name) && in find_set_type() 89 (type->family == family || in find_set_type() 90 type->family == NFPROTO_UNSPEC) && in find_set_type() 91 revision >= type->revision_min && in find_set_type() 92 revision <= type->revision_max) in find_set_type() 93 return type; in find_set_type() 120 struct ip_set_type *type; in __find_set_type_get() local 134 list_for_each_entry_rcu(type, &ip_set_type_list, list) in __find_set_type_get() [all …]
|
D | ip_set_hash_mac.c | 138 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 139 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 140 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 141 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 142 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 143 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 146 [IPSET_ATTR_ETHER] = { .type = NLA_BINARY, 148 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 149 [IPSET_ATTR_LINENO] = { .type = NLA_U32 }, 150 [IPSET_ATTR_BYTES] = { .type = NLA_U64 }, [all …]
|
D | ip_set_hash_ipmark.c | 293 [IPSET_ATTR_MARKMASK] = { .type = NLA_U32 }, 294 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 295 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 296 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 297 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 298 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 299 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 302 [IPSET_ATTR_IP] = { .type = NLA_NESTED }, 303 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED }, 304 [IPSET_ATTR_MARK] = { .type = NLA_U32 }, [all …]
|
D | ip_set_hash_ip.c | 288 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 289 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 290 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 291 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 292 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 293 [IPSET_ATTR_NETMASK] = { .type = NLA_U8 }, 294 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 297 [IPSET_ATTR_IP] = { .type = NLA_NESTED }, 298 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED }, 299 [IPSET_ATTR_CIDR] = { .type = NLA_U8 }, [all …]
|
D | ip_set_hash_ipport.c | 360 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 361 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 362 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 363 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 364 [IPSET_ATTR_PROTO] = { .type = NLA_U8 }, 365 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 366 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 369 [IPSET_ATTR_IP] = { .type = NLA_NESTED }, 370 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED }, 371 [IPSET_ATTR_PORT] = { .type = NLA_U16 }, [all …]
|
D | ip_set_hash_ipportip.c | 372 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 373 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 374 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 375 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 376 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 377 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 380 [IPSET_ATTR_IP] = { .type = NLA_NESTED }, 381 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED }, 382 [IPSET_ATTR_IP2] = { .type = NLA_NESTED }, 383 [IPSET_ATTR_PORT] = { .type = NLA_U16 }, [all …]
|
/net/netfilter/ |
D | nft_log.c | 41 [NFTA_LOG_GROUP] = { .type = NLA_U16 }, 42 [NFTA_LOG_PREFIX] = { .type = NLA_STRING }, 43 [NFTA_LOG_SNAPLEN] = { .type = NLA_U32 }, 44 [NFTA_LOG_QTHRESHOLD] = { .type = NLA_U16 }, 45 [NFTA_LOG_LEVEL] = { .type = NLA_U32 }, 46 [NFTA_LOG_FLAGS] = { .type = NLA_U32 }, 68 li->type = NF_LOG_TYPE_LOG; in nft_log_init() 73 li->type = NF_LOG_TYPE_ULOG; in nft_log_init() 75 switch (li->type) { in nft_log_init() 102 ret = nf_logger_find_get(NFPROTO_IPV4, li->type); in nft_log_init() [all …]
|
D | xt_repldata.h | 16 #define xt_alloc_initial_table(type, typ2) ({ \ argument 21 struct type##_replace repl; \ 22 struct type##_standard entries[]; \ 24 struct type##_error *term; \ 30 term = (struct type##_error *)&(((char *)tbl)[term_offset]); \ 32 *term = (struct type##_error)typ2##_ERROR_INIT; \ 35 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \ 36 sizeof(struct type##_error); \ 42 tbl->entries[i++] = (struct type##_standard) \ 44 bytes += sizeof(struct type##_standard); \
|
D | nf_conntrack_extend.c | 131 static void update_alloc_size(struct nf_ct_ext_type *type) in update_alloc_size() argument 138 if ((type->flags & NF_CT_EXT_F_PREALLOC) == 0) { in update_alloc_size() 139 min = type->id; in update_alloc_size() 140 max = type->id; in update_alloc_size() 167 int nf_ct_extend_register(struct nf_ct_ext_type *type) in nf_ct_extend_register() argument 172 if (nf_ct_ext_types[type->id]) { in nf_ct_extend_register() 179 type->alloc_size = ALIGN(sizeof(struct nf_ct_ext), type->align) in nf_ct_extend_register() 180 + type->len; in nf_ct_extend_register() 181 rcu_assign_pointer(nf_ct_ext_types[type->id], type); in nf_ct_extend_register() 182 update_alloc_size(type); in nf_ct_extend_register() [all …]
|
D | nfnetlink.c | 98 static inline const struct nfnetlink_subsystem *nfnetlink_get_subsys(u_int16_t type) in nfnetlink_get_subsys() argument 100 u_int8_t subsys_id = NFNL_SUBSYS_ID(type); in nfnetlink_get_subsys() 109 nfnetlink_find_client(u_int16_t type, const struct nfnetlink_subsystem *ss) in nfnetlink_find_client() argument 111 u_int8_t cb_id = NFNL_MSG_TYPE(type); in nfnetlink_find_client() 158 int type, err; in nfnetlink_rcv_msg() local 164 type = nlh->nlmsg_type; in nfnetlink_rcv_msg() 167 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg() 171 request_module("nfnetlink-subsys-%d", NFNL_SUBSYS_ID(type)); in nfnetlink_rcv_msg() 173 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg() 182 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_msg() [all …]
|
/net/tipc/ |
D | name_table.c | 91 u32 type; member 122 static struct publication *publ_create(u32 type, u32 lower, u32 upper, in publ_create() argument 132 publ->type = type; in publ_create() 158 static struct name_seq *tipc_nameseq_create(u32 type, struct hlist_head *seq_head) in tipc_nameseq_create() argument 171 nseq->type = type; in tipc_nameseq_create() 249 u32 type, u32 lower, u32 upper, in tipc_nameseq_insert_publ() argument 294 type, lower, upper); in tipc_nameseq_insert_publ() 307 type, lower, upper); in tipc_nameseq_insert_publ() 328 publ = publ_create(type, lower, upper, scope, node, port, key); in tipc_nameseq_insert_publ() 467 static struct name_seq *nametbl_find_seq(u32 type) in nametbl_find_seq() argument [all …]
|
/net/dcb/ |
D | dcbnl.c | 59 [DCB_ATTR_IFNAME] = {.type = NLA_NUL_STRING, .len = IFNAMSIZ - 1}, 60 [DCB_ATTR_STATE] = {.type = NLA_U8}, 61 [DCB_ATTR_PFC_CFG] = {.type = NLA_NESTED}, 62 [DCB_ATTR_PG_CFG] = {.type = NLA_NESTED}, 63 [DCB_ATTR_SET_ALL] = {.type = NLA_U8}, 64 [DCB_ATTR_PERM_HWADDR] = {.type = NLA_FLAG}, 65 [DCB_ATTR_CAP] = {.type = NLA_NESTED}, 66 [DCB_ATTR_PFC_STATE] = {.type = NLA_U8}, 67 [DCB_ATTR_BCN] = {.type = NLA_NESTED}, 68 [DCB_ATTR_APP] = {.type = NLA_NESTED}, [all …]
|
/net/ipv4/netfilter/ |
D | nf_conntrack_proto_icmp.c | 42 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple() 64 if (orig->dst.u.icmp.type >= sizeof(invmap) || in icmp_invert_tuple() 65 !invmap[orig->dst.u.icmp.type]) in icmp_invert_tuple() 69 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in icmp_invert_tuple() 79 tuple->dst.u.icmp.type, in icmp_print_tuple() 117 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in icmp_new() 118 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in icmp_new() 121 ct->tuplehash[0].tuple.dst.u.icmp.type); in icmp_new() 211 if (icmph->type > NR_ICMP_TYPES) { in icmp_error() 219 if (icmph->type != ICMP_DEST_UNREACH && in icmp_error() [all …]
|
/net/802/ |
D | fddi.c | 53 unsigned short type, in fddi_header() argument 59 if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP) in fddi_header() 63 if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP) in fddi_header() 71 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header() 125 __be16 type; in fddi_type_trans() local 138 type = htons(ETH_P_802_2); in fddi_type_trans() 143 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans() 164 return type; in fddi_type_trans() 187 dev->type = ARPHRD_FDDI; in fddi_setup()
|
/net/llc/ |
D | llc_input.c | 42 void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, in llc_add_pack() argument 46 if (type == LLC_DEST_SAP || type == LLC_DEST_CONN) in llc_add_pack() 47 llc_type_handlers[type - 1] = handler; in llc_add_pack() 50 void llc_remove_pack(int type) in llc_remove_pack() argument 52 if (type == LLC_DEST_SAP || type == LLC_DEST_CONN) in llc_remove_pack() 53 llc_type_handlers[type - 1] = NULL; in llc_remove_pack() 77 int type = LLC_DEST_CONN; /* I-PDU or S-PDU type */ in llc_pdu_type() local 86 type = LLC_DEST_SAP; in llc_pdu_type() 95 type = LLC_DEST_INVALID; in llc_pdu_type() 99 return type; in llc_pdu_type()
|
D | llc_s_ev.c | 27 return ev->type == LLC_SAP_EV_TYPE_SIMPLE && in llc_sap_ev_activation_req() 36 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_ui() 45 return ev->type == LLC_SAP_EV_TYPE_PRIM && in llc_sap_ev_unitdata_req() 55 return ev->type == LLC_SAP_EV_TYPE_PRIM && in llc_sap_ev_xid_req() 65 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_xid_c() 75 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_RSP(pdu) && in llc_sap_ev_rx_xid_r() 84 return ev->type == LLC_SAP_EV_TYPE_PRIM && in llc_sap_ev_test_req() 94 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_test_c() 104 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_RSP(pdu) && in llc_sap_ev_rx_test_r() 113 return ev->type == LLC_SAP_EV_TYPE_SIMPLE && in llc_sap_ev_deactivation_req()
|
/net/core/ |
D | timestamping.c | 39 unsigned int type; in skb_clone_tx_timestamp() local 44 type = classify(skb); in skb_clone_tx_timestamp() 45 if (type == PTP_CLASS_NONE) in skb_clone_tx_timestamp() 53 phydev->drv->txtstamp(phydev, clone, type); in skb_clone_tx_timestamp() 61 unsigned int type; in skb_defer_rx_timestamp() local 67 type = classify(skb); in skb_defer_rx_timestamp() 71 if (type == PTP_CLASS_NONE) in skb_defer_rx_timestamp() 76 return phydev->drv->rxtstamp(phydev, skb, type); in skb_defer_rx_timestamp()
|
/net/mac80211/ |
D | iface.c | 188 if (iter->vif.type == NL80211_IFTYPE_MONITOR && in ieee80211_verify_mac() 217 if (sdata->vif.type == NL80211_IFTYPE_MONITOR && in ieee80211_change_mac() 272 nsdata->vif.type == NL80211_IFTYPE_ADHOC) in ieee80211_check_concurrent_iface() 293 nsdata->vif.type)) in ieee80211_check_concurrent_iface() 300 nsdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_check_concurrent_iface() 400 sdata->vif.type = NL80211_IFTYPE_MONITOR; in ieee80211_add_virtual_monitor() 490 switch (sdata->vif.type) { in ieee80211_do_open() 563 switch (sdata->vif.type) { in ieee80211_do_open() 617 if (sdata->vif.type == NL80211_IFTYPE_AP) { in ieee80211_do_open() 622 } else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) { in ieee80211_do_open() [all …]
|
/net/mac802154/ |
D | mib.c | 47 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_slave_get_priv() 87 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_short_addr() 105 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_get_short_addr() 133 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_get_pan_id() 146 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_pan_id() 163 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_get_dsn() 194 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_page_channel() 225 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_get_params() 241 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_set_params() 258 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_key() [all …]
|
/net/ipv4/ |
D | icmp.c | 289 struct flowi4 *fl4, int type, int code) in icmpv4_xrlim_allow() argument 294 if (type > NR_ICMP_TYPES) in icmpv4_xrlim_allow() 298 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) in icmpv4_xrlim_allow() 306 if (!((1 << type) & net->ipv4.sysctl_icmp_ratemask)) in icmpv4_xrlim_allow() 326 void icmp_out_count(struct net *net, unsigned char type) in icmp_out_count() argument 328 ICMPMSGOUT_INC_STATS(net, type); in icmp_out_count() 347 if (icmp_pointers[icmp_param->data.icmph.type].error) in icmp_glue_bits() 433 if (icmpv4_xrlim_allow(net, rt, &fl4, icmp_param->data.icmph.type, in icmp_reply() 446 int type, int code, in icmp_route_lookup() argument 461 fl4->fl4_icmp_type = type; in icmp_route_lookup() [all …]
|
/net/ceph/crush/ |
D | hash.c | 91 __u32 crush_hash32(int type, __u32 a) in crush_hash32() argument 93 switch (type) { in crush_hash32() 101 __u32 crush_hash32_2(int type, __u32 a, __u32 b) in crush_hash32_2() argument 103 switch (type) { in crush_hash32_2() 111 __u32 crush_hash32_3(int type, __u32 a, __u32 b, __u32 c) in crush_hash32_3() argument 113 switch (type) { in crush_hash32_3() 121 __u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_4() argument 123 switch (type) { in crush_hash32_4() 131 __u32 crush_hash32_5(int type, __u32 a, __u32 b, __u32 c, __u32 d, __u32 e) in crush_hash32_5() argument 133 switch (type) { in crush_hash32_5() [all …]
|