]> 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)
commit89173e6afc3b6c4519bc8217ffcab04ad962bfa7
treeed87a9ca019d6ae5167a81b11c4ade11faa8499e
parent1ac5342e9c6b5e6dc7fd50cae14f274fa20ac630
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