powerpc/ps3: gelic_udbg: use struct iphdr from <linux/ip.h>
authorLuis Henriques <luis.henriques@canonical.com>
Mon, 8 Feb 2016 22:27:06 +0000 (22:27 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2016 08:27:20 +0000 (19:27 +1100)
commit0336c8cd4d61231a6745a99f74929b2f09519d87
treeed87a9ca019d6ae5167a81b11c4ade11faa8499e
parente9aaa6d1abcffcf7b8060072e71c0773fb40015d
powerpc/ps3: gelic_udbg: use struct iphdr from <linux/ip.h>

Instead of defining a local version of struct iphdr use the standard
definition from <linux/ip.h>.

Several fields in the <linux/ip.h> definition have different names:
 - proto -> protocol
 - src -> saddr
 - dest -> daddr
 - total_length -> tot_len
 - checksum -> check

Also, 'ver_len' is composed by 'version' and 'ihl' in <linux/ip.h>.

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/ps3/gelic_udbg.c