diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-04 18:34:28 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-04 18:34:28 -0800 |
commit | bb86022d5a5f7055cdeebaeb4a55216e1a056fd4 (patch) | |
tree | 8dd96e7b0fcef00fde57da97d44e012cc6177670 /firmware/microblaze/lib/net_common.c | |
parent | 821c31417894bed5603dc1a18415d4a35ddd7c2d (diff) | |
download | uhd-bb86022d5a5f7055cdeebaeb4a55216e1a056fd4.tar.gz uhd-bb86022d5a5f7055cdeebaeb4a55216e1a056fd4.tar.bz2 uhd-bb86022d5a5f7055cdeebaeb4a55216e1a056fd4.zip |
Moved timeouts into the udp transports.
Simplified the fast path checking in the fw, but it turns out this was not the issue.
Fixed some bad bit operations with the 16sc words (dont forget sign extension).
Added some more documentation to the headers....
Diffstat (limited to 'firmware/microblaze/lib/net_common.c')
-rw-r--r-- | firmware/microblaze/lib/net_common.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/firmware/microblaze/lib/net_common.c b/firmware/microblaze/lib/net_common.c index ab7aadca9..693502d18 100644 --- a/firmware/microblaze/lib/net_common.c +++ b/firmware/microblaze/lib/net_common.c @@ -378,17 +378,6 @@ handle_arp_packet(struct arp_eth_ipv4 *p, size_t size) } } -bool is_udp_packet_with_vrt(uint32_t *p, size_t nlines, int port){ - struct ip_hdr *ip = (struct ip_hdr *)(p + 4); - struct udp_hdr *udp = (struct udp_hdr *)(((char *)ip) + IP_HLEN); - uint32_t *payload = (uint32_t *)(((char *)udp) + UDP_HLEN); - return \ - (p[3] & 0xffff) == ETHERTYPE_IPV4 && - IPH_PROTO(ip) == IP_PROTO_UDP && - udp->dest == port && - payload[0] != 0; //must be non zero vrt header -} - void handle_eth_packet(uint32_t *p, size_t nlines) { |