Home
last modified time | relevance | path

Searched refs:IpHeader (Results 1 – 6 of 6) sorted by relevance

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java69 byte[] getPacketBytes(IpHeader header) throws Exception; in getPacketBytes()
71 void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception; in addPacketBytes()
78 public abstract static class IpHeader { class in PacketUtils
85 public IpHeader(int proto, InetAddress src, InetAddress dst, Payload payload) { in IpHeader() method in PacketUtils.IpHeader
97 public static class Ip4Header extends IpHeader {
168 public static class Ip6Header extends IpHeader {
219 public byte[] getPacketBytes(IpHeader header) { in getPacketBytes()
226 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) { in addPacketBytes()
255 public byte[] getPacketBytes(IpHeader header) throws Exception { in getPacketBytes()
262 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception { in addPacketBytes()
[all …]
DIkeTunUtils.java23 import static android.ipsec.ike.cts.PacketUtils.IpHeader;
360 IpHeader ipPkt = getIpHeader(udpPkt.getProtocolId(), srcAddr, dstAddr, udpPkt); in buildIkePacket()
364 private static IpHeader getIpHeader( in getIpHeader()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java109 byte[] getPacketBytes(IpHeader header) throws Exception; in getPacketBytes()
111 void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception; in addPacketBytes()
118 public abstract static class IpHeader { class in PacketUtils
125 public IpHeader(int proto, InetAddress src, InetAddress dst, Payload payload) { in IpHeader() method in PacketUtils.IpHeader
137 public static class Ip4Header extends IpHeader {
208 public static class Ip6Header extends IpHeader {
259 public byte[] getPacketBytes(IpHeader header) { in getPacketBytes()
266 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) { in addPacketBytes()
295 public byte[] getPacketBytes(IpHeader header) throws Exception { in getPacketBytes()
302 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception { in addPacketBytes()
[all …]
DIkeTunUtils.java21 import static android.net.cts.PacketUtils.IpHeader;
185 final IpHeader ipPkt = getIpHeader(udpPkt.getProtocolId(), srcAddr, dstAddr, udpPkt); in buildIkePacket()
DIpSecAlgorithmImplTest.java65 import android.net.cts.PacketUtils.IpHeader;
117 final IpHeader preEspIpHeader = in buildTransportModeEspPayload()
DIpSecManagerTunnelTest.java27 import static android.net.cts.PacketUtils.IpHeader;
905 IpHeader preEspIpHeader = getIpHeader(payload.getProtocolId(), src, dst, payload);
925 IpHeader innerIp = getIpHeader(payload.getProtocolId(), srcInner, dstInner, payload);
934 private IpHeader maybeEncapPacket(