Changeset 49567 in vbox
- Timestamp:
- Nov 20, 2013 8:52:10 AM (11 years ago)
- Location:
- trunk/src/VBox/NetworkServices/DHCP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/Config.cpp
r49566 r49567 698 698 699 699 700 const RTNETADDRIPV4& NetworkManager::getOurAddress() const 701 { 702 return m->m_OurAddress; 703 } 704 705 706 const RTNETADDRIPV4& NetworkManager::getOurNetmask() const 707 { 708 return m->m_OurNetmask; 709 } 710 711 712 const RTMAC& NetworkManager::getOurMac() const 713 { 714 return m->m_OurMac; 715 } 716 717 718 void NetworkManager::setOurAddress(const RTNETADDRIPV4& aAddress) 719 { 720 m->m_OurAddress = aAddress; 721 } 722 723 724 void NetworkManager::setOurNetmask(const RTNETADDRIPV4& aNetmask) 725 { 726 m->m_OurNetmask = aNetmask; 727 } 728 729 730 void NetworkManager::setOurMac(const RTMAC& aMac) 731 { 732 m->m_OurMac = aMac; 733 } 734 735 736 void NetworkManager::setSession(PSUPDRVSESSION aSession) 737 { 738 m->m_pSession = aSession; 739 } 740 741 742 void NetworkManager::setInterface(INTNETIFHANDLE aIf) 743 { 744 m->m_hIf = aIf; 745 } 746 747 748 void NetworkManager::setRingBuffer(PINTNETBUF aBuf) 749 { 750 m->m_pIfBuf = aBuf; 751 } 700 752 /** 701 753 * Network manager creates DHCPOFFER datagramm … … 824 876 825 877 return doReply(client, extra); 826 }827 828 829 const RTNETADDRIPV4& NetworkManager::getOurAddress() const830 {831 return m->m_OurAddress;832 }833 834 835 const RTNETADDRIPV4& NetworkManager::getOurNetmask() const836 {837 return m->m_OurNetmask;838 }839 840 841 const RTMAC& NetworkManager::getOurMac() const842 {843 return m->m_OurMac;844 }845 846 847 void NetworkManager::setOurAddress(const RTNETADDRIPV4& aAddress)848 {849 m->m_OurAddress = aAddress;850 }851 852 853 void NetworkManager::setOurNetmask(const RTNETADDRIPV4& aNetmask)854 {855 m->m_OurNetmask = aNetmask;856 }857 858 859 void NetworkManager::setOurMac(const RTMAC& aMac)860 {861 m->m_OurMac = aMac;862 }863 864 865 void NetworkManager::setSession(PSUPDRVSESSION aSession)866 {867 m->m_pSession = aSession;868 }869 870 871 void NetworkManager::setInterface(INTNETIFHANDLE aIf)872 {873 m->m_hIf = aIf;874 }875 876 877 void NetworkManager::setRingBuffer(PINTNETBUF aBuf)878 {879 m->m_pIfBuf = aBuf;880 878 } 881 879 -
trunk/src/VBox/NetworkServices/DHCP/Config.h
r49566 r49567 502 502 static NetworkManager *getNetworkManager(); 503 503 504 int offer4Client(const Client& lease, uint32_t u32Xid, uint8_t *pu8ReqList, int cReqList);505 int ack(const Client& lease, uint32_t u32Xid, uint8_t *pu8ReqList, int cReqList);506 int nak(const Client& lease, uint32_t u32Xid);507 508 504 const RTNETADDRIPV4& getOurAddress() const; 509 505 const RTNETADDRIPV4& getOurNetmask() const; … … 525 521 NetworkManager(); 526 522 ~NetworkManager(); 523 524 int offer4Client(const Client& lease, uint32_t u32Xid, uint8_t *pu8ReqList, int cReqList); 525 int ack(const Client& lease, uint32_t u32Xid, uint8_t *pu8ReqList, int cReqList); 526 int nak(const Client& lease, uint32_t u32Xid); 527 527 528 528 int prepareReplyPacket4Client(const Client& client, uint32_t u32Xid);
Note:
See TracChangeset
for help on using the changeset viewer.