]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1964f82878233890a6297e54df68bb7a26936825
treeed87a9ca019d6ae5167a81b11c4ade11faa8499e
parent003b74a9506130cdc8f3c4a6813e03b9c0911c8a
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