Home
last modified time | relevance | path

Searched refs:encap (Results 1 – 16 of 16) sorted by relevance

/aosp12/packages/modules/NetworkStack/src/android/net/dhcp/
H A DDhcpPacket.java395 public abstract ByteBuffer buildPacket(int encap, short destUdp, in buildPacket() argument
493 protected void fillInPacket(int encap, Inet4Address destIp, in fillInPacket() argument
509 if (encap == ENCAP_L2) { in fillInPacket()
518 if (encap <= ENCAP_L3) { in fillInPacket()
578 if (encap <= ENCAP_L3) { in fillInPacket()
1491 return pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildDiscoverPacket()
1534 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildOfferPacket()
1579 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildAckPacket()
1606 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildNakPacket()
1612 public static ByteBuffer buildRequestPacket(int encap, in buildRequestPacket() argument
[all …]
H A DDhcpReleasePacket.java42 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
44 fillInPacket(encap, mServerIdentifier /* destIp */, mClientIp /* srcIp */, destUdp, srcUdp, in buildPacket()
H A DDhcpInformPacket.java43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
46 fillInPacket(encap, mClientIp, mYourIp, destUdp, srcUdp, result, in buildPacket()
H A DDhcpNakPacket.java43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
49 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, DHCP_BOOTREPLY, mBroadcast); in buildPacket()
H A DDhcpDeclinePacket.java45 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
48 fillInPacket(encap, mClientIp, mYourIp, destUdp, srcUdp, result, in buildPacket()
H A DDhcpDiscoverPacket.java50 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
52 fillInPacket(encap, INADDR_BROADCAST, mSrcIp, destUdp, srcUdp, result, DHCP_BOOTREQUEST, in buildPacket()
H A DDhcpRequestPacket.java44 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
47 fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp, srcUdp, in buildPacket()
H A DDhcpOfferPacket.java61 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
66 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
H A DDhcpAckPacket.java59 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
64 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
H A DDhcpClient.java721 private boolean transmitPacket(ByteBuffer buf, String description, int encap, Inet4Address to) { in transmitPacket() argument
723 if (encap == DhcpPacket.ENCAP_L2) { in transmitPacket()
726 } else if (encap == DhcpPacket.ENCAP_BOOTP && to.equals(INADDR_BROADCAST)) { in transmitPacket()
762 final int encap = INADDR_ANY.equals(clientAddress) in sendRequestPacket() local
766 encap, mTransactionId, getSecs(), clientAddress, DO_UNICAST, mHwAddr, in sendRequestPacket()
774 return transmitPacket(packet, description, encap, to); in sendRequestPacket()
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DTunUtils.java172 byte[] pkt, int spi, boolean encap, byte[] plaintext) { in isEspFailIfSpecifiedPlaintextFound() argument
177 return isEsp(pkt, spi, encap); in isEspFailIfSpecifiedPlaintextFound()
180 private static boolean isEsp(byte[] pkt, int spi, boolean encap) { in isEsp() argument
186 if (encap) { in isEsp()
/aosp12/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
H A DTunUtils.java139 public byte[] getEspPacket(int spi, boolean encap, int startIndex) { in getEspPacket() argument
142 return isEsp(pkt, spi, encap); in getEspPacket()
186 private static boolean isEsp(byte[] pkt, int spi, boolean encap) { in isEsp() argument
192 if (encap) { in isEsp()
/aosp12/bionic/libc/kernel/uapi/linux/netfilter_bridge/
H A Debt_vlan.h30 __be16 encap; member
/aosp12/system/netd/server/
H A DXfrmController.cpp594 saInfo.encap.srcPort = encapLocalPort; in ipSecAddSecurityAssociation()
595 saInfo.encap.dstPort = encapRemotePort; in ipSecAddSecurityAssociation()
598 saInfo.encap.type = static_cast<XfrmEncapType>(encapType); in ipSecAddSecurityAssociation()
949 nlattr_encap_tmpl encap{}; in updateSecurityAssociation() local
986 {&encap, 0}, // adjust size if encapsulating in updateSecurityAssociation()
1031 len = iov[ENCAP].iov_len = fillNlAttrXfrmEncapTmpl(record, &encap); in updateSecurityAssociation()
1097 if (record.encap.type == XfrmEncapType::NONE) { in fillNlAttrXfrmEncapTmpl()
1102 tmpl->tmpl.encap_type = static_cast<uint16_t>(record.encap.type); in fillNlAttrXfrmEncapTmpl()
1103 tmpl->tmpl.encap_sport = htons(record.encap.srcPort); in fillNlAttrXfrmEncapTmpl()
1104 tmpl->tmpl.encap_dport = htons(record.encap.dstPort); in fillNlAttrXfrmEncapTmpl()
H A DXfrmController.h130 XfrmEncap encap; member
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
H A DDhcpPacketTest.java142 public ByteBuffer buildPacket(int encap, short unusedDestUdp, short unusedSrcUdp) { in buildPacket() argument
144 fillInPacket(encap, CLIENT_ADDR, SERVER_ADDR, in buildPacket()