/freebsd/sys/netlink/ |
H A D | netlink_message_writer.h | 86 nl_writer_unicast(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in nl_writer_unicast() 93 nl_writer_group(struct nl_writer *nw, size_t size, uint16_t proto, in nl_writer_group() 100 nlmsg_flush(struct nl_writer *nw) in nlmsg_flush() 106 nlmsg_ignore_limit(struct nl_writer *nw) in nlmsg_ignore_limit() 112 nlmsg_refill_buffer(struct nl_writer *nw, size_t required_size) in nlmsg_refill_buffer() 118 nlmsg_add(struct nl_writer *nw, uint32_t portid, uint32_t seq, uint16_t type, in nlmsg_add() 125 nlmsg_end(struct nl_writer *nw) in nlmsg_end() 131 nlmsg_abort(struct nl_writer *nw) in nlmsg_abort() 137 nlmsg_end_dump(struct nl_writer *nw, int error, struct nlmsghdr *hdr) in nlmsg_end_dump() 162 nlmsg_reply(struct nl_writer *nw, const struct nlmsghdr *hdr, int payload_len) in nlmsg_reply() [all …]
|
H A D | netlink_message_writer.c | 48 nlmsg_get_buf(struct nl_writer *nw, size_t len, bool waitok) in nlmsg_get_buf() 69 nl_send_one(struct nl_writer *nw) in nl_send_one() 76 _nl_writer_unicast(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in _nl_writer_unicast() 88 _nl_writer_group(struct nl_writer *nw, size_t size, uint16_t protocol, in _nl_writer_group() 102 _nlmsg_ignore_limit(struct nl_writer *nw) in _nlmsg_ignore_limit() 108 _nlmsg_flush(struct nl_writer *nw) in _nlmsg_flush() 143 _nlmsg_refill_buffer(struct nl_writer *nw, size_t required_len) in _nlmsg_refill_buffer() 203 _nlmsg_add(struct nl_writer *nw, uint32_t portid, uint32_t seq, uint16_t type, in _nlmsg_add() 234 _nlmsg_end(struct nl_writer *nw) in _nlmsg_end() 256 _nlmsg_abort(struct nl_writer *nw) in _nlmsg_abort() [all …]
|
H A D | netlink_glue.c | 113 nl_writer_unicast_stub(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in nl_writer_unicast_stub() 120 nl_writer_group_stub(struct nl_writer *nw, size_t size, uint16_t protocol, in nl_writer_group_stub() 145 nlmsg_add_stub(struct nl_writer *nw, uint32_t portid, uint32_t seq, uint16_t type, in nlmsg_add_stub() 163 nlmsg_end_dump_stub(struct nl_writer *nw, int error, struct nlmsghdr *hdr) in nlmsg_end_dump_stub() 216 nl_writer_unicast(struct nl_writer *nw, size_t size, struct nlpcb *nlp, in nl_writer_unicast() 223 nl_writer_group(struct nl_writer *nw, size_t size, uint16_t protocol, in nl_writer_group() 231 nlmsg_flush(struct nl_writer *nw) in nlmsg_flush() 236 void nlmsg_ignore_limit(struct nl_writer *nw) in nlmsg_ignore_limit() 242 nlmsg_refill_buffer(struct nl_writer *nw, size_t required_len) in nlmsg_refill_buffer() 248 nlmsg_add(struct nl_writer *nw, uint32_t portid, uint32_t seq, uint16_t type, in nlmsg_add() [all …]
|
H A D | netlink_snl_route.h | 131 snl_add_msg_attr_ip4(struct snl_writer *nw, int attrtype, const struct in_addr *addr) in snl_add_msg_attr_ip4() 137 snl_add_msg_attr_ip6(struct snl_writer *nw, int attrtype, const struct in6_addr *addr) in snl_add_msg_attr_ip6() 143 snl_add_msg_attr_ip(struct snl_writer *nw, int attrtype, const struct sockaddr *sa) in snl_add_msg_attr_ip() 160 snl_add_msg_attr_ipvia(struct snl_writer *nw, int attrtype, const struct sockaddr *sa) in snl_add_msg_attr_ipvia()
|
H A D | netlink_snl.h | 1067 snl_init_writer(struct snl_state *ss, struct snl_writer *nw) in snl_init_writer() 1083 snl_realloc_msg_buffer(struct snl_writer *nw, size_t sz) in snl_realloc_msg_buffer() 1115 snl_reserve_msg_data_raw(struct snl_writer *nw, size_t sz) in snl_reserve_msg_data_raw() 1133 snl_reserve_msg_attr_raw(struct snl_writer *nw, uint16_t nla_type, uint16_t sz) in snl_reserve_msg_attr_raw() 1150 snl_add_msg_attr(struct snl_writer *nw, int attr_type, int attr_len, const void *data) in snl_add_msg_attr() 1175 snl_add_msg_attr_raw(struct snl_writer *nw, const struct nlattr *nla_src) in snl_add_msg_attr_raw() 1185 snl_add_msg_attr_bool(struct snl_writer *nw, int attrtype, bool value) in snl_add_msg_attr_bool() 1191 snl_add_msg_attr_u8(struct snl_writer *nw, int attrtype, uint8_t value) in snl_add_msg_attr_u8() 1197 snl_add_msg_attr_u16(struct snl_writer *nw, int attrtype, uint16_t value) in snl_add_msg_attr_u16() 1203 snl_add_msg_attr_u32(struct snl_writer *nw, int attrtype, uint32_t value) in snl_add_msg_attr_u32() [all …]
|
H A D | ktest_netlink_message_writer.h | 38 nlmsg_get_buf_wrapper(struct nl_writer *nw, size_t size, bool waitok) in nlmsg_get_buf_wrapper()
|
H A D | netlink_snl_generic.h | 36 snl_create_genl_msg_request(struct snl_writer *nw, uint16_t genl_family, in snl_create_genl_msg_request() 124 struct snl_writer nw; in _snl_get_genl_family_info() local
|
H A D | netlink_io.c | 201 nl_send(struct nl_writer *nw, struct nlpcb *nlp) in nl_send() 326 struct nl_writer nw; in nl_process_nbuf() local
|
/freebsd/sys/compat/linux/ |
H A D | linux_netlink.c | 202 handle_default_out(struct nlmsghdr *hdr, struct nl_writer *nw) in handle_default_out() 216 nlmsg_copy_header(struct nlmsghdr *hdr, struct nl_writer *nw) in nlmsg_copy_header() 223 _nlmsg_copy_next_header(struct nlmsghdr *hdr, struct nl_writer *nw, int sz) in _nlmsg_copy_next_header() 234 nlmsg_copy_nla(const struct nlattr *nla_orig, struct nl_writer *nw) in nlmsg_copy_nla() 248 nlmsg_translate_ifname_nla(struct nlattr *nla, struct nl_writer *nw) in nlmsg_translate_ifname_nla() 266 struct nl_writer *nw) in nlmsg_translate_all_nla() 286 nlmsg_copy_all_nla(struct nlmsghdr *hdr, int raw_hdrlen, struct nl_writer *nw) in nlmsg_copy_all_nla() 355 struct nl_writer *nw) in rtnl_newlink_to_linux() 390 struct nl_writer *nw) in rtnl_newaddr_to_linux() 412 struct nl_writer *nw) in rtnl_newneigh_to_linux() [all …]
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_nl.c | 87 dump_addr(struct nl_writer *nw, int attr, const struct pf_addr *addr, int af) in dump_addr() 100 dump_state_peer(struct nl_writer *nw, int attr, const struct pf_state_peer *peer) in dump_state_peer() 129 dump_state_key(struct nl_writer *nw, int attr, const struct pf_state_key *key) in dump_state_key() 151 struct nl_writer *nw = npt->nw; in dump_state() local 320 struct nl_writer *nw = npt->nw; in dump_creatorid() local 433 nlattr_add_addr_wrap(struct nl_writer *nw, int attrtype, struct pf_addr_wrap *a) in nlattr_add_addr_wrap() 467 nlattr_add_rule_addr(struct nl_writer *nw, int attrtype, struct pf_rule_addr *r) in nlattr_add_rule_addr() 496 nlattr_add_mape_portset(struct nl_writer *nw, int attrtype, const struct pf_mape_portset *m) in nlattr_add_mape_portset() 557 nlattr_add_labels(struct nl_writer *nw, int attrtype, const struct pf_krule *r) in nlattr_add_labels() 587 nlattr_add_pool(struct nl_writer *nw, int attrtype, const struct pf_kpool *pool) in nlattr_add_pool() [all …]
|
/freebsd/usr.sbin/arp/ |
H A D | arp_netlink.c | 57 struct snl_writer nw; in get_link_info() local 106 struct snl_writer nw; in guess_ifindex() local 274 struct snl_writer nw; in print_entries_nl() local 332 struct snl_writer nw; in delete_nl() local 381 struct snl_writer nw; in set_nl() local
|
/freebsd/lib/libpfctl/ |
H A D | libpfctl.c | 115 struct snl_writer nw; in pfctl_do_netlink_cmd() local 406 struct snl_writer nw; in pfctl_get_status_h() local 1095 snl_add_msg_attr_addr_wrap(struct snl_writer *nw, uint32_t type, const struct pf_addr_wrap *addr) in snl_add_msg_attr_addr_wrap() 1115 snl_add_msg_attr_pool_addr(struct snl_writer *nw, uint32_t type, const struct pf_pooladdr *pa) in snl_add_msg_attr_pool_addr() 1128 snl_add_msg_attr_rule_addr(struct snl_writer *nw, uint32_t type, const struct pf_rule_addr *addr) in snl_add_msg_attr_rule_addr() 1144 snl_add_msg_attr_rule_labels(struct snl_writer *nw, uint32_t type, const char labels[PF_RULE_MAX_LA… in snl_add_msg_attr_rule_labels() 1160 snl_add_msg_attr_mape(struct snl_writer *nw, uint32_t type, const struct pf_mape_portset *me) in snl_add_msg_attr_mape() 1174 snl_add_msg_attr_rpool(struct snl_writer *nw, uint32_t type, const struct pfctl_pool *pool) in snl_add_msg_attr_rpool() 1192 snl_add_msg_attr_timeouts(struct snl_writer *nw, uint32_t type, const uint32_t *timeouts) in snl_add_msg_attr_timeouts() 1205 snl_add_msg_attr_uid(struct snl_writer *nw, uint32_t type, const struct pf_rule_uid *uid) in snl_add_msg_attr_uid() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | memmem.c | 40 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_memmem() local 49 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_memmem() local 59 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_memmem() local
|
/freebsd/lib/libc/string/ |
H A D | strstr.c | 31 uint16_t nw = n[0] << 8 | n[1], hw = h[0] << 8 | h[1]; in twobyte_strstr() local 40 uint32_t nw = (uint32_t)n[0] << 24 | n[1] << 16 | n[2] << 8; in threebyte_strstr() local 50 uint32_t nw = (uint32_t)n[0] << 24 | n[1] << 16 | n[2] << 8 | n[3]; in fourbyte_strstr() local
|
H A D | memmem.c | 31 uint16_t nw = n[0] << 8 | n[1], hw = h[0] << 8 | h[1]; in twobyte_memmem() local 41 uint32_t nw = (uint32_t)n[0] << 24 | n[1] << 16 | n[2] << 8; in threebyte_memmem() local 52 uint32_t nw = (uint32_t)n[0] << 24 | n[1] << 16 | n[2] << 8 | n[3]; in fourbyte_memmem() local
|
/freebsd/usr.sbin/ndp/ |
H A D | ndp_netlink.c | 69 struct snl_writer nw; in get_link_info() local 136 struct snl_writer nw; in guess_ifindex() local 316 struct snl_writer nw; in print_entries_nl() local 407 struct snl_writer nw; in delete_nl() local 478 struct snl_writer nw; in set_nl() local
|
/freebsd/tests/sys/netlink/ |
H A D | test_snl.c | 62 struct snl_writer nw; in ATF_TC_BODY() local 103 struct snl_writer nw; in ATF_TC_BODY() local 145 struct snl_writer nw; in ATF_TC_BODY() local 204 struct snl_writer nw; in ATF_TC_BODY() local
|
/freebsd/sbin/pflowctl/ |
H A D | pflowctl.c | 99 struct snl_writer nw; in list() local 151 struct snl_writer nw; in create() local 189 struct snl_writer nw; in del() local 322 struct snl_writer nw; in get() local 371 snl_add_msg_attr_sockaddr(struct snl_writer *nw, int attrtype, struct sockaddr_storage *s) in snl_add_msg_attr_sockaddr() 403 struct snl_writer nw; in do_set() local
|
/freebsd/sys/netlink/route/ |
H A D | iface.c | 62 struct nl_writer *nw; member 146 get_stats(struct nl_writer *nw, if_t ifp) in get_stats() 195 get_hwaddr(struct nl_writer *nw, if_t ifp) in get_hwaddr() 213 dump_sa(struct nl_writer *nw, int attr, const struct sockaddr *sa) in dump_sa() 254 dump_iface_caps(struct nl_writer *nw, struct ifnet *ifp) in dump_iface_caps() 290 dump_iface(struct nl_writer *nw, if_t ifp, const struct nlmsghdr *hdr, in dump_iface() 923 export_cache_info6(struct nl_writer *nw, const struct in6_ifaddr *ia) in export_cache_info6() 937 export_cache_info(struct nl_writer *nw, struct ifaddr *ifa) in export_cache_info() 956 dump_iface_addr(struct nl_writer *nw, if_t ifp, struct ifaddr *ifa, in dump_iface_addr() 1367 struct nl_writer nw; in rtnl_handle_ifaddr() local [all …]
|
H A D | rt.c | 124 dump_rc_nhop_gw(struct nl_writer *nw, const struct nhop_object *nh) in dump_rc_nhop_gw() 162 dump_rc_nhop_mtu(struct nl_writer *nw, const struct nhop_object *nh) in dump_rc_nhop_mtu() 179 dump_rc_nhg(struct nl_writer *nw, const struct nhgrp_object *nhg, struct rtmsg *rtm) in dump_rc_nhg() 221 dump_rc_nhop(struct nl_writer *nw, const struct route_nhop_data *rnd, struct rtmsg *rtm) in dump_rc_nhop() 269 struct nl_writer *nw) in dump_px() 353 struct nl_writer nw; in report_operation() local 542 struct nl_writer *nw; member 677 struct nlmsghdr *hdr, struct nl_writer *nw) in handle_rtm_dump() 1060 struct nl_writer nw; in rtnl_handle_route_event() local
|
/freebsd/lib/libifconfig/ |
H A D | libifconfig_carp.c | 73 struct snl_writer nw; in _ifconfig_carp_get() local 150 struct snl_writer nw; in ifconfig_carp_set_info() local
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_shift.c | 106 int i, nw; in bn_lshift_fixed_top() local 175 int i, top, nw; bn_rshift_fixed_top() local [all...] |
/freebsd/contrib/elftoolchain/libelftc/ |
H A D | elftc_copyfile.c | 54 ssize_t nr, nw; in elftc_copyfile() local
|
/freebsd/sys/tests/ |
H A D | ktest.c | 82 create_reply(struct nl_writer *nw, struct nlmsghdr *hdr, int cmd) in create_reply() 99 struct nl_writer *nw = npt->nw; in dump_mod_test() local 312 struct nl_writer *nw = ctx->npt->nw; in ktest_add_msg_meta() local
|
/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | tap.c | 136 ssize_t nw; in tap_send() local
|