Lines Matching refs:ifam
87 struct ifa_msghdr ifam;
133 struct ifa_msghdr *ifam;
175 ifam = (struct ifa_msghdr *)next;
176 sa = (struct sockaddr *)(ifam + 1);
368 struct ifa_msghdr *ifam;
380 ifam = &((rtmunion_t *)di->di_buf)->ifam;
382 assert(ifam->ifam_type == RTM_NEWADDR ||
383 ifam->ifam_type == RTM_DELADDR);
386 ifam->ifam_type == RTM_NEWADDR ? "NEWADDR" : "DELADDR",
387 ifam->ifam_index, (ifam->ifam_index == ifindex) ? "ours" : "not ours");
389 if (ifam->ifam_index != ifindex)
392 if (!(ifam->ifam_addrs & RTA_IFA)) {
398 sa = (struct sockaddr *)(ifam + 1);
399 SKIPRTA(ifam, RTA_DST, sa);
400 SKIPRTA(ifam, RTA_GATEWAY, sa);
401 SKIPRTA(ifam, RTA_NETMASK, sa);
402 SKIPRTA(ifam, RTA_GENMASK, sa);
403 SKIPRTA(ifam, RTA_IFP, sa);
418 ifam->ifam_type == RTM_NEWADDR ? "NEWADDR" : "DELADDR",
428 if (ifam->ifam_type == RTM_DELADDR && ap != NULL) {
432 if (ifam->ifam_type == RTM_NEWADDR && ap == NULL) {