Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 626) sorted by relevance

12345678910>>...26

/net/ieee802154/
Dnl_policy.c24 [IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, },
25 [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },
26 [IEEE802154_ATTR_PHY_NAME] = { .type = NLA_STRING, },
28 [IEEE802154_ATTR_STATUS] = { .type = NLA_U8, },
29 [IEEE802154_ATTR_SHORT_ADDR] = { .type = NLA_U16, },
30 [IEEE802154_ATTR_HW_ADDR] = { .type = NLA_HW_ADDR, },
31 [IEEE802154_ATTR_PAN_ID] = { .type = NLA_U16, },
32 [IEEE802154_ATTR_CHANNEL] = { .type = NLA_U8, },
33 [IEEE802154_ATTR_BCN_ORD] = { .type = NLA_U8, },
34 [IEEE802154_ATTR_SF_ORD] = { .type = NLA_U8, },
[all …]
/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c48 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
77 int type = orig->dst.u.icmp.type - 128; in icmpv6_invert_tuple() local
78 if (type < 0 || type >= sizeof(invmap) || !invmap[type]) in icmpv6_invert_tuple()
82 tuple->dst.u.icmp.type = invmap[type] - 1; in icmpv6_invert_tuple()
92 tuple->dst.u.icmp.type, in icmpv6_print_tuple()
127 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in icmpv6_new() local
129 if (type < 0 || type >= sizeof(valid_new) || !valid_new[type]) { in icmpv6_new()
132 type + 128); in icmpv6_new()
138 type + 128); in icmpv6_new()
204 int type; in icmpv6_error() local
[all …]
/net/sctp/
Dsm_statefuns.c83 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,
154 const sctp_subtype_t type,
228 const sctp_subtype_t type, in sctp_sf_do_4_C() argument
236 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_4_C()
[all …]
/net/irda/
Dparameters.c39 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/core/
Dlwtunnel.c105 if (lwtstate->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_fill_encap()
106 lwtstate->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_fill_encap()
112 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_fill_encap()
120 ret = nla_put_u16(skb, RTA_ENCAP_TYPE, lwtstate->type); in lwtunnel_fill_encap()
141 if (lwtstate->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_get_encap_size()
142 lwtstate->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_get_encap_size()
146 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_get_encap_size()
166 if (a->type != b->type) in lwtunnel_cmp_encap()
169 if (a->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_cmp_encap()
170 a->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_cmp_encap()
[all …]
Dtimestamping.c39 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
71 type = ptp_classify_raw(skb); in skb_defer_rx_timestamp()
75 if (type == PTP_CLASS_NONE) in skb_defer_rx_timestamp()
80 return phydev->drv->rxtstamp(phydev, skb, type); in skb_defer_rx_timestamp()
/net/netfilter/ipset/
Dip_set_core.c86 struct ip_set_type *type; in find_set_type() local
88 list_for_each_entry_rcu(type, &ip_set_type_list, list) in find_set_type()
89 if (STRNCMP(type->name, name) && in find_set_type()
90 (type->family == family || in find_set_type()
91 type->family == NFPROTO_UNSPEC) && in find_set_type()
92 revision >= type->revision_min && in find_set_type()
93 revision <= type->revision_max) in find_set_type()
94 return type; in find_set_type()
121 struct ip_set_type *type; in __find_set_type_get() local
136 list_for_each_entry_rcu(type, &ip_set_type_list, list) in __find_set_type_get()
[all …]
Dip_set_hash_mac.c136 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
137 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
138 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
139 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
140 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
141 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
144 [IPSET_ATTR_ETHER] = { .type = NLA_BINARY,
146 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
147 [IPSET_ATTR_LINENO] = { .type = NLA_U32 },
148 [IPSET_ATTR_BYTES] = { .type = NLA_U64 },
[all …]
Dip_set_hash_ipmark.c284 [IPSET_ATTR_MARKMASK] = { .type = NLA_U32 },
285 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
286 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
287 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
288 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
289 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
290 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
293 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
294 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
295 [IPSET_ATTR_MARK] = { .type = NLA_U32 },
[all …]
Dip_set_hash_ipport.c350 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
351 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
352 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
353 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
354 [IPSET_ATTR_PROTO] = { .type = NLA_U8 },
355 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
356 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
359 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
360 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
361 [IPSET_ATTR_PORT] = { .type = NLA_U16 },
[all …]
Dip_set_hash_ip.c284 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
285 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
286 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
287 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
288 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
289 [IPSET_ATTR_NETMASK] = { .type = NLA_U8 },
290 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
293 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
294 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
295 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
[all …]
Dip_set_hash_ipportip.c365 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
366 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
367 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
368 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
369 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
370 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
373 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
374 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
375 [IPSET_ATTR_IP2] = { .type = NLA_NESTED },
376 [IPSET_ATTR_PORT] = { .type = NLA_U16 },
[all …]
/net/netfilter/
Dnft_log.c40 [NFTA_LOG_GROUP] = { .type = NLA_U16 },
41 [NFTA_LOG_PREFIX] = { .type = NLA_STRING },
42 [NFTA_LOG_SNAPLEN] = { .type = NLA_U32 },
43 [NFTA_LOG_QTHRESHOLD] = { .type = NLA_U16 },
44 [NFTA_LOG_LEVEL] = { .type = NLA_U32 },
45 [NFTA_LOG_FLAGS] = { .type = NLA_U32 },
67 li->type = NF_LOG_TYPE_LOG; in nft_log_init()
72 li->type = NF_LOG_TYPE_ULOG; in nft_log_init()
74 switch (li->type) { in nft_log_init()
101 ret = nf_logger_find_get(NFPROTO_IPV4, li->type); in nft_log_init()
[all …]
Dxt_repldata.h16 #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); \
Dnf_conntrack_extend.c131 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 …]
Dnfnetlink.c98 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/802/
Dfddi.c53 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()
100 __be16 type; in fddi_type_trans() local
113 type = htons(ETH_P_802_2); in fddi_type_trans()
118 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
139 return type; in fddi_type_trans()
161 dev->type = ARPHRD_FDDI; in fddi_setup()
/net/dcb/
Ddcbnl.c56 [DCB_ATTR_IFNAME] = {.type = NLA_NUL_STRING, .len = IFNAMSIZ - 1},
57 [DCB_ATTR_STATE] = {.type = NLA_U8},
58 [DCB_ATTR_PFC_CFG] = {.type = NLA_NESTED},
59 [DCB_ATTR_PG_CFG] = {.type = NLA_NESTED},
60 [DCB_ATTR_SET_ALL] = {.type = NLA_U8},
61 [DCB_ATTR_PERM_HWADDR] = {.type = NLA_FLAG},
62 [DCB_ATTR_CAP] = {.type = NLA_NESTED},
63 [DCB_ATTR_PFC_STATE] = {.type = NLA_U8},
64 [DCB_ATTR_BCN] = {.type = NLA_NESTED},
65 [DCB_ATTR_APP] = {.type = NLA_NESTED},
[all …]
/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c42 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()
213 if (icmph->type > NR_ICMP_TYPES) { in icmp_error()
221 if (icmph->type != ICMP_DEST_UNREACH && in icmp_error()
[all …]
/net/xfrm/
Dxfrm_compat.c72 #define XMSGSIZE(type) sizeof(struct type) argument
103 [XFRMA_LASTUSED] = { .type = NLA_U64},
114 [XFRMA_REPLAY_THRESH] = { .type = NLA_U32 },
115 [XFRMA_ETIMER_THRESH] = { .type = NLA_U32 },
122 [XFRMA_TFCPAD] = { .type = NLA_U32 },
124 [XFRMA_SA_EXTRA_FLAGS] = { .type = NLA_U32 },
125 [XFRMA_PROTO] = { .type = NLA_U8 },
127 [XFRMA_OUTPUT_MARK] = { .type = NLA_U32 },
201 const struct nlmsghdr *nlh_src, u16 type) in xfrm_nlmsg_put_compat() argument
203 int payload = compat_msg_min[type]; in xfrm_nlmsg_put_compat()
[all …]
/net/llc/
Dllc_input.c42 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()
Dllc_s_ev.c27 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/mac802154/
Dmib.c37 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_page_channel()
54 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_get_params()
70 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_set_params()
86 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_key()
101 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_key()
116 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_dev()
130 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_dev()
146 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_devkey()
162 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_devkey()
177 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_seclevel()
[all …]
/net/tipc/
Dname_table.c51 [TIPC_NLA_NAME_TABLE_UNSPEC] = { .type = NLA_UNSPEC },
52 [TIPC_NLA_NAME_TABLE_PUBL] = { .type = NLA_NESTED }
102 u32 type; member
120 static struct publication *publ_create(u32 type, u32 lower, u32 upper, in publ_create() argument
130 publ->type = type; in publ_create()
154 static struct name_seq *tipc_nameseq_create(u32 type, struct hlist_head *seq_head) in tipc_nameseq_create() argument
167 nseq->type = type; in tipc_nameseq_create()
234 u32 type, u32 lower, in tipc_nameseq_insert_publ() argument
280 type, lower, upper); in tipc_nameseq_insert_publ()
293 type, lower, upper); in tipc_nameseq_insert_publ()
[all …]
/net/mac80211/
Diface.c190 if (iter->vif.type == NL80211_IFTYPE_MONITOR && in ieee80211_verify_mac()
219 if (sdata->vif.type == NL80211_IFTYPE_MONITOR && in ieee80211_change_mac()
266 if ((sdata->vif.type == NL80211_IFTYPE_OCB && in ieee80211_check_concurrent_iface()
267 nsdata->vif.type != NL80211_IFTYPE_MONITOR) || in ieee80211_check_concurrent_iface()
268 (sdata->vif.type != NL80211_IFTYPE_MONITOR && in ieee80211_check_concurrent_iface()
269 nsdata->vif.type == NL80211_IFTYPE_OCB)) in ieee80211_check_concurrent_iface()
283 nsdata->vif.type == NL80211_IFTYPE_ADHOC) in ieee80211_check_concurrent_iface()
304 nsdata->vif.type)) in ieee80211_check_concurrent_iface()
311 nsdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_check_concurrent_iface()
411 sdata->vif.type = NL80211_IFTYPE_MONITOR; in ieee80211_add_virtual_monitor()
[all …]

12345678910>>...26