mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
![]() I'm trying to generate Rust bindings for netlink using the yaml spec.
It looks like there's a typo in conntrack spec: attribute set conntrack-attrs
defines attributes "counters-{orig,reply}" (plural), while get operation
references "counter-{orig,reply}" (singular). The latter should be fixed, as it
denotes multiple counters (packet and byte). The corresonding C define is
CTA_COUNTERS_ORIG.
Also, dump request references "nfgen-family" attribute, which neither exists in
conntrack-attrs attrset nor ctattr_type enum. There's member of nfgenmsg struct
with the same name, which is where family value is actually taken from.
> static int ctnetlink_dump_exp_ct(struct net *net, struct sock *ctnl,
> struct sk_buff *skb,
> const struct nlmsghdr *nlh,
> const struct nlattr * const cda[],
> struct netlink_ext_ack *extack)
> {
> int err;
> struct nfgenmsg *nfmsg = nlmsg_data(nlh);
> u_int8_t u3 = nfmsg->nfgen_family;
^^^^^^^^^^^^
Signed-off-by: Remy D. Farley <one-d-wide@protonmail.com>
Fixes:
|
||
---|---|---|
.. | ||
conntrack.yaml | ||
devlink.yaml | ||
dpll.yaml | ||
ethtool.yaml | ||
fou.yaml | ||
handshake.yaml | ||
lockd.yaml | ||
mptcp_pm.yaml | ||
net_shaper.yaml | ||
netdev.yaml | ||
nfsd.yaml | ||
nftables.yaml | ||
nl80211.yaml | ||
nlctrl.yaml | ||
ovpn.yaml | ||
ovs_datapath.yaml | ||
ovs_flow.yaml | ||
ovs_vport.yaml | ||
rt-addr.yaml | ||
rt-link.yaml | ||
rt-neigh.yaml | ||
rt-route.yaml | ||
rt-rule.yaml | ||
tc.yaml | ||
tcp_metrics.yaml | ||
team.yaml |