Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 25 of 45) sorted by relevance

12

/u-boot/net/
A Dtftp.c316 uchar *pkt; in tftp_send() local
335 xp = pkt; in tftp_send()
352 pkt += strlen((char *)pkt) + 1; in tftp_send()
354 pkt += sprintf((char *)pkt, "tsize%c%u%c", in tftp_send()
358 pkt += sprintf((char *)pkt, "blksize%c%d%c", in tftp_send()
366 pkt += sprintf((char *)pkt, "windowsize%c%d%c", in tftp_send()
375 xp = pkt; in tftp_send()
394 xp = pkt; in tftp_send()
407 xp = pkt; in tftp_send()
419 xp = pkt; in tftp_send()
[all …]
A Dfastboot_tcp.c49 memset(pkt, '\0', PKTSIZE); in fastboot_tcp_send_packet()
51 memcpy(pkt, data, len); in fastboot_tcp_send_packet()
53 memset(pkt, '\0', PKTSIZE); in fastboot_tcp_send_packet()
61 memset(pkt, '\0', PKTSIZE); in fastboot_tcp_send_message()
64 memcpy(pkt, &len_be, 8); in fastboot_tcp_send_message()
65 pkt += 8; in fastboot_tcp_send_message()
66 memcpy(pkt, message, len); in fastboot_tcp_send_message()
68 memset(pkt, '\0', PKTSIZE); in fastboot_tcp_send_message()
111 pkt += 8; in fastboot_tcp_handler_ipv4()
114 if (strlen(pkt) != command_size) { in fastboot_tcp_handler_ipv4()
[all …]
A Dping6.c23 ip6_make_ping(uchar *eth_dst_addr, struct in6_addr *neigh_addr, uchar *pkt) in ip6_make_ping() argument
28 uchar *pkt_old = pkt; in ip6_make_ping()
32 pkt += net_set_ether(pkt, eth_dst_addr, PROT_IP6); in ip6_make_ping()
33 pkt += ip6_add_hdr(pkt, &net_ip6, neigh_addr, PROT_ICMPV6, in ip6_make_ping()
37 msg = (struct echo_msg *)pkt; in ip6_make_ping()
51 pkt += len; in ip6_make_ping()
53 return pkt - pkt_old; in ip6_make_ping()
58 uchar *pkt; in ping6_send() local
68 pkt = net_nd_tx_packet; in ping6_send()
69 pkt += ip6_make_ping(mac, &net_ping_ip6, pkt); in ping6_send()
[all …]
A Ddhcpv6.c177 uchar *pkt; in dhcp6_send_solicit_packet() local
191 pkt += dhcp6_add_option(DHCP6_OPTION_CLIENTID, pkt); in dhcp6_send_solicit_packet()
192 pkt += dhcp6_add_option(DHCP6_OPTION_ELAPSED_TIME, pkt); in dhcp6_send_solicit_packet()
193 pkt += dhcp6_add_option(DHCP6_OPTION_IA_NA, pkt); in dhcp6_send_solicit_packet()
194 pkt += dhcp6_add_option(DHCP6_OPTION_ORO, pkt); in dhcp6_send_solicit_packet()
198 pkt += dhcp6_add_option(DHCP6_OPTION_NII, pkt); in dhcp6_send_solicit_packet()
224 uchar *pkt; in dhcp6_send_request_packet() local
238 pkt += dhcp6_add_option(DHCP6_OPTION_CLIENTID, pkt); in dhcp6_send_request_packet()
240 pkt += dhcp6_add_option(DHCP6_OPTION_IA_NA, pkt); in dhcp6_send_request_packet()
241 pkt += dhcp6_add_option(DHCP6_OPTION_ORO, pkt); in dhcp6_send_request_packet()
[all …]
A Dsntp.c28 struct sntp_pkt_t pkt; in sntp_send() local
34 memset(&pkt, 0, sizeof(pkt)); in sntp_send()
36 pkt.li = NTP_LI_NOLEAP; in sntp_send()
37 pkt.vn = NTP_VERSION; in sntp_send()
38 pkt.mode = NTP_MODE_CLIENT; in sntp_send()
41 (char *)&pkt, pktlen); in sntp_send()
57 static void sntp_handler(uchar *pkt, unsigned dest, struct in_addr sip, in sntp_handler() argument
60 struct sntp_pkt_t *rpktp = (struct sntp_pkt_t *)pkt; in sntp_handler()
A Dcdp.c105 uchar *pkt; in cdp_send_trigger() local
116 pkt = net_tx_packet; in cdp_send_trigger()
125 pkt += ETHER_HDR_SIZE; in cdp_send_trigger()
129 pkt += sizeof(cdp_snap_hdr); in cdp_send_trigger()
133 *pkt++ = 180; /* TTL */ in cdp_send_trigger()
134 s = (ushort *)pkt; in cdp_send_trigger()
255 if (pkt[0] < 0x02 || pkt[1] == 0) in cdp_receive()
262 if (pkt[0] != 0x02) in cdp_receive()
269 pkt += 4; in cdp_receive()
278 ss = (const ushort *)pkt; in cdp_receive()
[all …]
A Dndisc.c107 uchar *pkt; in ip6_send_ns() local
121 pkt += net_set_ether(pkt, enetaddr, PROT_IP6); in ip6_send_ns()
122 pkt += ip6_add_hdr(pkt, &net_link_local_ip6, &dst_adr, PROT_ICMPV6, in ip6_send_ns()
142 pkt += len; in ip6_send_ns()
159 uchar *pkt; in ip6_send_rs() local
185 pkt += net_set_ether(pkt, enetaddr, PROT_IP6); in ip6_send_rs()
205 pkt += icmp_len; in ip6_send_rs()
224 uchar *pkt; in ip6_send_na() local
234 pkt += net_set_ether(pkt, eth_dst_addr, PROT_IP6); in ip6_send_na()
235 pkt += ip6_add_hdr(pkt, &net_link_local_ip6, neigh_addr, in ip6_send_na()
[all …]
A Ddns.c53 uchar *p, *pkt; in dns_send() local
59 pkt = (uchar *)(net_tx_packet + net_eth_hdr_size() + IP_UDP_HDR_SIZE); in dns_send()
60 p = pkt; in dns_send()
63 header = (struct header *)pkt; in dns_send()
99 n = p - pkt; /* Total packet length */ in dns_send()
115 static void dns_handler(uchar *pkt, unsigned dest, struct in_addr sip, in dns_handler() argument
132 pkt+i, pkt[i], pkt[i+1], pkt[i+2], pkt[i+3]); in dns_handler()
135 header = (struct header *)pkt; in dns_handler()
148 e = pkt + len; in dns_handler()
A Dwget.c28 uchar *pkt; member
188 pkt[len] = '\0'; in wget_connected()
198 memcpy(ptr1, pkt, len); in wget_connected()
201 pkt_q[pkt_q_idx].pkt = pkt_in_q; in wget_connected()
211 i = pos - (char *)pkt; in wget_connected()
214 printf("%.*s", i, pkt); in wget_connected()
227 pkt, hlen); in wget_connected()
248 pkt, hlen); in wget_connected()
252 (phys_addr_t)(pkt_q[i].pkt), in wget_connected()
261 pkt_q[i].pkt, pkt_q[i].len); in wget_connected()
[all …]
A Dping.c22 static void set_icmp_header(uchar *pkt, struct in_addr dest) in set_icmp_header() argument
27 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header()
29 net_set_ip_header(pkt, dest, net_ip, IP_ICMP_HDR_SIZE, IPPROTO_ICMP); in set_icmp_header()
41 uchar *pkt; in ping_send() local
51 pkt = (uchar *)net_tx_packet + eth_hdr_size; in ping_send()
53 set_icmp_header(pkt, net_ping_ip); in ping_send()
A Drarp.c67 uchar *pkt; in rarp_request() local
72 pkt = net_tx_packet; in rarp_request()
74 eth_hdr_size = net_set_ether(pkt, net_bcast_ethaddr, PROT_RARP); in rarp_request()
75 pkt += eth_hdr_size; in rarp_request()
77 rarp = (struct arp_hdr *)pkt; in rarp_request()
A Dbootp.c367 bp = (struct bootp_hdr *)pkt; in bootp_handler()
720 uchar *pkt, *iphdr; in bootp_request() local
758 pkt = net_tx_packet; in bootp_request()
762 pkt += eth_hdr_size; in bootp_request()
774 pkt += IP_UDP_HDR_SIZE; in bootp_request()
776 bp = (struct bootp_hdr *)pkt; in bootp_request()
979 uchar *pkt, *iphdr; in dhcp_send_request_packet() local
988 pkt = net_tx_packet; in dhcp_send_request_packet()
992 pkt += eth_hdr_size; in dhcp_send_request_packet()
995 pkt += IP_UDP_HDR_SIZE; in dhcp_send_request_packet()
[all …]
A Dnet6.c330 uchar *pkt; in net_send_udp_packet6() local
354 pkt = net_nd_tx_packet; in net_send_udp_packet6()
355 pkt += net_set_ether(pkt, net_nd_packet_mac, PROT_IP6); in net_send_udp_packet6()
356 pkt += ip6_add_hdr(pkt, &net_ip6, dest, IPPROTO_UDP, 64, in net_send_udp_packet6()
358 memcpy(pkt, (uchar *)udp, len + UDP_HDR_SIZE); in net_send_udp_packet6()
361 net_nd_tx_packet_size = (pkt - net_nd_tx_packet) + in net_send_udp_packet6()
371 pkt = (uchar *)net_tx_packet; in net_send_udp_packet6()
372 pkt += net_set_ether(pkt, ether, PROT_IP6); in net_send_udp_packet6()
373 pkt += ip6_add_hdr(pkt, &net_ip6, dest, IPPROTO_UDP, 64, in net_send_udp_packet6()
375 (void)eth_send(net_tx_packet, pkt - net_tx_packet + UDP_HDR_SIZE + len); in net_send_udp_packet6()
A Dnfs.c522 memcpy(&rpc_pkt.u.data[0], pkt, len); in rpc_lookup_reply()
555 memcpy(&rpc_pkt.u.data[0], pkt, len); in nfs_mount_reply()
579 memcpy(&rpc_pkt.u.data[0], pkt, len); in nfs_umountall_reply()
604 memcpy(&rpc_pkt.u.data[0], pkt, len); in nfs_lookup_reply()
665 memcpy((unsigned char *)&rpc_pkt, pkt, len); in nfs_readlink_reply()
707 static int nfs_read_reply(uchar *pkt, unsigned len) in nfs_read_reply() argument
812 reply = nfs_mount_reply(pkt, len); in nfs_handler()
831 reply = nfs_umountall_reply(pkt, len); in nfs_handler()
844 reply = nfs_lookup_reply(pkt, len); in nfs_handler()
868 reply = nfs_readlink_reply(pkt, len); in nfs_handler()
[all …]
A Darp.c44 uchar *pkt; in arp_raw_request() local
50 pkt = arp_tx_packet; in arp_raw_request()
52 eth_hdr_size = net_set_ether(pkt, net_bcast_ethaddr, PROT_ARP); in arp_raw_request()
53 pkt += eth_hdr_size; in arp_raw_request()
55 arp = (struct arp_hdr *)pkt; in arp_raw_request()
A Dwol.c64 static void wol_udp_handler(uchar *pkt, unsigned int dest, struct in_addr sip, in wol_udp_handler() argument
69 wol = (struct wol_hdr *)pkt; in wol_udp_handler()
A Dcdp.h19 void cdp_receive(const uchar *pkt, unsigned len);
/u-boot/drivers/net/phy/
A Dncsi.c186 struct ncsi_rsp_pkt_hdr *hdr = &pkt->rsp; in ncsi_validate_rsp()
225 static void ncsi_rsp_ec(struct ncsi_rsp_pkt *pkt) in ncsi_rsp_ec() argument
271 static void ncsi_rsp_gc(struct ncsi_rsp_pkt *pkt) in ncsi_rsp_gc() argument
526 uchar *pkt, *start; in ncsi_send_command() local
529 pkt = calloc(1, PKTSIZE_ALIGN + PKTALIGN); in ncsi_send_command()
530 if (!pkt) in ncsi_send_command()
532 start = pkt; in ncsi_send_command()
535 pkt += eth_hdr_size; in ncsi_send_command()
538 hdr = (struct ncsi_pkt_hdr *)pkt; in ncsi_send_command()
703 if (ncsi_validate_rsp(pkt, payload) != 0) { in ncsi_receive()
[all …]
/u-boot/drivers/net/
A Dnetconsole.c36 static void nc_wait_arp_handler(uchar *pkt, unsigned dest, in nc_wait_arp_handler() argument
43 static void nc_handler(uchar *pkt, unsigned dest, struct in_addr sip, in nc_handler() argument
126 uchar *pkt; in nc_start() local
128 pkt = (uchar *)net_tx_packet + net_eth_hdr_size() + in nc_start()
130 memcpy(pkt, output_packet, output_packet_len); in nc_start()
147 debug_cond(DEBUG_DEV_PKT, "input: \"%*.*s\"\n", len, len, pkt); in nc_input_packet()
163 memcpy(input_buffer, pkt + chunk, len - chunk); in nc_input_packet()
166 memcpy(input_buffer + end, pkt, chunk); in nc_input_packet()
177 uchar *pkt; in nc_send_packet() local
210 pkt = (uchar *)net_tx_packet + net_eth_hdr_size() + IP_UDP_HDR_SIZE; in nc_send_packet()
[all …]
/u-boot/include/linux/usb/
A Dmusb.h49 #define MUSB_EP_FIFO(ep, st, m, pkt) \ argument
54 .maxpacket = pkt, \
57 #define MUSB_EP_FIFO_SINGLE(ep, st, pkt) \ argument
58 MUSB_EP_FIFO(ep, st, BUF_SINGLE, pkt)
60 #define MUSB_EP_FIFO_DOUBLE(ep, st, pkt) \ argument
61 MUSB_EP_FIFO(ep, st, BUF_DOUBLE, pkt)
/u-boot/drivers/net/octeontx/
A Dnicvf_main.c231 void *pkt; in nicvf_rcv_pkt_handler() local
243 if (!pkt) { in nicvf_rcv_pkt_handler()
248 if (pkt) in nicvf_rcv_pkt_handler()
249 *ppkt = pkt; in nicvf_rcv_pkt_handler()
342 if (pkt && pkt_len) in nicvf_free_pkt()
343 free(pkt); in nicvf_free_pkt()
356 if (!nicvf_sq_append_pkt(nic, pkt, pkt_len)) { in nicvf_xmit()
376 void *pkt; in nicvf_recv() local
383 nicvf_cq_handler(nic, &pkt, &pkt_len); in nicvf_recv()
387 dpkt = pkt; in nicvf_recv()
[all …]
A Dnicvf_queues.c739 int subdesc_cnt, void *pkt, size_t pkt_len) in nicvf_sq_add_hdr_subdesc() argument
744 sq->skbuff[qentry] = (uintptr_t)pkt; in nicvf_sq_add_hdr_subdesc()
798 pkt, pkt_size); in nicvf_sq_append_pkt()
804 flush_dcache_range((uintptr_t)pkt, in nicvf_sq_append_pkt()
805 (uintptr_t)pkt + pkt_size); in nicvf_sq_append_pkt()
833 void *pkt = NULL, *pkt_buf = NULL, *buffer; in nicvf_get_rcv_pkt() local
883 pkt = nicvf_rb_ptr_to_pkt(nic, *rb_ptrs); in nicvf_get_rcv_pkt()
885 invalidate_dcache_range((uintptr_t)pkt, in nicvf_get_rcv_pkt()
886 (uintptr_t)pkt + payload_len); in nicvf_get_rcv_pkt()
889 pkt += cqe_rx->align_pad; in nicvf_get_rcv_pkt()
[all …]
/u-boot/include/net/
A Dtcp.h282 int tcp_set_tcp_header(uchar *pkt, int dport, int sport, int payload_len,
296 typedef void rxhand_tcp(uchar *pkt, u16 dport,
304 u16 tcp_set_pseudo_header(uchar *pkt, struct in_addr src, struct in_addr dest,
/u-boot/include/
A Dnet.h91 typedef void rxhand_f(uchar *pkt, unsigned dport,
106 struct in_addr sip, unsigned sport, uchar *pkt, unsigned len);
567 void net_set_ip_header(uchar *pkt, struct in_addr dest, struct in_addr source,
569 void net_set_udp_header(uchar *pkt, struct in_addr dest, int dport,
635 static inline void net_send_packet(uchar *pkt, int len) in net_send_packet() argument
638 (void) eth_send(pkt, len); in net_send_packet()
679 int nc_input_packet(uchar *pkt, struct in_addr src_ip, unsigned dest_port,
/u-boot/common/
A DxyzModem.c48 unsigned char pkt[1024], *bufp; member
342 xyz.bufp = xyz.pkt; in xyzModem_get_hdr()
349 xyz.pkt[i] = c; in xyzModem_get_hdr()
381 ZM_DEBUG (zm_dump_buf (xyz.pkt, xyz.len)); in xyzModem_get_hdr()
388 cksum = crc16_ccitt(0, xyz.pkt, xyz.len); in xyzModem_get_hdr()
401 cksum += xyz.pkt[i]; in xyzModem_get_hdr()

Completed in 52 milliseconds

12