Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 20 of 20) sorted by relevance

/net/batman-adv/
Dsysfs.c124 struct attribute *attr, char *buff, \
130 return __batadv_store_bool_attr(buff, count, _post_func, attr, \
136 struct attribute *attr, char *buff) \
140 return sprintf(buff, "%s\n", \
157 struct attribute *attr, char *buff, \
163 return __batadv_store_uint_attr(buff, count, _min, _max, \
170 struct attribute *attr, char *buff) \
174 return sprintf(buff, "%i\n", atomic_read(&bat_priv->_name)); \
188 struct attribute *attr, char *buff, \
194 size_t res = __batadv_store_bool_attr(buff, count, _post_func, \
[all …]
Dgateway_common.c32 static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff, in batadv_parse_gw_bandwidth() argument
40 slash_ptr = strchr(buff, '/'); in batadv_parse_gw_bandwidth()
44 if (strlen(buff) > 4) { in batadv_parse_gw_bandwidth()
45 tmp_ptr = buff + strlen(buff) - 4; in batadv_parse_gw_bandwidth()
55 ret = kstrtol(buff, 10, &ldown); in batadv_parse_gw_bandwidth()
59 buff); in batadv_parse_gw_bandwidth()
139 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, in batadv_gw_bandwidth_set() argument
149 ret = batadv_parse_gw_bandwidth(net_dev, buff, &down_new, &up_new); in batadv_gw_bandwidth_set()
Dgateway_common.h41 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
Dicmp_socket.c149 static ssize_t batadv_socket_write(struct file *file, const char __user *buff, in batadv_socket_write() argument
191 if (copy_from_user(icmp_header, buff, packet_len)) { in batadv_socket_write()
/net/ax25/
Dax25_ip.c53 unsigned char *buff; in ax25_hard_header() local
60 buff = skb_push(skb, AX25_HEADER_LEN); in ax25_hard_header()
61 *buff++ = 0x00; /* KISS DATA */ in ax25_hard_header()
64 memcpy(buff, daddr, dev->addr_len); /* Address specified */ in ax25_hard_header()
66 buff[6] &= ~AX25_CBIT; in ax25_hard_header()
67 buff[6] &= ~AX25_EBIT; in ax25_hard_header()
68 buff[6] |= AX25_SSSID_SPARE; in ax25_hard_header()
69 buff += AX25_ADDR_LEN; in ax25_hard_header()
72 memcpy(buff, saddr, dev->addr_len); in ax25_hard_header()
74 memcpy(buff, dev->dev_addr, dev->addr_len); in ax25_hard_header()
[all …]
/net/netrom/
Dnr_dev.c102 unsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN); in nr_header() local
104 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); in nr_header()
105 buff[6] &= ~AX25_CBIT; in nr_header()
106 buff[6] &= ~AX25_EBIT; in nr_header()
107 buff[6] |= AX25_SSSID_SPARE; in nr_header()
108 buff += AX25_ADDR_LEN; in nr_header()
111 memcpy(buff, daddr, dev->addr_len); in nr_header()
112 buff[6] &= ~AX25_CBIT; in nr_header()
113 buff[6] |= AX25_EBIT; in nr_header()
114 buff[6] |= AX25_SSSID_SPARE; in nr_header()
[all …]
/net/rose/
Drose_dev.c42 unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2); in rose_header() local
44 *buff++ = ROSE_GFI | ROSE_Q_BIT; in rose_header()
45 *buff++ = 0x00; in rose_header()
46 *buff++ = ROSE_DATA; in rose_header()
47 *buff++ = 0x7F; in rose_header()
48 *buff++ = AX25_P_IP; in rose_header()
/net/atm/
Dmpoa_proc.c50 static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
53 static int parse_qos(const char *buff);
206 static ssize_t proc_mpc_write(struct file *file, const char __user *buff, in proc_mpc_write() argument
223 if (get_user(*p, buff++)) { in proc_mpc_write()
241 static int parse_qos(const char *buff) in parse_qos() argument
253 if (sscanf(buff, "del %hhu.%hhu.%hhu.%hhu", in parse_qos()
259 if (sscanf(buff, "add %hhu.%hhu.%hhu.%hhu tx=%d,%d rx=tx", in parse_qos()
263 } else if (sscanf(buff, "add %hhu.%hhu.%hhu.%hhu tx=%d,%d rx=%d,%d", in parse_qos()
Dlec.c127 char *buff; in lec_handle_bridge() local
135 buff = skb->data + skb->dev->hard_header_len; in lec_handle_bridge()
136 if (*buff++ == 0x42 && *buff++ == 0x42 && *buff++ == 0x03) { in lec_handle_bridge()
147 buff += 4; in lec_handle_bridge()
148 mesg->content.normal.flag = *buff & 0x01; in lec_handle_bridge()
Dcommon.c580 const void __user *buff; in vcc_sendmsg() local
596 buff = m->msg_iov->iov_base; in vcc_sendmsg()
642 if (copy_from_user(skb_put(skb, size), buff, size)) { in vcc_sendmsg()
Dmpc.c495 char *buff; in send_via_shortcut() local
506 buff = skb->data + mpc->dev->hard_header_len; in send_via_shortcut()
507 iph = (struct iphdr *)buff; in send_via_shortcut()
/net/netfilter/ipvs/
Dip_vs_sync.c533 struct ip_vs_sync_buff *buff; in ip_vs_sync_conn_v0() local
555 buff = ms->sync_buff; in ip_vs_sync_conn_v0()
556 if (buff) { in ip_vs_sync_conn_v0()
557 m = (struct ip_vs_sync_mesg_v0 *) buff->mesg; in ip_vs_sync_conn_v0()
562 buff = NULL; in ip_vs_sync_conn_v0()
565 if (!buff) { in ip_vs_sync_conn_v0()
566 buff = ip_vs_sync_buff_create_v0(ipvs); in ip_vs_sync_conn_v0()
567 if (!buff) { in ip_vs_sync_conn_v0()
572 ms->sync_buff = buff; in ip_vs_sync_conn_v0()
577 m = (struct ip_vs_sync_mesg_v0 *) buff->mesg; in ip_vs_sync_conn_v0()
[all …]
/net/ipv4/
Dtcp_output.c1131 struct sk_buff *buff; in tcp_fragment() local
1147 buff = sk_stream_alloc_skb(sk, nsize, gfp); in tcp_fragment()
1148 if (buff == NULL) in tcp_fragment()
1151 sk->sk_wmem_queued += buff->truesize; in tcp_fragment()
1152 sk_mem_charge(sk, buff->truesize); in tcp_fragment()
1154 buff->truesize += nlen; in tcp_fragment()
1158 TCP_SKB_CB(buff)->seq = TCP_SKB_CB(skb)->seq + len; in tcp_fragment()
1159 TCP_SKB_CB(buff)->end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_fragment()
1160 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(buff)->seq; in tcp_fragment()
1165 TCP_SKB_CB(buff)->tcp_flags = flags; in tcp_fragment()
[all …]
/net/ipv6/
Dtcp_ipv6.c809 struct sk_buff *buff; in tcp_v6_send_response() local
824 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len, in tcp_v6_send_response()
826 if (buff == NULL) in tcp_v6_send_response()
829 skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); in tcp_v6_send_response()
831 t1 = (struct tcphdr *) skb_push(buff, tot_len); in tcp_v6_send_response()
832 skb_reset_transport_header(buff); in tcp_v6_send_response()
869 buff->ip_summed = CHECKSUM_PARTIAL; in tcp_v6_send_response()
870 buff->csum = 0; in tcp_v6_send_response()
872 __tcp_v6_send_check(buff, &fl6.saddr, &fl6.daddr); in tcp_v6_send_response()
891 skb_dst_set(buff, dst); in tcp_v6_send_response()
[all …]
Dndisc.c1460 struct sk_buff *buff; in ndisc_send_redirect() local
1535 buff = ndisc_alloc_skb(dev, sizeof(*msg) + optlen); in ndisc_send_redirect()
1536 if (!buff) in ndisc_send_redirect()
1539 msg = (struct rd_msg *)skb_put(buff, sizeof(*msg)); in ndisc_send_redirect()
1553 ndisc_fill_addr_option(buff, ND_OPT_TARGET_LL_ADDR, ha); in ndisc_send_redirect()
1560 ndisc_fill_redirect_hdr_option(buff, skb, rd_len); in ndisc_send_redirect()
1562 skb_dst_set(buff, dst); in ndisc_send_redirect()
1563 ndisc_send_skb(buff, &ipv6_hdr(skb)->saddr, &saddr_buf); in ndisc_send_redirect()
/net/netfilter/
Dnf_conntrack_proto_tcp.c388 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_options() local
396 length, buff); in tcp_options()
442 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_sack() local
451 length, buff); in tcp_sack()
Dxt_qtaguid.c1803 char *buff; in prdebug_full_state_locked() local
1812 buff = kvasprintf(GFP_ATOMIC, in prdebug_full_state_locked()
1814 BUG_ON(!buff); in prdebug_full_state_locked()
1815 pr_debug("%s", buff); in prdebug_full_state_locked()
1817 kfree(buff); in prdebug_full_state_locked()
/net/
Dsocket.c1794 SYSCALL_DEFINE6(sendto, int, fd, void __user *, buff, size_t, len, in SYSCALL_DEFINE6() argument
1807 if (unlikely(!access_ok(VERIFY_READ, buff, len))) in SYSCALL_DEFINE6()
1813 iov.iov_base = buff; in SYSCALL_DEFINE6()
1843 SYSCALL_DEFINE4(send, int, fd, void __user *, buff, size_t, len, in SYSCALL_DEFINE4() argument
1846 return sys_sendto(fd, buff, len, flags, NULL, 0); in SYSCALL_DEFINE4()
/net/packet/
Daf_packet.c196 static void packet_increment_head(struct packet_ring_buffer *buff);
1181 static void packet_increment_head(struct packet_ring_buffer *buff) in packet_increment_head() argument
1183 buff->head = buff->head != buff->frame_max ? buff->head+1 : 0; in packet_increment_head()
/net/core/
Dneighbour.c1018 struct sk_buff *buff; in __neigh_event_send() local
1020 buff = __skb_dequeue(&neigh->arp_queue); in __neigh_event_send()
1021 if (!buff) in __neigh_event_send()
1023 neigh->arp_queue_len_bytes -= buff->truesize; in __neigh_event_send()
1024 kfree_skb(buff); in __neigh_event_send()