Lines Matching refs:skb
116 int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag) in nl_srv_ucast() argument
122 NETLINK_CB(skb).pid = 0; in nl_srv_ucast()
124 NETLINK_CB(skb).portid = 0; in nl_srv_ucast()
127 NETLINK_CB(skb).dst_group = 0; in nl_srv_ucast()
130 err = cnss_logger_nl_ucast(skb, dst_pid, flag); in nl_srv_ucast()
136 dev_kfree_skb(skb); in nl_srv_ucast()
150 int nl_srv_bcast(struct sk_buff *skb) in nl_srv_bcast() argument
160 NETLINK_CB(skb).pid = 0; in nl_srv_bcast()
162 NETLINK_CB(skb).portid = 0; in nl_srv_bcast()
165 NETLINK_CB(skb).dst_group = WLAN_NLINK_MCAST_GRP_ID; in nl_srv_bcast()
168 err = cnss_logger_nl_bcast(skb, WLAN_NLINK_MCAST_GRP_ID, flags); in nl_srv_bcast()
173 dev_kfree_skb(skb); in nl_srv_bcast()
177 dev_kfree_skb(skb); in nl_srv_bcast()
349 void *nl80211hdr_put(struct sk_buff *skb, uint32_t portid, in nl80211hdr_put() argument
354 return genlmsg_put(skb, portid, seq, cld80211_fam, flags, cmd); in nl80211hdr_put()
469 int nl_srv_bcast(struct sk_buff *skb, int mcgroup_id, int app_id) in nl_srv_bcast() argument
471 struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data; in nl_srv_bcast()
480 dev_kfree_skb(skb); in nl_srv_bcast()
484 dev_kfree_skb(skb); in nl_srv_bcast()
504 int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag, in nl_srv_ucast() argument
507 struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data; in nl_srv_ucast()
517 dev_kfree_skb(skb); in nl_srv_ucast()
521 dev_kfree_skb(skb); in nl_srv_ucast()
534 static void nl_srv_rcv_skb(struct sk_buff *skb);
535 static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh);
622 int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag) in nl_srv_ucast() argument
626 NETLINK_CB(skb).portid = 0; /* sender's pid */ in nl_srv_ucast()
627 NETLINK_CB(skb).dst_group = 0; /* not multicast */ in nl_srv_ucast()
630 err = netlink_unicast(nl_srv_sock, skb, dst_pid, flag); in nl_srv_ucast()
636 dev_kfree_skb(skb); in nl_srv_ucast()
646 int nl_srv_bcast(struct sk_buff *skb) in nl_srv_bcast() argument
654 NETLINK_CB(skb).portid = 0; /* sender's pid */ in nl_srv_bcast()
655 NETLINK_CB(skb).dst_group = WLAN_NLINK_MCAST_GRP_ID; /* destination group */ in nl_srv_bcast()
658 err = netlink_broadcast(nl_srv_sock, skb, 0, in nl_srv_bcast()
664 dev_kfree_skb(skb); in nl_srv_bcast()
667 dev_kfree_skb(skb); in nl_srv_bcast()
689 static void nl_srv_rcv_skb(struct sk_buff *skb) in nl_srv_rcv_skb() argument
693 while (skb->len >= NLMSG_SPACE(0)) { in nl_srv_rcv_skb()
696 nlh = (struct nlmsghdr *)skb->data; in nl_srv_rcv_skb()
698 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len) { in nl_srv_rcv_skb()
702 skb, skb->len, nlh, nlh->nlmsg_len); in nl_srv_rcv_skb()
707 if (rlen > skb->len) in nl_srv_rcv_skb()
708 rlen = skb->len; in nl_srv_rcv_skb()
709 nl_srv_rcv_msg(skb, nlh); in nl_srv_rcv_skb()
710 skb_pull(skb, rlen); in nl_srv_rcv_skb()
718 static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in nl_srv_rcv_msg() argument
756 (nl_srv_msg_handler[type])(skb); in nl_srv_rcv_msg()
802 int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag) in nl_srv_ucast() argument
804 dev_kfree_skb(skb); in nl_srv_ucast()
808 int nl_srv_bcast(struct sk_buff *skb) in nl_srv_bcast() argument
810 dev_kfree_skb(skb); in nl_srv_bcast()
834 void nl_srv_ucast_oem(struct sk_buff *skb, int dst_pid, int flag) in nl_srv_ucast_oem() argument
836 nl_srv_ucast(skb, dst_pid, flag, WLAN_NL_MSG_OEM, in nl_srv_ucast_oem()
840 void nl_srv_ucast_oem(struct sk_buff *skb, int dst_pid, int flag) in nl_srv_ucast_oem() argument
842 nl_srv_ucast(skb, dst_pid, flag); in nl_srv_ucast_oem()