Home
last modified time | relevance | path

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

12345678910>>...28

/net/ieee802154/
Dnl_policy.c15 [IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, },
16 [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },
17 [IEEE802154_ATTR_PHY_NAME] = { .type = NLA_STRING, },
19 [IEEE802154_ATTR_STATUS] = { .type = NLA_U8, },
20 [IEEE802154_ATTR_SHORT_ADDR] = { .type = NLA_U16, },
21 [IEEE802154_ATTR_HW_ADDR] = { .type = NLA_HW_ADDR, },
22 [IEEE802154_ATTR_PAN_ID] = { .type = NLA_U16, },
23 [IEEE802154_ATTR_CHANNEL] = { .type = NLA_U8, },
24 [IEEE802154_ATTR_PAGE] = { .type = NLA_U8, },
25 [IEEE802154_ATTR_COORD_SHORT_ADDR] = { .type = NLA_U16, },
[all …]
/net/tipc/
Dnetlink.c48 [TIPC_NLA_UNSPEC] = { .type = NLA_UNSPEC, },
49 [TIPC_NLA_BEARER] = { .type = NLA_NESTED, },
50 [TIPC_NLA_SOCK] = { .type = NLA_NESTED, },
51 [TIPC_NLA_PUBL] = { .type = NLA_NESTED, },
52 [TIPC_NLA_LINK] = { .type = NLA_NESTED, },
53 [TIPC_NLA_MEDIA] = { .type = NLA_NESTED, },
54 [TIPC_NLA_NODE] = { .type = NLA_NESTED, },
55 [TIPC_NLA_NET] = { .type = NLA_NESTED, },
56 [TIPC_NLA_NAME_TABLE] = { .type = NLA_NESTED, },
57 [TIPC_NLA_MON] = { .type = NLA_NESTED, },
[all …]
Dname_table.c76 u32 type; member
92 static struct publication *tipc_publ_create(u32 type, u32 lower, u32 upper, in tipc_publ_create() argument
101 publ->type = type; in tipc_publ_create()
120 static struct tipc_service *tipc_service_create(u32 type, struct hlist_head *hd) in tipc_service_create() argument
130 service->type = type; in tipc_service_create()
221 u32 type, u32 lower, in tipc_service_insert_publ() argument
244 p = tipc_publ_create(type, lower, upper, scope, node, port, key); in tipc_service_insert_publ()
258 pr_warn("Failed to bind to %u,%u,%u, no memory\n", type, lower, upper); in tipc_service_insert_publ()
295 ns.type = tipc_sub_read(sb, seq.type); in tipc_service_subscribe()
322 static struct tipc_service *tipc_service_find(struct net *net, u32 type) in tipc_service_find() argument
[all …]
/net/netfilter/
Dnf_conntrack_proto_icmpv6.c40 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
69 int type = orig->dst.u.icmp.type - 128; in nf_conntrack_invert_icmpv6_tuple() local
70 if (type < 0 || type >= sizeof(invmap) || !invmap[type]) in nf_conntrack_invert_icmpv6_tuple()
74 tuple->dst.u.icmp.type = invmap[type] - 1; in nf_conntrack_invert_icmpv6_tuple()
100 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in nf_conntrack_icmpv6_packet() local
102 if (type < 0 || type >= sizeof(valid_new) || !valid_new[type]) { in nf_conntrack_icmpv6_packet()
105 type + 128); in nf_conntrack_icmpv6_packet()
139 int type; in nf_conntrack_icmpv6_error() local
154 type = icmp6h->icmp6_type - 130; in nf_conntrack_icmpv6_error()
155 if (type >= 0 && type < sizeof(noct_valid_new) && in nf_conntrack_icmpv6_error()
[all …]
Dnf_conntrack_proto_icmp.c35 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
57 if (orig->dst.u.icmp.type >= sizeof(invmap) || in nf_conntrack_invert_icmp_tuple()
58 !invmap[orig->dst.u.icmp.type]) in nf_conntrack_invert_icmp_tuple()
62 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple()
87 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in nf_conntrack_icmp_packet()
88 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in nf_conntrack_icmp_packet()
91 ct->tuplehash[0].tuple.dst.u.icmp.type); in nf_conntrack_icmp_packet()
232 if (icmph->type > NR_ICMP_TYPES) { in nf_conntrack_icmpv4_error()
238 if (icmph->type != ICMP_DEST_UNREACH && in nf_conntrack_icmpv4_error()
239 icmph->type != ICMP_SOURCE_QUENCH && in nf_conntrack_icmpv4_error()
[all …]
Dxt_repldata.h17 #define xt_alloc_initial_table(type, typ2) ({ \ argument
22 struct type##_replace repl; \
23 struct type##_standard entries[]; \
25 struct type##_error *term; \
31 term = (struct type##_error *)&(((char *)tbl)[term_offset]); \
33 *term = (struct type##_error)typ2##_ERROR_INIT; \
36 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \
37 sizeof(struct type##_error); \
43 tbl->entries[i++] = (struct type##_standard) \
45 bytes += sizeof(struct type##_standard); \
Dnf_conntrack_proto_sctp.c173 pr_debug("Chunk Num: %d Type: %d\n", count, sch->type); in do_basic_checks()
175 if (sch->type == SCTP_CID_INIT || in do_basic_checks()
176 sch->type == SCTP_CID_INIT_ACK || in do_basic_checks()
177 sch->type == SCTP_CID_SHUTDOWN_COMPLETE) in do_basic_checks()
185 if (((sch->type == SCTP_CID_COOKIE_ACK || in do_basic_checks()
186 sch->type == SCTP_CID_COOKIE_ECHO || in do_basic_checks()
194 set_bit(sch->type, map); in do_basic_checks()
282 SCTP_CONNTRACK_NONE, sch->type); in sctp_new()
292 if (sch->type == SCTP_CID_INIT) { in sctp_new()
307 } else if (sch->type == SCTP_CID_HEARTBEAT) { in sctp_new()
[all …]
/net/sctp/
Dsm_statefuns.c73 const union sctp_subtype type,
80 const union sctp_subtype type,
87 const union sctp_subtype type,
112 const union sctp_subtype type,
120 const union sctp_subtype type,
128 const union sctp_subtype type,
136 const union sctp_subtype type,
148 const union sctp_subtype type,
211 const union sctp_subtype type, in sctp_sf_do_4_C() argument
218 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_4_C()
[all …]
/net/netfilter/ipset/
Dip_set_hash_mac.c130 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
131 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
132 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
133 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
134 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
135 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
138 [IPSET_ATTR_ETHER] = { .type = NLA_BINARY,
140 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
141 [IPSET_ATTR_LINENO] = { .type = NLA_U32 },
142 [IPSET_ATTR_BYTES] = { .type = NLA_U64 },
[all …]
Dip_set_core.c87 struct ip_set_type *type; in find_set_type() local
89 list_for_each_entry_rcu(type, &ip_set_type_list, list) in find_set_type()
90 if (STRNCMP(type->name, name) && in find_set_type()
91 (type->family == family || in find_set_type()
92 type->family == NFPROTO_UNSPEC) && in find_set_type()
93 revision >= type->revision_min && in find_set_type()
94 revision <= type->revision_max) in find_set_type()
95 return type; in find_set_type()
122 struct ip_set_type *type; in __find_set_type_get() local
137 list_for_each_entry_rcu(type, &ip_set_type_list, list) in __find_set_type_get()
[all …]
Dip_set_hash_ipmark.c279 [IPSET_ATTR_MARKMASK] = { .type = NLA_U32 },
280 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
281 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
282 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
283 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
284 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
285 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
288 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
289 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
290 [IPSET_ATTR_MARK] = { .type = NLA_U32 },
[all …]
Dip_set_hash_ipport.c346 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
347 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
348 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
349 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
350 [IPSET_ATTR_PROTO] = { .type = NLA_U8 },
351 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
352 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
355 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
356 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
357 [IPSET_ATTR_PORT] = { .type = NLA_U16 },
[all …]
Dip_set_hash_ip.c282 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
283 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
284 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
285 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
286 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
287 [IPSET_ATTR_NETMASK] = { .type = NLA_U8 },
288 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 },
291 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
292 [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED },
293 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
[all …]
Dip_set_hash_ipportip.c361 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 },
362 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
363 [IPSET_ATTR_PROBES] = { .type = NLA_U8 },
364 [IPSET_ATTR_RESIZE] = { .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_IP2] = { .type = NLA_NESTED },
372 [IPSET_ATTR_PORT] = { .type = NLA_U16 },
[all …]
/net/core/
Dlwtunnel.c209 const struct lwtunnel_encap_ops *ops = lwtun_encaps[lws->type]; in lwtstate_free()
231 if (lwtstate->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_fill_encap()
232 lwtstate->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_fill_encap()
241 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_fill_encap()
249 ret = nla_put_u16(skb, encap_type_attr, lwtstate->type); in lwtunnel_fill_encap()
270 if (lwtstate->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_get_encap_size()
271 lwtstate->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_get_encap_size()
275 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_get_encap_size()
295 if (a->type != b->type) in lwtunnel_cmp_encap()
298 if (a->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_cmp_encap()
[all …]
/net/802/
Dfddi.c49 unsigned short type, in fddi_header() argument
55 if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP) in fddi_header()
59 if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP) in fddi_header()
67 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header()
96 __be16 type; in fddi_type_trans() local
109 type = htons(ETH_P_802_2); in fddi_type_trans()
114 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
135 return type; in fddi_type_trans()
148 dev->type = ARPHRD_FDDI; in fddi_setup()
/net/dcb/
Ddcbnl.c45 [DCB_ATTR_IFNAME] = {.type = NLA_NUL_STRING, .len = IFNAMSIZ - 1},
46 [DCB_ATTR_STATE] = {.type = NLA_U8},
47 [DCB_ATTR_PFC_CFG] = {.type = NLA_NESTED},
48 [DCB_ATTR_PG_CFG] = {.type = NLA_NESTED},
49 [DCB_ATTR_SET_ALL] = {.type = NLA_U8},
50 [DCB_ATTR_PERM_HWADDR] = {.type = NLA_FLAG},
51 [DCB_ATTR_CAP] = {.type = NLA_NESTED},
52 [DCB_ATTR_PFC_STATE] = {.type = NLA_U8},
53 [DCB_ATTR_BCN] = {.type = NLA_NESTED},
54 [DCB_ATTR_APP] = {.type = NLA_NESTED},
[all …]
/net/mac80211/
Diface.c182 if (iter->vif.type == NL80211_IFTYPE_MONITOR && in ieee80211_verify_mac()
211 if (sdata->vif.type == NL80211_IFTYPE_MONITOR && in ieee80211_change_mac()
258 if ((sdata->vif.type == NL80211_IFTYPE_OCB && in ieee80211_check_concurrent_iface()
259 nsdata->vif.type != NL80211_IFTYPE_MONITOR) || in ieee80211_check_concurrent_iface()
260 (sdata->vif.type != NL80211_IFTYPE_MONITOR && in ieee80211_check_concurrent_iface()
261 nsdata->vif.type == NL80211_IFTYPE_OCB)) in ieee80211_check_concurrent_iface()
275 nsdata->vif.type == NL80211_IFTYPE_ADHOC) in ieee80211_check_concurrent_iface()
296 nsdata->vif.type)) in ieee80211_check_concurrent_iface()
303 nsdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_check_concurrent_iface()
406 sdata->vif.type = NL80211_IFTYPE_MONITOR; in ieee80211_add_virtual_monitor()
[all …]
/net/batman-adv/
Dtvlv.c66 batadv_tvlv_handler_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_handler_get() argument
73 if (tvlv_handler_tmp->type != type) in batadv_tvlv_handler_get()
125 batadv_tvlv_container_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_container_get() argument
132 if (tvlv_tmp->tvlv_hdr.type != type) in batadv_tvlv_container_get()
203 u8 type, u8 version) in batadv_tvlv_container_unregister() argument
208 tvlv = batadv_tvlv_container_get(bat_priv, type, version); in batadv_tvlv_container_unregister()
226 u8 type, u8 version, in batadv_tvlv_container_register() argument
239 tvlv_new->tvlv_hdr.type = type; in batadv_tvlv_container_register()
247 tvlv_old = batadv_tvlv_container_get(bat_priv, type, version); in batadv_tvlv_container_register()
331 tvlv_hdr->type = tvlv->tvlv_hdr.type; in batadv_tvlv_container_ogm_append()
[all …]
Dnetlink.c94 [BATADV_ATTR_VERSION] = { .type = NLA_STRING },
95 [BATADV_ATTR_ALGO_NAME] = { .type = NLA_STRING },
96 [BATADV_ATTR_MESH_IFINDEX] = { .type = NLA_U32 },
97 [BATADV_ATTR_MESH_IFNAME] = { .type = NLA_STRING },
99 [BATADV_ATTR_HARD_IFINDEX] = { .type = NLA_U32 },
100 [BATADV_ATTR_HARD_IFNAME] = { .type = NLA_STRING },
103 [BATADV_ATTR_TPMETER_RESULT] = { .type = NLA_U8 },
104 [BATADV_ATTR_TPMETER_TEST_TIME] = { .type = NLA_U32 },
105 [BATADV_ATTR_TPMETER_BYTES] = { .type = NLA_U64 },
106 [BATADV_ATTR_TPMETER_COOKIE] = { .type = NLA_U32 },
[all …]
/net/ipv4/
Dicmp.c279 static bool icmpv4_mask_allow(struct net *net, int type, int code) in icmpv4_mask_allow() argument
281 if (type > NR_ICMP_TYPES) in icmpv4_mask_allow()
285 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) in icmpv4_mask_allow()
289 if (!((1 << type) & net->ipv4.sysctl_icmp_ratemask)) in icmpv4_mask_allow()
295 static bool icmpv4_global_allow(struct net *net, int type, int code) in icmpv4_global_allow() argument
297 if (icmpv4_mask_allow(net, type, code)) in icmpv4_global_allow()
311 struct flowi4 *fl4, int type, int code) in icmpv4_xrlim_allow() argument
318 if (icmpv4_mask_allow(net, type, code)) in icmpv4_xrlim_allow()
337 void icmp_out_count(struct net *net, unsigned char type) in icmp_out_count() argument
339 ICMPMSGOUT_INC_STATS(net, type); in icmp_out_count()
[all …]
Dmetrics.c21 int type = nla_type(nla); in ip_metrics_convert() local
24 if (!type) in ip_metrics_convert()
26 if (type > RTAX_MAX) { in ip_metrics_convert()
31 if (type == RTAX_CC_ALGO) { in ip_metrics_convert()
48 if (type == RTAX_ADVMSS && val > 65535 - 40) in ip_metrics_convert()
50 if (type == RTAX_MTU && val > 65535 - 15) in ip_metrics_convert()
52 if (type == RTAX_HOPLIMIT && val > 255) in ip_metrics_convert()
54 if (type == RTAX_FEATURES && (val & ~RTAX_FEATURE_MASK)) { in ip_metrics_convert()
58 metrics[type - 1] = val; in ip_metrics_convert()
/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.c29 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_page_channel()
46 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_get_params()
62 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_set_params()
78 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_key()
93 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_key()
108 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_dev()
122 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_dev()
138 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_devkey()
154 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_devkey()
169 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_seclevel()
[all …]

12345678910>>...28