/freebsd/tests/atf_python/sys/netlink/ |
H A D | attrs.py | 12 def __init__(self, nla_type, data): argument 13 if isinstance(nla_type, Enum): 14 self._nla_type = nla_type.value 15 self._enum = nla_type 17 self._nla_type = nla_type 23 def nla_type(self): member in NlAttr 37 type_str = "nla#{}".format(self.nla_type) 40 prepend, self.nla_len, type_str, self.nla_type, self._print_attr_value() 48 nla_len, nla_type = struct.unpack("@HH", data[:4]) 56 nla_len, nla_type = struct.unpack("@HH", data[:4]) [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]) 556 "Error validating attr {}: empty data".format(nla_type) 562 nla_type, family 572 nla_type, expected_len, data_len [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/sys/netlink/ |
H A D | netlink_message_parser.c | 84 MPASS(nla->nla_type == NLMSGERR_ATTR_COOKIE); in nlmsg_report_cookie() 94 nla->nla_type = NLMSGERR_ATTR_COOKIE; in nlmsg_report_cookie_u32() 138 nla, nla->nla_type, nla->nla_len, len); in nl_parse_attrs_raw() 142 nla, nla->nla_type, nla->nla_len); in nl_parse_attrs_raw() 148 s = search_states(ps, pslen, nla->nla_type & NLA_TYPE_MASK); in nl_parse_attrs_raw() 163 NL_LOG(LOG_DEBUG3, "ignoring attr %u", nla->nla_type); in nl_parse_attrs_raw() 169 nla->nla_type, nla->nla_len); 181 uint16_t nla_type; in nl_get_attrs_bmask_raw() 188 nla_type = nla->nla_type 143 int nla_type = nla->nla_type & NLA_TYPE_MASK; nl_parse_attrs_raw() local 179 int nla_type = nla->nla_type & NLA_TYPE_MASK; nl_get_attrs_bmask_raw() local 189 nl_has_attr(const struct nlattr_bmask * bm,unsigned int nla_type) nl_has_attr() argument [all...] |
H A D | netlink_message_writer.h | 194 nlattr_add_nested(struct nl_writer *nw, uint16_t nla_type) in nlattr_add_nested() argument 200 nla->nla_type = nla_type; in nlattr_add_nested() 205 _nlmsg_reserve_attr(struct nl_writer *nw, uint16_t nla_type, uint16_t sz) in _nlmsg_reserve_attr() argument 212 nla->nla_type = nla_type; in _nlmsg_reserve_attr() 227 return (nlattr_add(nw, nla_src->nla_type, in nlattr_add_raw()
|
H A D | netlink_snl.h | 61 #define NLA_TYPE(_nla) ((_nla)->nla_type & 0x3FFF) 465 int nla_type = nla->nla_type & NLA_TYPE_MASK; in snl_parse_attrs_raw() local 466 const struct snl_attr_parser *s = find_parser(ps, pslen, nla_type); in snl_parse_attrs_raw() 1122 snl_reserve_msg_attr_raw(struct snl_writer *nw, uint16_t nla_type, uint16_t sz) in snl_reserve_msg_attr_raw() argument 1130 nla->nla_type = nla_type; in snl_reserve_msg_attr_raw() 1151 nla->nla_type = attr_type; in snl_add_msg_attr() 1170 return (snl_add_msg_attr(nw, nla_src->nla_type, attr_len, (const void *)(nla_src + 1))); in snl_add_msg_attr_raw() 1260 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 | 233 uint16_t nla_type; /* Attribute type */ member
|
H A D | netlink_domain.c | 636 .nla.nla_type = NLMSGINFO_ATTR_PROCESS_ID, in nl_createcontrol() 641 .nla.nla_type = NLMSGINFO_ATTR_PORT_ID, in nl_createcontrol()
|
H A D | netlink_message_parser.h | 167 bool nl_has_attr(const struct nlattr_bmask *bm, uint16_t nla_type);
|
H A D | netlink_message_writer.c | 387 nla->nla_type = attr_type; in nlattr_add()
|
/freebsd/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() 734 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/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/tests/sys/netlink/ |
H A D | netlink_socket.c | 177 ATF_REQUIRE(nlc[0].nla.nla_type == NLMSGINFO_ATTR_PROCESS_ID); in cmsg_check() 181 ATF_REQUIRE(nlc[1].nla.nla_type == NLMSGINFO_ATTR_PORT_ID); in cmsg_check() 266 if (nla->nla_type == RTA_DST) in nla_RTA_DST() 294 .rta_dst.nla_type = RTA_DST, in ATF_TC_BODY() 298 .rta_oif.nla_type = RTA_OIF, in ATF_TC_BODY()
|
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/sys/compat/linux/ |
H A D | linux_netlink.c | 135 nla->nla_type, nla->nla_len, attrs_len); in rtnl_route_from_linux() 273 switch (nla->nla_type) { in nlmsg_translate_all_nla() 296 RT_LOG(LOG_DEBUG3, "reading attr %d len %d", nla->nla_type, nla->nla_len); in nlmsg_copy_all_nla()
|
/freebsd/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/usr.bin/netstat/ |
H A D | route_netlink.c | 299 .nla_fibnum.nla_type = RTA_TABLE, in p_rtable_netlink()
|
/freebsd/sys/rpc/ |
H A D | clnt_nl.c | 195 .gattr.nla_type = RPCNL_REQUEST_GROUP, in client_nl_create()
|
/freebsd/contrib/libfido2/fuzz/ |
H A D | functions.txt | 731 netlink.c:nla_type 1 0 100.00% 3 0 100.00%
|