Lines Matching defs:pTftpIpHeader
566 PTFTPIPHDR pTftpIpHeader;
583 pTftpIpHeader = mtod(m, PTFTPIPHDR);
586 pTftpIpHeader->u16TftpOpType = RT_H2N_U16_C(TFTP_OACK);
610 PTFTPIPHDR pTftpIpHeader = NULL;
624 pTftpIpHeader = mtod(m, PTFTPIPHDR);
626 pTftpIpHeader->u16TftpOpType = RT_H2N_U16_C(TFTP_ERROR);
627 pTftpIpHeader->Core.u16TftpOpCode = RT_H2N_U16(errorcode);
645 PTFTPIPHDR pTftpIpHeader;
664 pTftpIpHeader = mtod(m, PTFTPIPHDR);
667 pTftpIpHeader->u16TftpOpType = RT_H2N_U16_C(TFTP_DATA);
668 pTftpIpHeader->Core.u16TftpOpCode = RT_H2N_U16(pTftpSession->cTftpAck);
670 rc = tftpReadDataBlock(pData, pTftpSession, (uint8_t *)&pTftpIpHeader->Core.u16TftpOpCode + sizeof(uint16_t), &cbRead);
693 DECLINLINE(void) tftpProcessRRQ(PNATState pData, PCTFTPIPHDR pTftpIpHeader, int pktlen)
701 AssertPtrReturnVoid(pTftpIpHeader);
704 LogFlowFunc(("ENTER: pTftpIpHeader:%p, pktlen:%d\n", pTftpIpHeader, pktlen));
706 rc = tftpAllocateSession(pData, pTftpIpHeader, &pTftpSession);
714 pu8Payload = (uint8_t *)&pTftpIpHeader->Core;
728 tftpSendError(pData, pTftpSession, 2, "Access violation", pTftpIpHeader);
737 tftpSendError(pData, pTftpSession, 4, "Unsupported transfer mode", pTftpIpHeader);
743 tftpSendOACK(pData, pTftpSession, pTftpIpHeader);
748 static void tftpProcessACK(PNATState pData, PTFTPIPHDR pTftpIpHeader)
753 rc = tftpSessionFind(pData, pTftpIpHeader, &pTftpSession);
758 RT_N2H_U16(pTftpIpHeader->Core.u16TftpOpCode),
759 pTftpIpHeader))
778 PTFTPIPHDR pTftpIpHeader = NULL;
781 pTftpIpHeader = mtod(pMbuf, PTFTPIPHDR);
783 switch(RT_N2H_U16(pTftpIpHeader->u16TftpOpType))
786 tftpProcessRRQ(pData, pTftpIpHeader, m_length(pMbuf, NULL));
790 tftpProcessACK(pData, pTftpIpHeader);