Lines Matching refs:ndm
41 struct ndmsg ndm; member
308 if (hdr->hdr.nlmsg_len < NLMSG_LENGTH(sizeof(hdr->ndm))) { in DecodeNeighbor()
313 interface_index_ = hdr->ndm.ndm_ifindex; in DecodeNeighbor()
314 family_ = hdr->ndm.ndm_family; in DecodeNeighbor()
320 set_neighbor_status(NeighborStatus(hdr->ndm.ndm_state, in DecodeNeighbor()
321 hdr->ndm.ndm_flags, in DecodeNeighbor()
322 hdr->ndm.ndm_type)); in DecodeNeighbor()
503 hdr->hdr.nlmsg_len = NLMSG_LENGTH(sizeof(hdr->ndm)); in EncodeNeighbor()
504 hdr->ndm.ndm_family = family_; in EncodeNeighbor()
505 hdr->ndm.ndm_ifindex = interface_index_; in EncodeNeighbor()
506 hdr->ndm.ndm_state = neighbor_status_.state; in EncodeNeighbor()
507 hdr->ndm.ndm_flags = neighbor_status_.flags; in EncodeNeighbor()
508 hdr->ndm.ndm_type = neighbor_status_.type; in EncodeNeighbor()