Skip to content
Snippets Groups Projects
Commit def4359b authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

ClatEgress4Value.java - replace U32 ifindex with S32


These are allocated in order by the kernel, if we go
over 2 billion, we've got other problems... besides
U32 to S32 conversion will work just fine anyway.

Test: TreeHugger
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I9c157a57278dcd43b464c853d1107a933c1fd8df
parent f6a4f3ea
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,8 @@ import java.net.Inet6Address;
/** Value type for clat egress IPv4 maps. */
public class ClatEgress4Value extends Struct {
@Field(order = 0, type = Type.U32)
public final long oif; // The output interface to redirect to
@Field(order = 0, type = Type.S32)
public final int oif; // The output interface to redirect to
@Field(order = 1, type = Type.Ipv6Address)
public final Inet6Address local6; // The full 128-bits of the source IPv6 address
......@@ -36,7 +36,7 @@ public class ClatEgress4Value extends Struct {
@Field(order = 3, type = Type.U8, padding = 3)
public final short oifIsEthernet; // Whether the output interface requires ethernet header
public ClatEgress4Value(final long oif, final Inet6Address local6, final Inet6Address pfx96,
public ClatEgress4Value(final int oif, final Inet6Address local6, final Inet6Address pfx96,
final short oifIsEthernet) {
this.oif = oif;
this.local6 = local6;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment