]> git.saurik.com Git - apple/mdnsresponder.git/blob - unittests/mdns_ut.c
mDNSResponder-878.50.17.tar.gz
[apple/mdnsresponder.git] / unittests / mdns_ut.c
1 #include "DNSCommon.h" // Defines general DNS utility routines
2
3 mDNSexport mStatus mDNS_InitStorage_ut(mDNS *const m, mDNS_PlatformSupport *const p,
4 CacheEntity *rrcachestorage, mDNSu32 rrcachesize,
5 mDNSBool AdvertiseLocalAddresses, mDNSCallback *Callback, void *Context)
6 {
7 return mDNS_InitStorage(m, p, rrcachestorage, rrcachesize, AdvertiseLocalAddresses, Callback, Context);
8 }
9
10 mDNSexport mStatus ArpLogMsgTest(mDNS *const m, const ARP_EthIP *const arp, const mDNSInterfaceID InterfaceID)
11 {
12 NetworkInterfaceInfo *intf = FirstInterfaceForID(m, InterfaceID);
13 static const char msg[] = "ARP Req message";
14 LogMsg("Arp %-7s %s %.6a %.4a for %.4a",
15 intf->ifname, msg, arp->sha.b, arp->spa.b, arp->tpa.b);
16 return mStatus_NoError;
17 }