|
From: | Mattias Kjellsson |
Subject: | [Discuss-gnuradio] Regarding 371 samples/frame in usrp2 |
Date: | Wed, 05 Nov 2008 18:15:03 +0100 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
But when I look at the output of ifconfig my MTU is set to 1500, but when I print out how much data is received from a raw socket (listening to some random network traffic), it tells me it reads max 1514 bytes, which I figured is 1500 bytes of data, and 2*6 bytes mac- addresses + 2 bytes of protocol. This gives me two questions. Is there (probably) something I missed here, or should we be able to increase U2_MAX_SAMPLES to 375 (1500/4 = 375), not that four samples might make a huge difference in the end, but still... And the other question, shouldn't one check for the MTU set by the nic and calculate this number, instead of having it #defined? But then again, it would be a whole lot of re- writing, since U2_MAX_SAMPLES is #defined... Or have I missed some fundamental here?
BR Mattias Kjellsson
[Prev in Thread] | Current Thread | [Next in Thread] |