net: Add a helper to parse netif_stats
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 13 Nov 2017 19:59:48 +0000 (14:59 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 15:46:57 +0000 (10:46 -0500)
commitc985f1a4260cb22f932c67e25f74e9cdbf677087
tree2c0209e4efb099ae39492907be726fd6a794cec3
parent1317ca74d99a5f8c0b84a38f8a07582d8fadf48c
net: Add a helper to parse netif_stats

NIC drivers can use this for their ifstats function.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/net/ip.h
kern/src/net/netif.c