tcpiputils/dhcp/src/DHCPIP4Msg.cpp
branchRCL_3
changeset 20 7e41d162e158
parent 0 af10295192d8
child 21 abbed5a4b42a
--- a/tcpiputils/dhcp/src/DHCPIP4Msg.cpp	Thu Jul 15 20:25:02 2010 +0300
+++ b/tcpiputils/dhcp/src/DHCPIP4Msg.cpp	Thu Aug 19 11:25:30 2010 +0300
@@ -368,6 +368,22 @@
 	return pNode != NULL;
 	}
 
+TBool COptionList::CopyDomainSearchL(HBufC8*& aBuf8) const
+/**
+  * Return a copy of the domain search list given in the message 
+  *
+  * @param aBuf8 A descriptor for the domain search list to be written into
+  * @return TBool If the copy was successful or not 
+  */
+    {
+    COptionNode* pNode = FindOption(EDHCPDomainSearch);
+    if (pNode)
+        {
+        pNode->CopyBodyToL(aBuf8);
+        }
+    return pNode != NULL;
+    }
+
 CDHCPMessageHeaderIP4::CDHCPMessageHeaderIP4(HBufC8*& aMsg) :
 	CDHCPMessageHeader(&iXid, 4, aMsg), //|     op (1)    |   htype (1)   |   hlen (1)    |   hops (1)    |
 		iXid(&iSecs, 4), iSecs(&iFlags, 2), iFlags(&iCiaddr, 2),