Searched refs:msglen (Results 1 – 10 of 10) sorted by relevance
/net/netfilter/ |
D | nfnetlink.c | 426 int msglen, type; in nfnetlink_rcv_batch() local 551 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch() 552 if (msglen > skb->len) in nfnetlink_rcv_batch() 553 msglen = skb->len; in nfnetlink_rcv_batch() 554 skb_pull(skb, msglen); in nfnetlink_rcv_batch() 606 int msglen, err; in nfnetlink_rcv_skb_batch() local 610 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_skb_batch() 611 if (msglen > skb->len) in nfnetlink_rcv_skb_batch() 612 msglen = skb->len; in nfnetlink_rcv_skb_batch() 627 skb_pull(skb, msglen); in nfnetlink_rcv_skb_batch()
|
D | nf_conntrack_sip.c | 1533 unsigned int msglen, origlen; in sip_help_tcp() local 1583 msglen = origlen = end - dptr; in sip_help_tcp() 1584 if (msglen > datalen) in sip_help_tcp() 1588 &dptr, &msglen); in sip_help_tcp() 1592 diff = msglen - origlen; in sip_help_tcp() 1595 dataoff += msglen; in sip_help_tcp() 1596 dptr += msglen; in sip_help_tcp() 1597 datalen = datalen + diff - msglen; in sip_help_tcp()
|
D | x_tables.c | 659 const char *msg, unsigned int msglen) in error_tg_ok() argument 661 return usersize == kernsize && strnlen(msg, msglen) < msglen; in error_tg_ok()
|
/net/mctp/ |
D | af_mctp.c | 148 size_t msglen; in mctp_recvmsg() local 166 msglen = skb->len - 1; in mctp_recvmsg() 168 if (len < msglen) in mctp_recvmsg() 171 len = msglen; in mctp_recvmsg() 199 rc = msglen; in mctp_recvmsg()
|
/net/qrtr/ |
D | ns.c | 676 ssize_t msglen; in qrtr_ns_worker() local 692 msglen = kernel_recvmsg(qrtr_ns.sock, &msg, &iv, 1, in qrtr_ns_worker() 695 if (msglen == -EAGAIN) in qrtr_ns_worker() 698 if (msglen < 0) { in qrtr_ns_worker() 699 pr_err("error receiving packet: %zd\n", msglen); in qrtr_ns_worker()
|
/net/xfrm/ |
D | espintcp.c | 322 size_t msglen = size + 2; in espintcp_sendmsg() local 347 err = sk_msg_alloc(sk, &emsg->skmsg, msglen, 0); in espintcp_sendmsg() 356 *((__be16 *)buf) = cpu_to_be16(msglen); in espintcp_sendmsg()
|
/net/bluetooth/ |
D | hci_sock.c | 1541 struct msghdr *msg, size_t msglen) in hci_mgmt_cmd() argument 1552 BT_DBG("got %zu bytes", msglen); in hci_mgmt_cmd() 1554 if (msglen < sizeof(*hdr)) in hci_mgmt_cmd() 1557 buf = kmalloc(msglen, GFP_KERNEL); in hci_mgmt_cmd() 1561 if (memcpy_from_msg(buf, msg, msglen)) { in hci_mgmt_cmd() 1571 if (len != msglen - sizeof(*hdr)) { in hci_mgmt_cmd() 1656 err = msglen; in hci_mgmt_cmd()
|
/net/netlink/ |
D | af_netlink.c | 2488 int msglen; in netlink_rcv_skb() local 2514 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in netlink_rcv_skb() 2515 if (msglen > skb->len) in netlink_rcv_skb() 2516 msglen = skb->len; in netlink_rcv_skb() 2517 skb_pull(skb, msglen); in netlink_rcv_skb()
|
/net/sunrpc/ |
D | xprtsock.c | 874 unsigned int msglen = rm ? req->rq_slen + sizeof(rm) : req->rq_slen; in xs_local_send_request() local 902 if (likely(req->rq_bytes_sent >= msglen)) { in xs_local_send_request() 1028 unsigned int msglen = rm ? req->rq_slen + sizeof(rm) : req->rq_slen; in xs_tcp_send_request() local 1068 if (likely(req->rq_bytes_sent >= msglen)) { in xs_tcp_send_request()
|
/net/tipc/ |
D | socket.c | 245 static u16 tsk_inc(struct tipc_sock *tsk, int msglen) in tsk_inc() argument 248 return ((msglen / FLOWCTL_BLK_SZ) + 1); in tsk_inc()
|