| 296 | } |
| 297 | |
| 298 | void genlmsg_close(int sockfd) { |
| 299 | if (sockfd >= 0) |
| 300 | close(sockfd); |
| 301 | } |
| 302 | // ovsmsg_send() —— construct vulnerable nlmsghdr -> genlmsghdr -> nlattr packet and send |
| 303 | int ovsmsg_send(int sockfd, uint16_t nlmsg_type, uint32_t nlmsg_pid, |
| 304 | uint8_t genl_cmd, uint8_t genl_version, |