/net/tipc/ |
D | netlink_compat.c | 68 int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs); 74 struct sk_buff *skb, struct tipc_nl_compat_msg *msg); 181 struct tipc_nl_compat_msg *msg, in __tipc_nl_compat_dumpit() argument 198 buf->sk = msg->dst_sk; in __tipc_nl_compat_dumpit() 199 if (__tipc_dump_start(&cb, msg->net)) { in __tipc_nl_compat_dumpit() 216 err = (*cmd->format)(msg, attrs); in __tipc_nl_compat_dumpit() 220 if (tipc_skb_tailroom(msg->rep) <= 1) { in __tipc_nl_compat_dumpit() 241 if ((TIPC_SKB_MAX - msg->rep->len) <= 1) { in __tipc_nl_compat_dumpit() 242 char *tail = skb_tail_pointer(msg->rep); in __tipc_nl_compat_dumpit() 256 struct tipc_nl_compat_msg *msg) in tipc_nl_compat_dumpit() argument [all …]
|
D | msg.c | 95 struct tipc_msg *msg; in tipc_msg_create() local 102 msg = buf_msg(buf); in tipc_msg_create() 103 tipc_msg_init(onode, msg, user, type, hdr_sz, dnode); in tipc_msg_create() 104 msg_set_size(msg, hdr_sz + data_sz); in tipc_msg_create() 105 msg_set_origport(msg, oport); in tipc_msg_create() 106 msg_set_destport(msg, dport); in tipc_msg_create() 107 msg_set_errcode(msg, errcode); in tipc_msg_create() 109 msg_set_orignode(msg, onode); in tipc_msg_create() 110 msg_set_destnode(msg, dnode); in tipc_msg_create() 127 struct tipc_msg *msg; in tipc_buf_append() local [all …]
|
D | net.c | 179 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() argument 187 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_add_net() 192 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net() 196 if (nla_put_u32(msg->skb, TIPC_NLA_NET_ID, tn->net_id)) in __tipc_nl_add_net() 198 if (nla_put_u64_64bit(msg->skb, TIPC_NLA_NET_NODEID, *w0, 0)) in __tipc_nl_add_net() 200 if (nla_put_u64_64bit(msg->skb, TIPC_NLA_NET_NODEID_W1, *w1, 0)) in __tipc_nl_add_net() 202 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net() 203 genlmsg_end(msg->skb, hdr); in __tipc_nl_add_net() 208 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net() 210 genlmsg_cancel(msg->skb, hdr); in __tipc_nl_add_net() [all …]
|
D | bearer.c | 742 static int __tipc_nl_add_bearer(struct tipc_nl_msg *msg, in __tipc_nl_add_bearer() argument 749 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_add_bearer() 754 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_BEARER); in __tipc_nl_add_bearer() 758 if (nla_put_string(msg->skb, TIPC_NLA_BEARER_NAME, bearer->name)) in __tipc_nl_add_bearer() 761 prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_BEARER_PROP); in __tipc_nl_add_bearer() 764 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, bearer->priority)) in __tipc_nl_add_bearer() 766 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, bearer->tolerance)) in __tipc_nl_add_bearer() 768 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bearer->window)) in __tipc_nl_add_bearer() 771 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, bearer->mtu)) in __tipc_nl_add_bearer() 774 nla_nest_end(msg->skb, prop); in __tipc_nl_add_bearer() [all …]
|
/net/core/ |
D | skmsg.c | 11 static bool sk_msg_try_coalesce_ok(struct sk_msg *msg, int elem_first_coalesce) in sk_msg_try_coalesce_ok() argument 13 if (msg->sg.end > msg->sg.start && in sk_msg_try_coalesce_ok() 14 elem_first_coalesce < msg->sg.end) in sk_msg_try_coalesce_ok() 17 if (msg->sg.end < msg->sg.start && in sk_msg_try_coalesce_ok() 18 (elem_first_coalesce > msg->sg.start || in sk_msg_try_coalesce_ok() 19 elem_first_coalesce < msg->sg.end)) in sk_msg_try_coalesce_ok() 25 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, in sk_msg_alloc() argument 31 len -= msg->sg.size; in sk_msg_alloc() 45 i = msg->sg.end; in sk_msg_alloc() 47 sge = &msg->sg.data[i]; in sk_msg_alloc() [all …]
|
D | drop_monitor.c | 132 struct net_dm_alert_msg *msg; in reset_per_cpu_data() local 161 msg = nla_data(nla); in reset_per_cpu_data() 162 memset(msg, 0, al); in reset_per_cpu_data() 214 struct net_dm_alert_msg *msg; in trace_drop_common() local 232 msg = nla_data(nla); in trace_drop_common() 233 for (i = 0; i < msg->entries; i++) { in trace_drop_common() 234 if (!memcmp(&location, msg->points[i].pc, sizeof(void *))) { in trace_drop_common() 235 msg->points[i].count++; in trace_drop_common() 239 if (msg->entries == dm_hit_limit) in trace_drop_common() 246 memcpy(msg->points[msg->entries].pc, &location, sizeof(void *)); in trace_drop_common() [all …]
|
D | scm.c | 131 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p) in __scm_send() argument 136 for_each_cmsghdr(cmsg, msg) { in __scm_send() 147 if (!CMSG_OK(msg, cmsg)) in __scm_send() 213 int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data) in put_cmsg() argument 216 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg() 221 if (MSG_CMSG_COMPAT & msg->msg_flags) in put_cmsg() 222 return put_cmsg_compat(msg, level, type, len, data); in put_cmsg() 224 if (cm==NULL || msg->msg_controllen < sizeof(*cm)) { in put_cmsg() 225 msg->msg_flags |= MSG_CTRUNC; in put_cmsg() 228 if (msg->msg_controllen < cmlen) { in put_cmsg() [all …]
|
D | devlink.c | 453 static int devlink_nl_put_handle(struct sk_buff *msg, struct devlink *devlink) in devlink_nl_put_handle() argument 455 if (nla_put_string(msg, DEVLINK_ATTR_BUS_NAME, devlink->dev->bus->name)) in devlink_nl_put_handle() 457 if (nla_put_string(msg, DEVLINK_ATTR_DEV_NAME, dev_name(devlink->dev))) in devlink_nl_put_handle() 462 static int devlink_nl_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_fill() argument 468 hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); in devlink_nl_fill() 472 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_fill() 474 if (nla_put_u8(msg, DEVLINK_ATTR_RELOAD_FAILED, devlink->reload_failed)) in devlink_nl_fill() 477 genlmsg_end(msg, hdr); in devlink_nl_fill() 481 genlmsg_cancel(msg, hdr); in devlink_nl_fill() 487 struct sk_buff *msg; in devlink_notify() local [all …]
|
/net/sctp/ |
D | chunk.c | 35 static void sctp_datamsg_init(struct sctp_datamsg *msg) in sctp_datamsg_init() argument 37 refcount_set(&msg->refcnt, 1); in sctp_datamsg_init() 38 msg->send_failed = 0; in sctp_datamsg_init() 39 msg->send_error = 0; in sctp_datamsg_init() 40 msg->can_delay = 1; in sctp_datamsg_init() 41 msg->abandoned = 0; in sctp_datamsg_init() 42 msg->expires_at = 0; in sctp_datamsg_init() 43 INIT_LIST_HEAD(&msg->chunks); in sctp_datamsg_init() 49 struct sctp_datamsg *msg; in sctp_datamsg_new() local 50 msg = kmalloc(sizeof(struct sctp_datamsg), gfp); in sctp_datamsg_new() [all …]
|
/net/nfc/ |
D | netlink.c | 57 static int nfc_genl_send_target(struct sk_buff *msg, struct nfc_target *target, in nfc_genl_send_target() argument 62 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target() 69 if (nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target->idx) || in nfc_genl_send_target() 70 nla_put_u32(msg, NFC_ATTR_PROTOCOLS, target->supported_protocols) || in nfc_genl_send_target() 71 nla_put_u16(msg, NFC_ATTR_TARGET_SENS_RES, target->sens_res) || in nfc_genl_send_target() 72 nla_put_u8(msg, NFC_ATTR_TARGET_SEL_RES, target->sel_res)) in nfc_genl_send_target() 75 nla_put(msg, NFC_ATTR_TARGET_NFCID1, target->nfcid1_len, in nfc_genl_send_target() 79 nla_put(msg, NFC_ATTR_TARGET_SENSB_RES, target->sensb_res_len, in nfc_genl_send_target() 83 nla_put(msg, NFC_ATTR_TARGET_SENSF_RES, target->sensf_res_len, in nfc_genl_send_target() 88 if (nla_put_u8(msg, NFC_ATTR_TARGET_ISO15693_DSFID, in nfc_genl_send_target() [all …]
|
/net/batman-adv/ |
D | netlink.c | 177 static int batadv_netlink_mesh_fill_ap_isolation(struct sk_buff *msg, in batadv_netlink_mesh_fill_ap_isolation() argument 190 return nla_put_u8(msg, BATADV_ATTR_AP_ISOLATION_ENABLED, in batadv_netlink_mesh_fill_ap_isolation() 227 static int batadv_netlink_mesh_fill(struct sk_buff *msg, in batadv_netlink_mesh_fill() argument 237 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd); in batadv_netlink_mesh_fill() 241 if (nla_put_string(msg, BATADV_ATTR_VERSION, BATADV_SOURCE_VERSION) || in batadv_netlink_mesh_fill() 242 nla_put_string(msg, BATADV_ATTR_ALGO_NAME, in batadv_netlink_mesh_fill() 244 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || in batadv_netlink_mesh_fill() 245 nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) || in batadv_netlink_mesh_fill() 246 nla_put(msg, BATADV_ATTR_MESH_ADDRESS, ETH_ALEN, in batadv_netlink_mesh_fill() 248 nla_put_u8(msg, BATADV_ATTR_TT_TTVN, in batadv_netlink_mesh_fill() [all …]
|
D | bat_v.c | 218 batadv_v_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_neigh() argument 229 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, in batadv_v_neigh_dump_neigh() 234 if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, in batadv_v_neigh_dump_neigh() 236 nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, in batadv_v_neigh_dump_neigh() 238 nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, in batadv_v_neigh_dump_neigh() 240 nla_put_u32(msg, BATADV_ATTR_THROUGHPUT, throughput)) in batadv_v_neigh_dump_neigh() 243 genlmsg_end(msg, hdr); in batadv_v_neigh_dump_neigh() 247 genlmsg_cancel(msg, hdr); in batadv_v_neigh_dump_neigh() 266 batadv_v_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_hardif() argument 279 if (batadv_v_neigh_dump_neigh(msg, portid, seq, hardif_neigh)) { in batadv_v_neigh_dump_hardif() [all …]
|
/net/atm/ |
D | signaling.c | 37 static void modify_qos(struct atm_vcc *vcc, struct atmsvc_msg *msg) in modify_qos() argument 44 msg->type = as_error; in modify_qos() 46 msg->reply = -EOPNOTSUPP; in modify_qos() 49 msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, in modify_qos() 50 msg->reply); in modify_qos() 51 if (!msg->reply) in modify_qos() 52 msg->type = as_okay; in modify_qos() 60 *(struct atmsvc_msg *)skb_put(skb, sizeof(struct atmsvc_msg)) = *msg; in modify_qos() 66 struct atmsvc_msg *msg; in sigd_send() local 70 msg = (struct atmsvc_msg *) skb->data; in sigd_send() [all …]
|
/net/ceph/ |
D | msgpool.c | 15 struct ceph_msg *msg; in msgpool_alloc() local 17 msg = ceph_msg_new2(pool->type, pool->front_len, pool->max_data_items, in msgpool_alloc() 19 if (!msg) { in msgpool_alloc() 22 dout("msgpool_alloc %s %p\n", pool->name, msg); in msgpool_alloc() 23 msg->pool = pool; in msgpool_alloc() 25 return msg; in msgpool_alloc() 31 struct ceph_msg *msg = element; in msgpool_free() local 33 dout("msgpool_release %s %p\n", pool->name, msg); in msgpool_free() 34 msg->pool = NULL; in msgpool_free() 35 ceph_msg_put(msg); in msgpool_free() [all …]
|
D | messenger.c | 513 struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; in ceph_tcp_recvmsg() local 517 msg.msg_flags |= MSG_TRUNC; in ceph_tcp_recvmsg() 519 iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, len); in ceph_tcp_recvmsg() 520 r = sock_recvmsg(sock, &msg, msg.msg_flags); in ceph_tcp_recvmsg() 534 struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; in ceph_tcp_recvpage() local 538 iov_iter_bvec(&msg.msg_iter, READ, &bvec, 1, length); in ceph_tcp_recvpage() 539 r = sock_recvmsg(sock, &msg, msg.msg_flags); in ceph_tcp_recvpage() 552 struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; in ceph_tcp_sendmsg() local 556 msg.msg_flags |= MSG_MORE; in ceph_tcp_sendmsg() 558 msg.msg_flags |= MSG_EOR; /* superfluous, but what the hell */ in ceph_tcp_sendmsg() [all …]
|
/net/ipv4/ |
D | tcp_bpf.c | 46 struct msghdr *msg, int len, int flags) in __tcp_bpf_recvmsg() argument 48 struct iov_iter *iter = &msg->msg_iter; in __tcp_bpf_recvmsg() 118 int tcp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in tcp_bpf_recvmsg() argument 126 return tcp_recvmsg(sk, msg, len, nonblock, flags, addr_len); in tcp_bpf_recvmsg() 128 return inet_recv_error(sk, msg, len, addr_len); in tcp_bpf_recvmsg() 131 return tcp_recvmsg(sk, msg, len, nonblock, flags, addr_len); in tcp_bpf_recvmsg() 134 copied = __tcp_bpf_recvmsg(sk, psock, msg, len, flags); in tcp_bpf_recvmsg() 146 return tcp_recvmsg(sk, msg, len, nonblock, flags, addr_len); in tcp_bpf_recvmsg() 162 struct sk_msg *msg, u32 apply_bytes, int flags) in bpf_tcp_ingress() argument 175 tmp->sg.start = msg->sg.start; in bpf_tcp_ingress() [all …]
|
/net/wireless/ |
D | nl80211.c | 860 static int nl80211_msg_put_wmm_rules(struct sk_buff *msg, in nl80211_msg_put_wmm_rules() argument 865 nla_nest_start_noflag(msg, NL80211_FREQUENCY_ATTR_WMM); in nl80211_msg_put_wmm_rules() 871 struct nlattr *nl_wmm_rule = nla_nest_start_noflag(msg, j); in nl80211_msg_put_wmm_rules() 876 if (nla_put_u16(msg, NL80211_WMMR_CW_MIN, in nl80211_msg_put_wmm_rules() 878 nla_put_u16(msg, NL80211_WMMR_CW_MAX, in nl80211_msg_put_wmm_rules() 880 nla_put_u8(msg, NL80211_WMMR_AIFSN, in nl80211_msg_put_wmm_rules() 882 nla_put_u16(msg, NL80211_WMMR_TXOP, in nl80211_msg_put_wmm_rules() 886 nla_nest_end(msg, nl_wmm_rule); in nl80211_msg_put_wmm_rules() 888 nla_nest_end(msg, nl_wmm_rules); in nl80211_msg_put_wmm_rules() 896 static int nl80211_msg_put_channel(struct sk_buff *msg, struct wiphy *wiphy, in nl80211_msg_put_channel() argument [all …]
|
D | pmsr.c | 296 struct sk_buff *msg; in cfg80211_pmsr_complete() local 301 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); in cfg80211_pmsr_complete() 302 if (!msg) in cfg80211_pmsr_complete() 305 hdr = nl80211hdr_put(msg, 0, 0, 0, in cfg80211_pmsr_complete() 310 if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || in cfg80211_pmsr_complete() 311 nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), in cfg80211_pmsr_complete() 315 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_complete() 319 genlmsg_end(msg, hdr); in cfg80211_pmsr_complete() 320 genlmsg_unicast(wiphy_net(wdev->wiphy), msg, req->nl_portid); in cfg80211_pmsr_complete() 323 nlmsg_free(msg); in cfg80211_pmsr_complete() [all …]
|
/net/ieee802154/ |
D | nl-mac.c | 29 static int nla_put_hwaddr(struct sk_buff *msg, int type, __le64 hwaddr, in nla_put_hwaddr() argument 32 return nla_put_u64_64bit(msg, type, swab64((__force u64)hwaddr), in nla_put_hwaddr() 41 static int nla_put_shortaddr(struct sk_buff *msg, int type, __le16 addr) in nla_put_shortaddr() argument 43 return nla_put_u16(msg, type, le16_to_cpu(addr)); in nla_put_shortaddr() 53 struct sk_buff *msg; in ieee802154_nl_start_confirm() local 57 msg = ieee802154_nl_create(0, IEEE802154_START_CONF); in ieee802154_nl_start_confirm() 58 if (!msg) in ieee802154_nl_start_confirm() 61 if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || in ieee802154_nl_start_confirm() 62 nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || in ieee802154_nl_start_confirm() 63 nla_put(msg, IEEE802154_ATTR_HW_ADDR, IEEE802154_ADDR_LEN, in ieee802154_nl_start_confirm() [all …]
|
D | nl802154.c | 309 nl802154_put_flags(struct sk_buff *msg, int attr, u32 mask) in nl802154_put_flags() argument 311 struct nlattr *nl_flags = nla_nest_start_noflag(msg, attr); in nl802154_put_flags() 319 if ((mask & 1) && nla_put_flag(msg, i)) in nl802154_put_flags() 326 nla_nest_end(msg, nl_flags); in nl802154_put_flags() 332 struct sk_buff *msg) in nl802154_send_wpan_phy_channels() argument 337 nl_page = nla_nest_start_noflag(msg, NL802154_ATTR_CHANNELS_SUPPORTED); in nl802154_send_wpan_phy_channels() 342 if (nla_put_u32(msg, NL802154_ATTR_SUPPORTED_CHANNEL, in nl802154_send_wpan_phy_channels() 346 nla_nest_end(msg, nl_page); in nl802154_send_wpan_phy_channels() 352 nl802154_put_capabilities(struct sk_buff *msg, in nl802154_put_capabilities() argument 359 nl_caps = nla_nest_start_noflag(msg, NL802154_ATTR_WPAN_PHY_CAPS); in nl802154_put_capabilities() [all …]
|
D | nl-phy.c | 28 static int ieee802154_nl_fill_phy(struct sk_buff *msg, u32 portid, in ieee802154_nl_fill_phy() argument 40 hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags, in ieee802154_nl_fill_phy() 46 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || in ieee802154_nl_fill_phy() 47 nla_put_u8(msg, IEEE802154_ATTR_PAGE, phy->current_page) || in ieee802154_nl_fill_phy() 48 nla_put_u8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel)) in ieee802154_nl_fill_phy() 55 nla_put(msg, IEEE802154_ATTR_CHANNEL_PAGE_LIST, in ieee802154_nl_fill_phy() 60 genlmsg_end(msg, hdr); in ieee802154_nl_fill_phy() 65 genlmsg_cancel(msg, hdr); in ieee802154_nl_fill_phy() 76 struct sk_buff *msg; in ieee802154_list_phy() local 94 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ieee802154_list_phy() [all …]
|
D | netlink.c | 27 struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); in ieee802154_nl_create() local 30 if (!msg) in ieee802154_nl_create() 34 hdr = genlmsg_put(msg, 0, ieee802154_seq_num++, in ieee802154_nl_create() 38 nlmsg_free(msg); in ieee802154_nl_create() 42 return msg; in ieee802154_nl_create() 45 int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) in ieee802154_nl_mcast() argument 47 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_mcast() 50 genlmsg_end(msg, hdr); in ieee802154_nl_mcast() 52 return genlmsg_multicast(&nl802154_family, msg, 0, group, GFP_ATOMIC); in ieee802154_nl_mcast() 59 struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); in ieee802154_nl_new_reply() local [all …]
|
/net/decnet/ |
D | dn_nsp_out.c | 471 struct nsp_conn_ack_msg *msg; in dn_send_conn_ack() local 476 msg = skb_put(skb, 3); in dn_send_conn_ack() 477 msg->msgflg = 0x24; in dn_send_conn_ack() 478 msg->dstaddr = scp->addrrem; in dn_send_conn_ack() 497 struct nsp_conn_init_msg *msg; in dn_send_conn_conf() local 503 msg = skb_put(skb, sizeof(*msg)); in dn_send_conn_conf() 504 msg->msgflg = 0x28; in dn_send_conn_conf() 505 msg->dstaddr = scp->addrrem; in dn_send_conn_conf() 506 msg->srcaddr = scp->addrloc; in dn_send_conn_conf() 507 msg->services = scp->services_loc; in dn_send_conn_conf() [all …]
|
/net/rxrpc/ |
D | output.c | 134 struct msghdr msg; in rxrpc_send_ack_packet() local 155 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_ack_packet() 156 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_ack_packet() 157 msg.msg_control = NULL; in rxrpc_send_ack_packet() 158 msg.msg_controllen = 0; in rxrpc_send_ack_packet() 159 msg.msg_flags = 0; in rxrpc_send_ack_packet() 216 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_send_ack_packet() 259 struct msghdr msg; in rxrpc_send_abort_packet() local 281 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_abort_packet() 282 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_abort_packet() [all …]
|
/net/psample/ |
D | psample.c | 36 static int psample_group_nl_fill(struct sk_buff *msg, in psample_group_nl_fill() argument 44 hdr = genlmsg_put(msg, portid, seq, &psample_nl_family, flags, cmd); in psample_group_nl_fill() 48 ret = nla_put_u32(msg, PSAMPLE_ATTR_SAMPLE_GROUP, group->group_num); in psample_group_nl_fill() 52 ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_REFCOUNT, group->refcount); in psample_group_nl_fill() 56 ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_SEQ, group->seq); in psample_group_nl_fill() 60 genlmsg_end(msg, hdr); in psample_group_nl_fill() 64 genlmsg_cancel(msg, hdr); in psample_group_nl_fill() 68 static int psample_nl_cmd_get_group_dumpit(struct sk_buff *msg, in psample_nl_cmd_get_group_dumpit() argument 78 if (!net_eq(group->net, sock_net(msg->sk))) in psample_nl_cmd_get_group_dumpit() 84 err = psample_group_nl_fill(msg, group, PSAMPLE_CMD_NEW_GROUP, in psample_nl_cmd_get_group_dumpit() [all …]
|