public class android.net.util.IpUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: android.net.util.IpUtils
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Landroid/net/util/IpUtils;
private static int intAbs(short);
descriptor: (S)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ldc 65535
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 v S
MethodParameters:
Name Flags
v
private static int checksum(java.nio.ByteBuffer, int, int, int);
descriptor: (Ljava/nio/ByteBuffer;III)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
istore 4
start local 4 1: aload 0
invokevirtual java.nio.ByteBuffer.position:()I
istore 5
start local 5 2: aload 0
iload 2
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
3: aload 0
invokevirtual java.nio.ByteBuffer.asShortBuffer:()Ljava/nio/ShortBuffer;
astore 6
start local 6 4: aload 0
iload 5
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
5: iload 3
iload 2
isub
iconst_2
idiv
istore 7
start local 7 6: iconst_0
istore 8
start local 8 7: goto 10
8: StackMap locals: java.nio.ByteBuffer int int int int int java.nio.ShortBuffer int int
StackMap stack:
iload 4
aload 6
iload 8
invokevirtual java.nio.ShortBuffer.get:(I)S
invokestatic android.net.util.IpUtils.intAbs:(S)I
iadd
istore 4
9: iinc 8 1
StackMap locals:
StackMap stack:
10: iload 8
iload 7
if_icmplt 8
end local 8 11: iload 2
iload 7
iconst_2
imul
iadd
istore 2
12: iload 3
iload 2
if_icmpeq 17
13: aload 0
iload 2
invokevirtual java.nio.ByteBuffer.get:(I)B
istore 8
start local 8 14: iload 8
ifge 16
15: iload 8
sipush 256
iadd
i2s
istore 8
16: StackMap locals: java.nio.ByteBuffer int int int int int java.nio.ShortBuffer int int
StackMap stack:
iload 4
iload 8
sipush 256
imul
iadd
istore 4
end local 8 17: StackMap locals:
StackMap stack:
iload 4
bipush 16
ishr
ldc 65535
iand
iload 4
ldc 65535
iand
iadd
istore 4
18: iload 4
iload 4
bipush 16
ishr
ldc 65535
iand
iadd
ldc 65535
iand
istore 4
19: iload 4
iconst_m1
ixor
istore 8
start local 8 20: iload 8
i2s
invokestatic android.net.util.IpUtils.intAbs:(S)I
ireturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 buf Ljava/nio/ByteBuffer;
0 21 1 seed I
0 21 2 start I
0 21 3 end I
1 21 4 sum I
2 21 5 bufPosition I
4 21 6 shortBuf Ljava/nio/ShortBuffer;
6 21 7 numShorts I
7 11 8 i I
14 17 8 b S
20 21 8 negated I
MethodParameters:
Name Flags
buf
seed
start
end
private static int pseudoChecksumIPv4(java.nio.ByteBuffer, int, int, int);
descriptor: (Ljava/nio/ByteBuffer;III)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
iadd
istore 4
start local 4 1: iload 4
aload 0
iload 1
bipush 12
iadd
invokevirtual java.nio.ByteBuffer.getShort:(I)S
invokestatic android.net.util.IpUtils.intAbs:(S)I
iadd
istore 4
2: iload 4
aload 0
iload 1
bipush 14
iadd
invokevirtual java.nio.ByteBuffer.getShort:(I)S
invokestatic android.net.util.IpUtils.intAbs:(S)I
iadd
istore 4
3: iload 4
aload 0
iload 1
bipush 16
iadd
invokevirtual java.nio.ByteBuffer.getShort:(I)S
invokestatic android.net.util.IpUtils.intAbs:(S)I
iadd
istore 4
4: iload 4
aload 0
iload 1
bipush 18
iadd
invokevirtual java.nio.ByteBuffer.getShort:(I)S
invokestatic android.net.util.IpUtils.intAbs:(S)I
iadd
istore 4
5: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 buf Ljava/nio/ByteBuffer;
0 6 1 headerOffset I
0 6 2 protocol I
0 6 3 transportLen I
1 6 4 partial I
MethodParameters:
Name Flags
buf
headerOffset
protocol
transportLen
private static int pseudoChecksumIPv6(java.nio.ByteBuffer, int, int, int);
descriptor: (Ljava/nio/ByteBuffer;III)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
iadd
istore 4
start local 4 1: bipush 8
istore 5
start local 5 2: goto 5
3: StackMap locals: int int
StackMap stack:
iload 4
aload 0
iload 1
iload 5
iadd
invokevirtual java.nio.ByteBuffer.getShort:(I)S
invokestatic android.net.util.IpUtils.intAbs:(S)I
iadd
istore 4
4: iinc 5 2
StackMap locals:
StackMap stack:
5: iload 5
bipush 40
if_icmplt 3
end local 5 6: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 buf Ljava/nio/ByteBuffer;
0 7 1 headerOffset I
0 7 2 protocol I
0 7 3 transportLen I
1 7 4 partial I
2 6 5 offset I
MethodParameters:
Name Flags
buf
headerOffset
protocol
transportLen
private static byte ipversion(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.nio.ByteBuffer.get:(I)B
bipush -16
iand
iconst_4
ishr
i2b
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf Ljava/nio/ByteBuffer;
0 1 1 headerOffset I
MethodParameters:
Name Flags
buf
headerOffset
public static short ipChecksum(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.nio.ByteBuffer.get:(I)B
bipush 15
iand
i2b
istore 2
start local 2 1: aload 0
iconst_0
iload 1
iload 1
iload 2
iconst_4
imul
iadd
invokestatic android.net.util.IpUtils.checksum:(Ljava/nio/ByteBuffer;III)I
i2s
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 buf Ljava/nio/ByteBuffer;
0 2 1 headerOffset I
1 2 2 ihl B
MethodParameters:
Name Flags
buf
headerOffset
private static short transportChecksum(java.nio.ByteBuffer, int, int, int, int);
descriptor: (Ljava/nio/ByteBuffer;IIII)S
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=5
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tIPPROTO_UDP cannot be resolved to a variable\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
buf
protocol
ipOffset
transportOffset
transportLen
public static short udpChecksum(java.nio.ByteBuffer, int, int);
descriptor: (Ljava/nio/ByteBuffer;II)S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tIPPROTO_UDP cannot be resolved to a variable\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
buf
ipOffset
transportOffset
public static short tcpChecksum(java.nio.ByteBuffer, int, int, int);
descriptor: (Ljava/nio/ByteBuffer;III)S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=4
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tIPPROTO_TCP cannot be resolved to a variable\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
buf
ipOffset
transportOffset
transportLen
public static java.lang.String addressAndPortToString(java.net.InetAddress, int);
descriptor: (Ljava/net/InetAddress;I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
instanceof java.net.Inet6Address
ifeq 1
ldc "[%s]:%d"
goto 2
StackMap locals:
StackMap stack:
1: ldc "%s:%d"
StackMap locals:
StackMap stack: java.lang.String
2: iconst_2
anewarray java.lang.Object
dup
iconst_0
3: aload 0
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
4: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 address Ljava/net/InetAddress;
0 5 1 port I
MethodParameters:
Name Flags
address
port
public static boolean isValidUdpOrTcpPort(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ifle 1
iload 0
ldc 65536
if_icmpge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 port I
MethodParameters:
Name Flags
port
}
SourceFile: "IpUtils.java"