Added tx/rx memory size functions
Fixed some mistakes in tx/rx memory size handling
Fixed bug in UDP flush()
Merge branch 'skip'
Merge branch 'memory_sizes'