Lines Matching defs:l_hdr

68     struct nlmsghdr *l_hdr = (struct nlmsghdr *)l_buffer;
69 struct rtgenmsg *l_msg = (struct rtgenmsg *)NLMSG_DATA(l_hdr);
71 l_hdr->nlmsg_len = NLMSG_LENGTH(sizeof(*l_msg));
72 l_hdr->nlmsg_type = p_request;
73 l_hdr->nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST;
74 l_hdr->nlmsg_pid = 0;
75 l_hdr->nlmsg_seq = p_socket;
81 return (sendto(p_socket, l_hdr, l_hdr->nlmsg_len, 0, (struct sockaddr *)&l_addr, sizeof(l_addr)));
138 struct nlmsghdr *l_hdr;
139 for(l_hdr = (struct nlmsghdr *)l_buffer; NLMSG_OK(l_hdr, (unsigned int)l_read); l_hdr = (struct nlmsghdr *)NLMSG_NEXT(l_hdr, l_read))
141 if((pid_t)l_hdr->nlmsg_pid != l_pid || (int)l_hdr->nlmsg_seq != p_socket)
146 if(l_hdr->nlmsg_type == NLMSG_DONE)
152 if(l_hdr->nlmsg_type == NLMSG_ERROR)
199 struct nlmsghdr *l_hdr = getNetlinkResponse(p_socket, &l_size, &l_done);
200 if(!l_hdr)
206 NetlinkList *l_item = newListItem(l_hdr, l_size);
493 struct nlmsghdr *l_hdr;
494 for(l_hdr = p_netlinkList->m_data; NLMSG_OK(l_hdr, l_nlsize); l_hdr = NLMSG_NEXT(l_hdr, l_nlsize))
496 if((pid_t)l_hdr->nlmsg_pid != l_pid || (int)l_hdr->nlmsg_seq != p_socket)
501 if(l_hdr->nlmsg_type == NLMSG_DONE)
506 if(l_hdr->nlmsg_type == RTM_NEWLINK)
508 interpretLink(l_hdr, p_links, p_resultList);
510 else if(l_hdr->nlmsg_type == RTM_NEWADDR)
512 interpretAddr(l_hdr, p_links, p_resultList);
525 struct nlmsghdr *l_hdr;
526 for(l_hdr = p_netlinkList->m_data; NLMSG_OK(l_hdr, l_nlsize); l_hdr = NLMSG_NEXT(l_hdr, l_nlsize))
528 if((pid_t)l_hdr->nlmsg_pid != l_pid || (int)l_hdr->nlmsg_seq != p_socket)
533 if(l_hdr->nlmsg_type == NLMSG_DONE)
538 if(l_hdr->nlmsg_type == RTM_NEWLINK)