Home
last modified time | relevance | path

Searched +full:c +full:- +full:family +full:- +full:name (Results 1 – 25 of 1025) sorted by relevance

12345678910>>...41

/linux-6.12.1/Documentation/userspace-api/netlink/
Dc-code-gen.rst1 .. SPDX-License-Identifier: BSD-3-Clause
4 Netlink spec C code generation
8 C code (uAPI, policies etc.). It also defines the additional properties
9 allowed in older families by the ``genetlink-c`` protocol level,
12 For brevity this document refers to ``name`` properties of various
14 of ``name`` in an attribute, and ``$family`` is the name of the
15 family (the global ``name`` property).
17 The upper case is used to denote literal values, e.g. ``$family-CMD``
18 means the concatenation of ``$family``, a dash character, and the literal
22 and with dashes (``-``) replaced by underscores (``_``).
[all …]
Dspecs.rst1 .. SPDX-License-Identifier: BSD-3-Clause
10 hand written Netlink code for each new family, command, attribute.
12 or C header file, making it easy to use in languages which can't include
17 - the C uAPI header
18- documentation of the protocol as a ReST file - see :ref:`Documentation/networking/netlink_spec/i…
19 - policy tables for input attribute validation
20 - operation tables
25 See :doc:`intro-specs` for a practical starting guide.
28 ``((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)``
40 - ``genetlink`` - most streamlined, should be used by all new families
[all …]
/linux-6.12.1/net/netfilter/ipset/
Dip_set_core.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu>
4 * Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@netfilter.org>
57 rcu_dereference_protected((inst)->ip_set_list, \
60 (inst)->is_deleted)
64 rcu_dereference_raw((inst)->ip_set_list)[id]
88 find_set_type(const char *name, u8 family, u8 revision) in find_set_type() argument
94 if (STRNCMP(type->name, name) && in find_set_type()
95 (type->family == family || in find_set_type()
96 type->family == NFPROTO_UNSPEC) && in find_set_type()
[all …]
/linux-6.12.1/Documentation/netlink/specs/
Dmptcp_pm.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 name: mptcp_pm
4 protocol: genetlink-legacy
7 c-family-name: mptcp-pm-name
8 c-version-name: mptcp-pm-ver
9 max-by-define: true
10 kernel-policy: per-op
11 cmd-cnt-name: --mptcp-pm-cmd-after-last
14 -
16 name: event-type
[all …]
/linux-6.12.1/drivers/w1/
Dw1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2004 Evgeniy Polyakov <zbr@ioremap.net>
42 * on a static 1-wire bus. Memory is not allocated based on this number, just
63 return -ENODEV; in w1_master_probe()
70 dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name); in w1_master_release()
79 dev_dbg(dev, "%s: Releasing %s [%p]\n", __func__, sl->name, sl); in w1_slave_release()
81 w1_family_put(sl->family); in w1_slave_release()
82 sl->master->slave_count--; in w1_slave_release()
89 return sprintf(buf, "%s\n", sl->name); in name_show()
91 static DEVICE_ATTR_RO(name);
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dsockmap_helpers.h29 #define take_fd(fd) __get_and_null(fd, -EBADF)
51 if (__ret == -1) \
59 if (__ret == -1) \
67 if (__ret == -1) \
75 if (__ret == -1) \
83 if (__ret == -1) \
88 #define xgetsockopt(fd, level, name, val, len) \ argument
90 int __ret = getsockopt((fd), (level), (name), (val), (len)); \
91 if (__ret == -1) \
92 FAIL_ERRNO("getsockopt(" #name ")"); \
[all …]
Dsk_assign.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2018 Facebook
3 // Copyright (c) 2019 Cloudflare
4 // Copyright (c) 2020 Isovalent, Inc.
37 tc = popen("tc -V", "r"); in configure_stack()
58 if (CHECK_FAIL(system("ip -6 route add local default dev lo"))) in configure_stack()
65 "direct-action object-file", prog, in configure_stack()
69 "run with -vv for more info\n")) in configure_stack()
87 port = ((struct sockaddr_in *)&ss)->sin_port; in get_port()
90 port = ((struct sockaddr_in6 *)&ss)->sin6_port; in get_port()
[all …]
Dsockmap_listen.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2020 Cloudflare
6 * 1. BPF map operations - bpf_map_{update,lookup delete}_elem
7 * 2. BPF redirect helpers - bpf_{sk,msg}_redirect_map
8 * 3. BPF reuseport helper - bpf_sk_select_reuseport
35 int family, int sotype, int mapfd) in test_insert_invalid() argument
41 value = -1; in test_insert_invalid()
53 int family, int sotype, int mapfd) in test_insert_opened() argument
59 s = xsocket(family, sotype, 0); in test_insert_opened()
60 if (s == -1) in test_insert_opened()
[all …]
/linux-6.12.1/Documentation/netlink/
Dgenetlink-legacy.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dgenetlink-c.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dnetlink-raw.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
24 name:
25 description: Name of the netlink family.
31 enum: [ netlink-raw ] # Trim
[all …]
/linux-6.12.1/tools/testing/selftests/net/netfilter/
Dnft_nat.sh11 checktool "nft --version" "run test without nft tool"
12 checktool "socat -h" "run test without socat"
20 rm -f "$INFILE" "$OUTFILE"
32 if ! ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1;then
36 ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns2"
38 ip -net "$ns0" link set veth0 up
39 ip -net "$ns0" addr add 10.0.1.1/24 dev veth0
40 ip -net "$ns0" addr add dead:1::1/64 dev veth0 nodad
42 ip -net "$ns0" link set veth1 up
43 ip -net "$ns0" addr add 10.0.2.1/24 dev veth1
[all …]
/linux-6.12.1/tools/net/ynl/lib/
Dnlspec.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
26 family back reference to the full family
28 name name of the entity as listed in the spec (optional)
29 ident_name name which can be safely used as identifier in code (optional)
31 def __init__(self, family, yaml): argument
33 self.family = family
35 if 'name' in self.yaml:
36 self.name = self.yaml['name']
37 self.ident_name = self.name.replace('-', '_')
40 family.add_unresolved(self)
[all …]
/linux-6.12.1/drivers/soc/renesas/
Drenesas-soc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2014-2016 Glider bvba
16 const char name[16]; member
21 .name = "R-Car Gen1",
26 .name = "R-Car Gen2",
31 .name = "R-Car Gen3",
36 .name = "R-Car Gen4",
40 .name = "R-Mobile",
45 .name = "RZ/A1",
49 .name = "RZ/A2",
[all …]
/linux-6.12.1/net/netfilter/
Dxt_recent.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2006 Patrick McHardy <kaber@trash.net>
4 * Copyright © CC Computer Consultants GmbH, 2007 - 2008
10 * Copyright 2002-2003, Stephen Frost, 2.5.x port by laforge@netfilter.org
38 MODULE_DESCRIPTION("Xtables: \"recently-seen\" host matching");
70 u_int16_t family; member
79 char name[XT_RECENT_NAME_LEN]; member
113 return jhash_1word((__force u32)addr->ip, hash_rnd) & in recent_entry_hash4()
114 (ip_list_hash_size - 1); in recent_entry_hash4()
119 return jhash2((u32 *)addr->ip6, ARRAY_SIZE(addr->ip6), hash_rnd) & in recent_entry_hash6()
[all …]
Dxt_connmark.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * xt_connmark - Netfilter module to operate on connection marks
5 * Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com>
7 * Copyright © CC Computer Consultants GmbH, 2007 - 2008
39 switch (info->mode) { in connmark_tg_shift()
41 oldmark = READ_ONCE(ct->mark); in connmark_tg_shift()
42 newmark = (oldmark & ~info->ctmask) ^ info->ctmark; in connmark_tg_shift()
43 if (info->shift_dir == D_SHIFT_RIGHT) in connmark_tg_shift()
44 newmark >>= info->shift_bits; in connmark_tg_shift()
46 newmark <<= info->shift_bits; in connmark_tg_shift()
[all …]
Dxt_socket.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2007-2008 BalaBit IT Ltd.
40 * - match: if there's a fully established connection matching the
43 * - match: if there's a non-zero bound listener (possibly with a
44 * non-local address) We don't accept zero-bound listeners, since
53 struct sock *sk = skb->sk; in socket_match()
68 wildcard = (!(info->flags & XT_SOCKET_NOWILDCARD) && in socket_match()
70 inet_sk(sk)->inet_rcv_saddr == 0); in socket_match()
72 /* Ignore non-transparent sockets, in socket_match()
75 if (info->flags & XT_SOCKET_TRANSPARENT) in socket_match()
[all …]
Dnfnetlink_hook.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2021 Red Hat GmbH
30 .len = IFNAMSIZ - 1 },
40 struct netlink_dump_control *c) in nf_netlink_dump_start_rcu() argument
45 return -EINVAL; in nf_netlink_dump_start_rcu()
48 err = netlink_dump_start(nlsk, skb, nlh, c); in nf_netlink_dump_start_rcu()
93 return -EMSGSIZE; in nfnl_hook_put_bpf_prog_info()
99 ret = nla_put_be32(nlskb, NFNLA_HOOK_BPF_ID, htonl(prog->aux->id)); in nfnl_hook_put_bpf_prog_info()
109 return -EMSGSIZE; in nfnl_hook_put_bpf_prog_info()
117 struct net *net = sock_net(nlskb->sk); in nfnl_hook_put_nft_chain_info()
[all …]
Dxt_LOG.c1 // SPDX-License-Identifier: GPL-2.0-only
6 /* (C) 1999-2001 Paul `Rusty' Russell
7 * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org>
31 const struct xt_log_info *loginfo = par->targinfo; in log_tg()
36 li.u.log.level = loginfo->level; in log_tg()
37 li.u.log.logflags = loginfo->logflags; in log_tg()
40 xt_out(par), &li, "%s", loginfo->prefix); in log_tg()
46 const struct xt_log_info *loginfo = par->targinfo; in log_tg_check()
49 if (par->family != NFPROTO_IPV4 && par->family != NFPROTO_IPV6) in log_tg_check()
50 return -EINVAL; in log_tg_check()
[all …]
Dxt_CT.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2010 Patrick McHardy <kaber@trash.net>
23 if (skb->_nfct != 0) in xt_ct_target()
27 refcount_inc(&ct->ct_general.use); in xt_ct_target()
39 const struct xt_ct_target_info *info = par->targinfo; in xt_ct_target_v0()
40 struct nf_conn *ct = info->ct; in xt_ct_target_v0()
48 const struct xt_ct_target_info_v1 *info = par->targinfo; in xt_ct_target_v1()
49 struct nf_conn *ct = info->ct; in xt_ct_target_v1()
56 if (par->family == NFPROTO_IPV4) { in xt_ct_find_proto()
57 const struct ipt_entry *e = par->entryinfo; in xt_ct_find_proto()
[all …]
/linux-6.12.1/tools/net/ynl/
Dynl-gen-c.py2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
16 def c_upper(name): argument
17 return name.upper().replace('-', '_')
20 def c_lower(name): argument
21 return name.lower().replace('-', '_')
24 def limit_to_number(name): argument
26 Turn a string limit like u32-max or s64-min into its numerical value
28 if name[0] == 'u' and name.endswith('-min'):
30 width = int(name[1:-4])
31 if name[0] == 's':
[all …]
/linux-6.12.1/drivers/dma/ti/
Dk3-psil.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
15 #include "k3-psil-priv.h"
21 { .family = "AM65X", .data = &am654_ep_map },
22 { .family = "J721E", .data = &j721e_ep_map },
23 { .family = "J7200", .data = &j7200_ep_map },
24 { .family = "AM64X", .data = &am64_ep_map },
25 { .family = "J721S2", .data = &j721s2_ep_map },
26 { .family = "AM62X", .data = &am62_ep_map },
27 { .family = "AM62AX", .data = &am62a_ep_map },
[all …]
/linux-6.12.1/security/apparmor/include/
Dnet.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * Copyright (C) 1998-2008 Novell/SUSE
8 * Copyright 2009-2017 Canonical Ltd.
56 return sk->sk_security + apparmor_blob_sizes.lbs_sock; in aa_sock()
59 #define DEFINE_AUDIT_NET(NAME, OP, SK, F, T, P) \ argument
60 struct lsm_network_audit NAME ## _net = { .sk = (SK), \
61 .family = (F)}; \
62 DEFINE_AUDIT_DATA(NAME, \
67 NAME.common.u.net = &(NAME ## _net); \
68 NAME.net.type = (T); \
[all …]
/linux-6.12.1/net/netlink/
Dgenetlink.c1 // SPDX-License-Identifier: GPL-2.0
3 * NETLINK Generic Netlink Family
57 static void genl_op_lock(const struct genl_family *family) in genl_op_lock() argument
59 if (!family->parallel_ops) in genl_op_lock()
63 static void genl_op_unlock(const struct genl_family *family) in genl_op_unlock() argument
65 if (!family->parallel_ops) in genl_op_unlock()
77 * Bit 1 is marked as already used since the drop-monitor code
82 * and the code no longer marks pre-reserved IDs as used.
84 * also abused this API and relied on family == group ID, we
85 * cater to that by giving it a static family and group ID.
[all …]
/linux-6.12.1/security/tomoyo/
Dnetwork.c1 // SPDX-License-Identifier: GPL-2.0
3 * security/tomoyo/network.c
5 * Copyright (C) 2005-2011 NTT DATA CORPORATION
43 * tomoyo_parse_ipaddr_union - Parse an IP address.
53 u8 * const min = ptr->ip[0].in6_u.u6_addr8; in tomoyo_parse_ipaddr_union()
54 u8 * const max = ptr->ip[1].in6_u.u6_addr8; in tomoyo_parse_ipaddr_union()
59 in4_pton(address, -1, min, '-', &end) > 0) { in tomoyo_parse_ipaddr_union()
60 ptr->is_ipv6 = false; in tomoyo_parse_ipaddr_union()
62 ptr->ip[1].s6_addr32[0] = ptr->ip[0].s6_addr32[0]; in tomoyo_parse_ipaddr_union()
63 else if (*end++ != '-' || in tomoyo_parse_ipaddr_union()
[all …]

12345678910>>...41