Changeset 56266 in vbox
- Timestamp:
- Jun 7, 2015 12:11:00 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r56265 r56266 1488 1488 1489 1489 struct kev_in_data *iev = (struct kev_in_data *)msg->event_data; 1490 struct net_event_data *link = &iev->link_data; 1490 1491 PCRTNETADDRU pAddr = (PCRTNETADDRU)&iev->ia_addr; 1491 1492 switch (msg->event_code) 1492 1493 { 1493 1494 case KEV_INET_NEW_ADDR: 1494 Log(("KEV_INET_NEW_ADDR %RTnaipv4\n", pAddr->IPv4)); 1495 Log(("KEV_INET_NEW_ADDR %.*s%d: %RTnaipv4\n", 1496 IFNAMSIZ, link->if_name, link->if_unit, pAddr->IPv4)); 1497 1495 1498 pThis->pSwitchPort->pfnNotifyHostAddress(pThis->pSwitchPort, 1496 1499 /* :fAdded */ true, kIntNetAddrType_IPv4, pAddr); … … 1498 1501 1499 1502 case KEV_INET_ADDR_DELETED: 1500 Log(("KEV_INET_ADDR_DELETED %RTnaipv4\n", pAddr->IPv4)); 1503 Log(("KEV_INET_ADDR_DELETED %.*s%d: %RTnaipv4\n", 1504 IFNAMSIZ, link->if_name, link->if_unit, pAddr->IPv4)); 1505 1501 1506 pThis->pSwitchPort->pfnNotifyHostAddress(pThis->pSwitchPort, 1502 1507 /* :fAdded */ false, kIntNetAddrType_IPv4, pAddr); … … 1504 1509 1505 1510 default: 1506 Log(("KEV INET event %u addr %RTnaipv4\n", msg->event_code, pAddr->IPv4)); 1511 Log(("KEV INET event %u %.*s%d: addr %RTnaipv4\n", 1512 msg->event_code, IFNAMSIZ, link->if_name, link->if_unit, pAddr->IPv4)); 1507 1513 break; 1508 1514 } … … 1519 1525 1520 1526 struct kev_in6_data *iev6 = (struct kev_in6_data *)msg->event_data; 1527 struct net_event_data *link = &iev6->link_data; 1521 1528 PCRTNETADDRU pAddr = (PCRTNETADDRU)&iev6->ia_addr.sin6_addr; 1522 1529 switch (msg->event_code) 1523 1530 { 1524 1531 case KEV_INET6_NEW_USER_ADDR: 1525 Log(("KEV_INET6_NEW_USER_ADDR: %RTnaipv6\n", pAddr)); 1532 Log(("KEV_INET6_NEW_USER_ADDR %.*s%d: %RTnaipv6\n", 1533 IFNAMSIZ, link->if_name, link->if_unit, pAddr)); 1526 1534 goto kev_inet6_new; 1527 1535 1528 1536 case KEV_INET6_NEW_LL_ADDR: 1529 Log(("KEV_INET6_NEW_LL_ADDR: %RTnaipv6\n", pAddr)); 1537 Log(("KEV_INET6_NEW_LL_ADDR %.*s%d: %RTnaipv6\n", 1538 IFNAMSIZ, link->if_name, link->if_unit, pAddr)); 1530 1539 /* XXX: uwe: TODO: only interface we are attached to */ 1531 1540 goto kev_inet6_new; 1532 1541 1533 1542 case KEV_INET6_NEW_RTADV_ADDR: 1534 Log(("KEV_INET6_NEW_RTADV_ADDR: %RTnaipv6\n", pAddr)); 1543 Log(("KEV_INET6_NEW_RTADV_ADDR %.*s%d: %RTnaipv6\n", 1544 IFNAMSIZ, link->if_name, link->if_unit, pAddr)); 1535 1545 goto kev_inet6_new; 1536 1546 … … 1541 1551 1542 1552 case KEV_INET6_ADDR_DELETED: 1543 Log(("KEV_INET6_ADDR_DELETED: %RTnaipv6\n", pAddr)); 1553 Log(("KEV_INET6_ADDR_DELETED %.*s%d: %RTnaipv6\n", 1554 IFNAMSIZ, link->if_name, link->if_unit, pAddr)); 1555 1544 1556 pThis->pSwitchPort->pfnNotifyHostAddress(pThis->pSwitchPort, 1545 1557 /* :fAdded */ false, kIntNetAddrType_IPv6, pAddr); … … 1547 1559 1548 1560 default: 1549 Log(("KEV INET6 event %u addr %RTnaipv6\n", msg->event_code, pAddr)); 1561 Log(("KEV INET6 event %u %.*s%d: addr %RTnaipv6\n", 1562 msg->event_code, IFNAMSIZ, link->if_name, link->if_unit, pAddr)); 1550 1563 break; 1551 1564 }
Note:
See TracChangeset
for help on using the changeset viewer.