Lines Matching refs:Option
548 UINT8 *Option; in Dhcp6UpdateIaInfo() local
568 Option = Dhcp6SeekIaOption ( in Dhcp6UpdateIaInfo()
569 Packet->Dhcp6.Option, in Dhcp6UpdateIaInfo()
573 if (Option == NULL) { in Dhcp6UpdateIaInfo()
619 T1 = NTOHL (ReadUnaligned32 ((UINT32 *) (Option + 8))); in Dhcp6UpdateIaInfo()
620 T2 = NTOHL (ReadUnaligned32 ((UINT32 *) (Option + 12))); in Dhcp6UpdateIaInfo()
629 IaInnerOpt = Option + 16; in Dhcp6UpdateIaInfo()
630 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (Option + 2))) - 12); in Dhcp6UpdateIaInfo()
634 IaInnerOpt = Option + 8; in Dhcp6UpdateIaInfo()
635 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (Option + 2))) - 4); in Dhcp6UpdateIaInfo()
658 Option = Dhcp6SeekOption (IaInnerOpt, IaInnerLen, Dhcp6OptStatusCode); in Dhcp6UpdateIaInfo()
660 if (Option != NULL) { in Dhcp6UpdateIaInfo()
661 StsCode = NTOHS (ReadUnaligned16 ((UINT16 *) (Option + 4))); in Dhcp6UpdateIaInfo()
700 OUT UINT8 **Option in Dhcp6SeekStsOption() argument
711 *Option = Dhcp6SeekOption ( in Dhcp6SeekStsOption()
712 Packet->Dhcp6.Option, in Dhcp6SeekStsOption()
717 if (*Option != NULL) { in Dhcp6SeekStsOption()
718 StsCode = NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 4))); in Dhcp6SeekStsOption()
727 *Option = Dhcp6SeekIaOption ( in Dhcp6SeekStsOption()
728 Packet->Dhcp6.Option, in Dhcp6SeekStsOption()
732 if (*Option == NULL) { in Dhcp6SeekStsOption()
778 IaInnerOpt = *Option + 16; in Dhcp6SeekStsOption()
779 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 2))) - 12); in Dhcp6SeekStsOption()
781 IaInnerOpt = *Option + 8; in Dhcp6SeekStsOption()
782 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 2))) - 4); in Dhcp6SeekStsOption()
804 *Option = Dhcp6SeekOption (IaInnerOpt, IaInnerLen, Dhcp6OptStatusCode); in Dhcp6SeekStsOption()
805 if (*Option != NULL) { in Dhcp6SeekStsOption()
806 StsCode = NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 4))); in Dhcp6SeekStsOption()
965 Cursor = Packet->Dhcp6.Option; in Dhcp6SendSolicitMsg()
1006 Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option); in Dhcp6SendSolicitMsg()
1092 UINT8 *Option; in Dhcp6SendRequestMsg() local
1112 Option = Dhcp6SeekOption ( in Dhcp6SendRequestMsg()
1113 Instance->AdSelect->Dhcp6.Option, in Dhcp6SendRequestMsg()
1117 if (Option == NULL) { in Dhcp6SendRequestMsg()
1121 ServerId = (EFI_DHCP6_DUID *) (Option + 2); in Dhcp6SendRequestMsg()
1147 Cursor = Packet->Dhcp6.Option; in Dhcp6SendRequestMsg()
1195 Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option); in Dhcp6SendRequestMsg()
1256 UINT8 *Option; in Dhcp6SendDeclineMsg() local
1275 Option = Dhcp6SeekOption ( in Dhcp6SendDeclineMsg()
1276 LastReply->Dhcp6.Option, in Dhcp6SendDeclineMsg()
1280 if (Option == NULL) { in Dhcp6SendDeclineMsg()
1287 ServerId = (EFI_DHCP6_DUID *) (Option + 2); in Dhcp6SendDeclineMsg()
1305 Cursor = Packet->Dhcp6.Option; in Dhcp6SendDeclineMsg()
1333 Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option); in Dhcp6SendDeclineMsg()
1394 UINT8 *Option; in Dhcp6SendReleaseMsg() local
1412 Option = Dhcp6SeekOption ( in Dhcp6SendReleaseMsg()
1413 LastReply->Dhcp6.Option, in Dhcp6SendReleaseMsg()
1417 if (Option == NULL) { in Dhcp6SendReleaseMsg()
1421 ServerId = (EFI_DHCP6_DUID *) (Option + 2); in Dhcp6SendReleaseMsg()
1439 Cursor = Packet->Dhcp6.Option; in Dhcp6SendReleaseMsg()
1470 Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option); in Dhcp6SendReleaseMsg()
1531 UINT8 *Option; in Dhcp6SendRenewRebindMsg() local
1570 Cursor = Packet->Dhcp6.Option; in Dhcp6SendRenewRebindMsg()
1602 Option = Dhcp6SeekOption ( in Dhcp6SendRenewRebindMsg()
1603 LastReply->Dhcp6.Option, in Dhcp6SendRenewRebindMsg()
1607 if (Option == NULL) { in Dhcp6SendRenewRebindMsg()
1612 ServerId = (EFI_DHCP6_DUID *) (Option + 2); in Dhcp6SendRenewRebindMsg()
1639 Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option); in Dhcp6SendRenewRebindMsg()
1855 Cursor = Packet->Dhcp6.Option; in Dhcp6SendInfoRequestMsg()
1897 Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option); in Dhcp6SendInfoRequestMsg()
1981 Cursor = Packet->Dhcp6.Option; in Dhcp6SendConfirmMsg()
2021 Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option); in Dhcp6SendConfirmMsg()
2078 UINT8 *Option; in Dhcp6HandleReplyMsg() local
2098 Option = Dhcp6SeekOption ( in Dhcp6HandleReplyMsg()
2099 Packet->Dhcp6.Option, in Dhcp6HandleReplyMsg()
2104 …if ((Option != NULL && !Instance->Config->RapidCommit) || (Option == NULL && Instance->Config->Rap… in Dhcp6HandleReplyMsg()
2117 Option = Dhcp6SeekIaOption ( in Dhcp6HandleReplyMsg()
2118 Packet->Dhcp6.Option, in Dhcp6HandleReplyMsg()
2122 if (Option == NULL) { in Dhcp6HandleReplyMsg()
2178 Option = NULL; in Dhcp6HandleReplyMsg()
2182 &Option in Dhcp6HandleReplyMsg()
2244 } else if (Option != NULL) { in Dhcp6HandleReplyMsg()
2248 StsCode = NTOHS (ReadUnaligned16 ((UINT16 *) (Option + 4))); in Dhcp6HandleReplyMsg()
2344 UINT8 *Option; in Dhcp6SelectAdvertiseMsg() local
2377 Option = Dhcp6SeekOption( in Dhcp6SelectAdvertiseMsg()
2378 AdSelect->Dhcp6.Option, in Dhcp6SelectAdvertiseMsg()
2383 if (Option != NULL) { in Dhcp6SelectAdvertiseMsg()
2391 CopyMem (Instance->Unicast, Option + 4, sizeof(EFI_IPv6_ADDRESS)); in Dhcp6SelectAdvertiseMsg()
2429 UINT8 *Option; in Dhcp6HandleAdvertiseMsg() local
2443 Option = Dhcp6SeekOption( in Dhcp6HandleAdvertiseMsg()
2444 Packet->Dhcp6.Option, in Dhcp6HandleAdvertiseMsg()
2449 …if (Option != NULL && Instance->Config->RapidCommit && Packet->Dhcp6.Header.MessageType == Dhcp6Ms… in Dhcp6HandleAdvertiseMsg()
2467 &Option in Dhcp6HandleAdvertiseMsg()
2516 Option = Dhcp6SeekOption( in Dhcp6HandleAdvertiseMsg()
2517 Packet->Dhcp6.Option, in Dhcp6HandleAdvertiseMsg()
2522 if (Instance->AdSelect == NULL || (Option != NULL && *(Option + 4) > Instance->AdPref)) { in Dhcp6HandleAdvertiseMsg()
2540 if (Option != NULL) { in Dhcp6HandleAdvertiseMsg()
2541 Instance->AdPref = *(Option + 4); in Dhcp6HandleAdvertiseMsg()
2586 UINT8 *Option; in Dhcp6HandleStateful() local
2610 Option = Dhcp6SeekOption( in Dhcp6HandleStateful()
2611 Packet->Dhcp6.Option, in Dhcp6HandleStateful()
2616 if (Option == NULL || CompareMem (Option + 4, ClientId->Duid, ClientId->Length) != 0) { in Dhcp6HandleStateful()
2623 Option = Dhcp6SeekOption( in Dhcp6HandleStateful()
2624 Packet->Dhcp6.Option, in Dhcp6HandleStateful()
2629 if (Option == NULL) { in Dhcp6HandleStateful()
2698 UINT8 *Option; in Dhcp6HandleStateless() local
2728 Option = Dhcp6SeekOption ( in Dhcp6HandleStateless()
2729 Packet->Dhcp6.Option, in Dhcp6HandleStateless()
2734 if (Option == NULL) { in Dhcp6HandleStateless()