Searched refs:udpDstPort (Results 1 – 2 of 2) sorted by relevance
952 private static boolean isPacketToOrFromClient(short udpSrcPort, short udpDstPort) { in isPacketToOrFromClient() argument953 return (udpSrcPort == DHCP_CLIENT) || (udpDstPort == DHCP_CLIENT); in isPacketToOrFromClient()956 private static boolean isPacketServerToServer(short udpSrcPort, short udpDstPort) { in isPacketServerToServer() argument957 return (udpSrcPort == DHCP_SERVER) && (udpDstPort == DHCP_SERVER); in isPacketServerToServer()1105 short udpDstPort = packet.getShort(); in decodeFullPacket() local1112 if (!isPacketToOrFromClient(udpSrcPort, udpDstPort) && in decodeFullPacket()1113 !isPacketServerToServer(udpSrcPort, udpDstPort)) { in decodeFullPacket()1119 "Unexpected UDP ports %d->%d", udpSrcPort, udpDstPort); in decodeFullPacket()
1031 final short udpDstPort = buffer.getShort();1032 if (udpSrcPort != DHCP_CLIENT || udpDstPort != DHCP_SERVER) return false;1075 final short udpDstPort = buffer.getShort();1076 return (udpSrcPort == DHCP6_CLIENT_PORT && udpDstPort == DHCP6_SERVER_PORT);