diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-15 11:22:25 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-15 11:22:25 -0700 |
commit | 52229e99c90966c392f8ec74752912e3f00eec1d (patch) | |
tree | c72cfdb388745c13c73859cd254bb2ae5d7fb804 /firmware/microblaze/lib/net_common.c | |
parent | 39ca8e25fc7f9b3170cb517b72640a62b15d253f (diff) | |
parent | 26b7de0ac0cd64946582b2d52ab0bb3555156039 (diff) | |
download | uhd-52229e99c90966c392f8ec74752912e3f00eec1d.tar.gz uhd-52229e99c90966c392f8ec74752912e3f00eec1d.tar.bz2 uhd-52229e99c90966c392f8ec74752912e3f00eec1d.zip |
Merge branch 'flow_ctrl_with_fpga'
Diffstat (limited to 'firmware/microblaze/lib/net_common.c')
-rw-r--r-- | firmware/microblaze/lib/net_common.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/microblaze/lib/net_common.c b/firmware/microblaze/lib/net_common.c index 6c9509c92..0efb26639 100644 --- a/firmware/microblaze/lib/net_common.c +++ b/firmware/microblaze/lib/net_common.c @@ -291,8 +291,17 @@ handle_icmp_packet(struct ip_addr src, struct ip_addr dst, { switch (icmp->type){ case ICMP_DUR: // Destinatino Unreachable - //stop_streaming(); //FIXME if (icmp->code == ICMP_DUR_PORT){ // port unreachable + //handle destination port unreachable (the host ctrl+c'd the app): + + //end async update packets per second + sr_tx_ctrl->cyc_per_up = 0; + + //the end continuous streaming command + sr_rx_ctrl->cmd = (1 << 31) | 1; //one sample, asap + sr_rx_ctrl->time_secs = 0; + sr_rx_ctrl->time_ticks = 0; //latch the command + //struct udp_hdr *udp = (struct udp_hdr *)((char *)icmp + 28); //printf("icmp port unr %d\n", udp->dest); putchar('i'); |