| /freebsd-14.2/tests/atf_python/sys/netlink/ |
| H A D | attrs.py | 12 def __init__(self, nla_type, data): argument 13 if isinstance(nla_type, Enum): 15 self._enum = nla_type 17 self._nla_type = nla_type 23 def nla_type(self): member in NlAttr 84 def get_nla(self, nla_type): argument 134 return cls(nla_type, val) 161 return cls(nla_type, val) 188 return cls(nla_type, val) 215 return cls(nla_type, val) [all …]
|
| H A D | message.py | 60 def _get_nla(self, nla_list, nla_type): argument 61 nla_type_raw = enum_or_int(nla_type) 63 if nla.nla_type == nla_type_raw: 67 def get_nla(self, nla_type): argument 68 return self._get_nla(self.nla_list, nla_type) 212 nla_type = raw_nla_type & 0x3FFF 213 val = self.parse_child(data[off + 4 : off + nla_len], nla_type, attr_map) 229 nla_type = raw_nla_type & 0x3FFF 230 if nla_type in attr_map: 231 v = attr_map[nla_type]
|
| H A D | netlink_route.py | 526 def __init__(self, nla_type, data): argument 527 super().__init__(nla_type, data) 532 nla_len, nla_type = struct.unpack("@HH", data[:4]) 536 "Error validating attr {}: wrong size".format(nla_type) 545 def __init__(self, nla_type, family, addr: str): argument 546 super().__init__(nla_type, b"") 552 nla_len, nla_type = struct.unpack("@HH", data[:4]) 562 nla_type, family 572 nla_type, expected_len, data_len 585 nla_len, nla_type, family = struct.unpack("@HHB", data[:5]) [all …]
|
| H A D | netlink_generic.py | 242 def __init__(self, nla_type, val): argument 244 super().__init__(nla_type, b"") 256 nla_len, nla_type = struct.unpack("@HH", data[: NlAttr.HDR_LEN]) 261 nla_len, nla_type = struct.unpack("@HH", data[: NlAttr.HDR_LEN]) 263 return cls(nla_type, val)
|
| /freebsd-14.2/sys/netlink/ |
| H A D | netlink_message_parser.c | 94 nla->nla_type = NLMSGERR_ATTR_COOKIE; in nlmsg_report_cookie_u32() 137 nla, nla->nla_type, nla->nla_len); in nl_parse_attrs_raw() 143 int nla_type = nla->nla_type & NLA_TYPE_MASK; in nl_parse_attrs_raw() local 162 nla->nla_type, nla->nla_len); in nl_parse_attrs_raw() 179 int nla_type = nla->nla_type & NLA_TYPE_MASK; in nl_get_attrs_bmask_raw() local 180 if (nla_type < NL_ATTR_BMASK_SIZE) in nl_get_attrs_bmask_raw() 184 nla_type); in nl_get_attrs_bmask_raw() 191 MPASS(nla_type < NL_ATTR_BMASK_SIZE); in nl_has_attr() 201 nla->nla_type, NLA_DATA_LEN(nla)); in nlattr_get_flag() 409 nla->nla_type, ifindex); in nlattr_get_ifp_internal() [all …]
|
| H A D | netlink_message_writer.h | 236 nlattr_add_nested(struct nl_writer *nw, uint16_t nla_type) in nlattr_add_nested() argument 242 nla->nla_type = nla_type; in nlattr_add_nested() 247 _nlmsg_reserve_attr(struct nl_writer *nw, uint16_t nla_type, uint16_t sz) in _nlmsg_reserve_attr() argument 254 nla->nla_type = nla_type; in _nlmsg_reserve_attr() 274 nla->nla_type = attr_type; in nlattr_add() 293 return (nlattr_add(nw, nla_src->nla_type, attr_len, (const void *)(nla_src + 1))); in nlattr_add_raw()
|
| H A D | netlink_snl.h | 60 #define NLA_TYPE(_nla) ((_nla)->nla_type & 0x3FFF) 456 int nla_type = nla->nla_type & NLA_TYPE_MASK; in snl_parse_attrs_raw() local 457 const struct snl_attr_parser *s = find_parser(ps, pslen, nla_type); in snl_parse_attrs_raw() 1090 _snl_reserve_msg_attr(struct snl_writer *nw, uint16_t nla_type, uint16_t sz) in _snl_reserve_msg_attr() argument 1097 nla->nla_type = nla_type; in _snl_reserve_msg_attr() 1117 nla->nla_type = attr_type; in snl_add_msg_attr() 1136 return (snl_add_msg_attr(nw, nla_src->nla_type, attr_len, (const void *)(nla_src + 1))); in snl_add_msg_attr_raw() 1220 nla->nla_type = attrtype; in snl_add_msg_attr_nested()
|
| H A D | netlink_ctl.h | 54 #define NLA_TYPE(_nla) ((_nla)->nla_type & 0x3FFF)
|
| H A D | netlink.h | 237 uint16_t nla_type; /* Attribute type */ member
|
| H A D | netlink_io.c | 142 .nla.nla_type = NLMSGINFO_ATTR_PROCESS_ID, in nl_add_msg_info() 147 .nla.nla_type = NLMSGINFO_ATTR_PORT_ID, in nl_add_msg_info()
|
| H A D | netlink_message_parser.h | 163 bool nl_has_attr(const struct nlattr_bmask *bm, unsigned int nla_type);
|
| /freebsd-14.2/sys/netlink/route/ |
| H A D | iface_drivers.c | 131 nla_cookie->nla_type = NLMSGERR_ATTR_COOKIE; in _nl_store_ifp_cookie() 135 nla->nla_type = IFLA_NEW_IFINDEX; in _nl_store_ifp_cookie() 140 nla->nla_type = IFLA_IFNAME; in _nl_store_ifp_cookie()
|
| H A D | rt.c | 169 nla->nla_type = NL_RTA_METRICS; in dump_rc_nhop_mtu() 172 nla->nla_type = NL_RTAX_MTU; in dump_rc_nhop_mtu()
|
| H A D | iface.c | 154 nla->nla_type = IFLA_STATS64; in get_stats() 732 nla->nla_type, NLA_DATA_LEN(nla)); in nlattr_get_cinfo()
|
| H A D | nexthop.c | 417 nla->nla_type = NHA_GROUP; in dump_nhgrp()
|
| /freebsd-14.2/contrib/libfido2/src/ |
| H A D | netlink.c | 159 nla_type(const nlamsgbuf_t *a) in nla_type() function 161 return (a->u.nla.nla_type); in nla_type() 282 a.u.nla.nla_type = type; in nlmsg_setattr() 455 switch (nla_type(a)) { in parse_mcastgrp() 474 fido_log_debug("%s: ignoring nla 0x%x", __func__, nla_type(a)); in parse_mcastgrp() 490 switch (nla_type(a)) { in parse_family() 503 fido_log_debug("%s: ignoring nla 0x%x", __func__, nla_type(a)); in parse_family() 551 if (t->found || nla_type(a) != NFC_ATTR_TARGET_INDEX) { in parse_target() 552 fido_log_debug("%s: ignoring nla 0x%x", __func__, nla_type(a)); in parse_target() 665 if (nla_type(a) != NFC_ATTR_DEVICE_INDEX) { in parse_nfc_event() [all …]
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_netlink.c | 117 nla->nla_type, nla->nla_len, attrs_len); in rtnl_route_from_linux() 253 switch (nla->nla_type) { in nlmsg_translate_all_nla() 276 RT_LOG(LOG_DEBUG3, "reading attr %d len %d", nla->nla_type, nla->nla_len); in nlmsg_copy_all_nla()
|
| /freebsd-14.2/tests/sys/netlink/ |
| H A D | test_rtnl_iface.py | 119 nla_map = {n.nla_type: n for n in nla_list} 273 nla_map = {n.nla_type: n for n in nla_list}
|
| /freebsd-14.2/contrib/wpa/src/drivers/ |
| H A D | driver_nl80211_capa.c | 115 switch (nla_type(nl_mode)) { in wiphy_info_supported_iftypes() 181 int ift = nla_type(nl_mode); in wiphy_info_iface_comb_process() 368 switch (nla_type(nl_iftype)) { in get_iface_akm_suites_info() 404 nl80211_iftype_str(nla_type(nl_iftype)), in get_iface_akm_suites_info() 1773 ac = nl_wmm->nla_type; in phy_info_freq() 2055 if (phy_info->last_mode != nl_band->nla_type) { in phy_info_band() 2084 phy_info->last_mode = nl_band->nla_type; in phy_info_band()
|
| /freebsd-14.2/usr.bin/netstat/ |
| H A D | route_netlink.c | 301 .nla_fibnum.nla_type = RTA_TABLE, in p_rtable_netlink()
|
| /freebsd-14.2/contrib/libfido2/fuzz/ |
| H A D | functions.txt | 731 netlink.c:nla_type 1 0 100.00% 3 0 100.00%
|