File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -751,7 +751,8 @@ void handle_route_change(struct rtmsg *rtm, unsigned int msg_len)
751
751
void process_interface_notification (void )
752
752
{
753
753
char buffer [IF_MSG_SIZE ];
754
- uint32_t len , payload_len ;
754
+ int len ;
755
+ uint32_t payload_len ;
755
756
struct nlmsghdr * nlh ;
756
757
struct ifaddrmsg * ifa ;
757
758
struct ifinfomsg * ifi ;
@@ -760,7 +761,7 @@ void process_interface_notification(void)
760
761
nlh = (struct nlmsghdr * )buffer ;
761
762
while ((len = recv (rtnetlink_fd , nlh , IF_MSG_SIZE , 0 )) > 0 )
762
763
{
763
- for (; (NLMSG_OK (nlh , len )) && (nlh -> nlmsg_type != NLMSG_DONE ); nlh = NLMSG_NEXT (nlh , len ))
764
+ for (; (NLMSG_OK (nlh , ( uint32_t ) len )) && (nlh -> nlmsg_type != NLMSG_DONE ); nlh = NLMSG_NEXT (nlh , len ))
764
765
{
765
766
switch (nlh -> nlmsg_type ) {
766
767
case RTM_NEWADDR :
You can’t perform that action at this time.
0 commit comments