Lines Matching refs:pNLMsg

1071 mDNSlocal void      PrintNetLinkMsg(const struct nlmsghdr *pNLMsg)  in PrintNetLinkMsg()  argument
1076 printf("nlmsghdr len=%d, type=%s, flags=0x%x\n", pNLMsg->nlmsg_len, in PrintNetLinkMsg()
1077pNLMsg->nlmsg_type < RTM_BASE ? kNLMsgTypes[pNLMsg->nlmsg_type] : kNLRtMsgTypes[pNLMsg->nlmsg_type… in PrintNetLinkMsg()
1078 pNLMsg->nlmsg_flags); in PrintNetLinkMsg()
1080 if (RTM_NEWLINK <= pNLMsg->nlmsg_type && pNLMsg->nlmsg_type <= RTM_GETLINK) in PrintNetLinkMsg()
1082 struct ifinfomsg *pIfInfo = (struct ifinfomsg*) NLMSG_DATA(pNLMsg); in PrintNetLinkMsg()
1087 else if (RTM_NEWADDR <= pNLMsg->nlmsg_type && pNLMsg->nlmsg_type <= RTM_GETADDR) in PrintNetLinkMsg()
1089 struct ifaddrmsg *pIfAddr = (struct ifaddrmsg*) NLMSG_DATA(pNLMsg); in PrintNetLinkMsg()
1103 struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff; in ProcessRoutingNotification() local
1116 … if (((char*) &pNLMsg[1] > (buff + readCount)) || // i.e. *pNLMsg extends off end of buffer in ProcessRoutingNotification()
1117 ((char*) pNLMsg + pNLMsg->nlmsg_len > (buff + readCount))) in ProcessRoutingNotification()
1119 if (buff < (char*) pNLMsg) // we have space to shuffle in ProcessRoutingNotification()
1122 readCount -= ((char*) pNLMsg - buff); in ProcessRoutingNotification()
1123 memmove(buff, pNLMsg, readCount); in ProcessRoutingNotification()
1124 pNLMsg = (struct nlmsghdr*) buff; in ProcessRoutingNotification()
1135 PrintNetLinkMsg(pNLMsg); in ProcessRoutingNotification()
1139 if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK) in ProcessRoutingNotification()
1140 result |= 1 << ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index; in ProcessRoutingNotification()
1141 else if (pNLMsg->nlmsg_type == RTM_DELADDR || pNLMsg->nlmsg_type == RTM_NEWADDR) in ProcessRoutingNotification()
1142 result |= 1 << ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index; in ProcessRoutingNotification()
1145 if ((pNLMsg->nlmsg_flags & NLM_F_MULTI) != 0 && pNLMsg->nlmsg_type != NLMSG_DONE) in ProcessRoutingNotification()
1147 ssize_t len = readCount - ((char*)pNLMsg - buff); in ProcessRoutingNotification()
1148 pNLMsg = NLMSG_NEXT(pNLMsg, len); in ProcessRoutingNotification()