Revision fe9f1a6d sysdep/linux/netlink.c

View differences:

sysdep/linux/netlink.c
911 911
	  ra.nexthops = nl_parse_multipath(p, a[RTA_MULTIPATH]);
912 912
	  if (!ra.nexthops)
913 913
	    {
914
	      log(L_ERR "KRT: Received strange multipath route %I/%d",
915
		  net->n.prefix, net->n.pxlen);
914
	      log(L_ERR "KRT: Received strange multipath route %N", net->n.addr);
916 915
	      return;
917 916
	    }
918 917

  
......
922 921
      ra.iface = if_find_by_index(oif);
923 922
      if (!ra.iface)
924 923
	{
925
	  log(L_ERR "KRT: Received route %I/%d with unknown ifindex %u",
926
	      net->n.prefix, net->n.pxlen, oif);
924
	  log(L_ERR "KRT: Received route %N with unknown ifindex %u", net->n.addr, oif);
927 925
	  return;
928 926
	}
929 927

  
......
944 942
			   (i->rtm_flags & RTNH_F_ONLINK) ? NEF_ONLINK : 0);
945 943
	  if (!ng || (ng->scope == SCOPE_HOST))
946 944
	    {
947
	      log(L_ERR "KRT: Received route %I/%d with strange next-hop %I",
948
		  net->n.prefix, net->n.pxlen, ra.gw);
945
	      log(L_ERR "KRT: Received route %N with strange next-hop %I", net->n.addr, ra.gw);
949 946
	      return;
950 947
	    }
951 948
	}
......
1020 1017

  
1021 1018
      if (nl_parse_metrics(a[RTA_METRICS], metrics, ARRAY_SIZE(metrics)) < 0)
1022 1019
        {
1023
	  log(L_ERR "KRT: Received route %I/%d with strange RTA_METRICS attribute",
1024
	      net->n.prefix, net->n.pxlen);
1020
	  log(L_ERR "KRT: Received route %N with strange RTA_METRICS attribute", net->n.addr);
1025 1021
	  return;
1026 1022
	}
1027 1023

  

Also available in: Unified diff