Lines Matching refs:pNLMsg
1030 mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg) in PrintNetLinkMsg() argument
1035 printf("nlmsghdr len=%d, type=%s, flags=0x%x\n", pNLMsg->nlmsg_len, in PrintNetLinkMsg()
1036 …pNLMsg->nlmsg_type < RTM_BASE ? kNLMsgTypes[pNLMsg->nlmsg_type] : kNLRtMsgTypes[pNLMsg->nlmsg_type… in PrintNetLinkMsg()
1037 pNLMsg->nlmsg_flags); in PrintNetLinkMsg()
1039 if (RTM_NEWLINK <= pNLMsg->nlmsg_type && pNLMsg->nlmsg_type <= RTM_GETLINK) in PrintNetLinkMsg()
1041 struct ifinfomsg *pIfInfo = (struct ifinfomsg*) NLMSG_DATA(pNLMsg); in PrintNetLinkMsg()
1046 else if (RTM_NEWADDR <= pNLMsg->nlmsg_type && pNLMsg->nlmsg_type <= RTM_GETADDR) in PrintNetLinkMsg()
1048 struct ifaddrmsg *pIfAddr = (struct ifaddrmsg*) NLMSG_DATA(pNLMsg); in PrintNetLinkMsg()
1062 struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff; in ProcessRoutingNotification() local
1075 if (((char*) &pNLMsg[1] > (buff + readCount)) || // i.e. *pNLMsg extends off end of buffer in ProcessRoutingNotification()
1076 ((char*) pNLMsg + pNLMsg->nlmsg_len > (buff + readCount))) in ProcessRoutingNotification()
1078 if (buff < (char*) pNLMsg) // we have space to shuffle in ProcessRoutingNotification()
1081 readCount -= ((char*) pNLMsg - buff); in ProcessRoutingNotification()
1082 memmove(buff, pNLMsg, readCount); in ProcessRoutingNotification()
1083 pNLMsg = (struct nlmsghdr*) buff; in ProcessRoutingNotification()
1094 PrintNetLinkMsg(pNLMsg); in ProcessRoutingNotification()
1098 if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK) in ProcessRoutingNotification()
1099 result |= 1 << ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index; in ProcessRoutingNotification()
1100 else if (pNLMsg->nlmsg_type == RTM_DELADDR || pNLMsg->nlmsg_type == RTM_NEWADDR) in ProcessRoutingNotification()
1101 result |= 1 << ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index; in ProcessRoutingNotification()
1104 if ((pNLMsg->nlmsg_flags & NLM_F_MULTI) != 0 && pNLMsg->nlmsg_type != NLMSG_DONE) in ProcessRoutingNotification()
1106 ssize_t len = readCount - ((char*)pNLMsg - buff); in ProcessRoutingNotification()
1107 pNLMsg = NLMSG_NEXT(pNLMsg, len); in ProcessRoutingNotification()