aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/net_common.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-19 15:23:51 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 18:43:09 -0800
commit9f28245c26c46e57448c4d8f3a2c4e038d6abd2a (patch)
tree5f86527ee1272a3b663dd737164a23980e69ab6a /firmware/microblaze/lib/net_common.c
parent8f07cc031b944668f18112fd9ec11228227e2207 (diff)
downloaduhd-9f28245c26c46e57448c4d8f3a2c4e038d6abd2a.tar.gz
uhd-9f28245c26c46e57448c4d8f3a2c4e038d6abd2a.tar.bz2
uhd-9f28245c26c46e57448c4d8f3a2c4e038d6abd2a.zip
packet_router: added helper functions to packet router, added clear, fixed handshake, garp at start
Diffstat (limited to 'firmware/microblaze/lib/net_common.c')
-rw-r--r--firmware/microblaze/lib/net_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/net_common.c b/firmware/microblaze/lib/net_common.c
index cb1ced46c..48aa460f9 100644
--- a/firmware/microblaze/lib/net_common.c
+++ b/firmware/microblaze/lib/net_common.c
@@ -168,6 +168,7 @@ send_pkt(eth_mac_addr_t dst, int ethertype,
total_len = 60;
pkt_ctrl_commit_outgoing_buffer(total_len/4);
+ //printf("sent %d bytes\n", total_len);
}
unsigned int
@@ -389,6 +390,8 @@ handle_arp_packet(struct arp_eth_ipv4 *p, size_t size)
void
handle_eth_packet(uint32_t *p, size_t nlines)
{
+ //static size_t bcount = 0;
+ //printf("===> %d\n", bcount++);
//print_buffer(p, nlines);
padded_eth_hdr_t *eth_hdr = (padded_eth_hdr_t *)p;