summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip-neighbor
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ip-neighbor')
-rw-r--r--src/vnet/ip-neighbor/ip4_neighbor.c12
-rw-r--r--src/vnet/ip-neighbor/ip6_neighbor.c12
2 files changed, 19 insertions, 5 deletions
diff --git a/src/vnet/ip-neighbor/ip4_neighbor.c b/src/vnet/ip-neighbor/ip4_neighbor.c
index c268b96e00d..94848259b8c 100644
--- a/src/vnet/ip-neighbor/ip4_neighbor.c
+++ b/src/vnet/ip-neighbor/ip4_neighbor.c
@@ -45,6 +45,14 @@
/** ARP throttling */
static throttle_t arp_throttle;
+VLIB_REGISTER_LOG_CLASS (ip4_neighbor_log, static) = {
+ .class_name = "ip4",
+ .subclass_name = "neighbor",
+};
+
+#define log_debug(fmt, ...) \
+ vlib_log_debug (ip4_neighbor_log.class, fmt, __VA_ARGS__)
+
void
ip4_neighbor_probe_dst (u32 sw_if_index, const ip4_address_t * dst)
{
@@ -77,8 +85,8 @@ ip4_neighbor_advertise (vlib_main_t * vm,
if (addr)
{
- clib_warning ("Sending GARP for IP4 address %U on sw_if_idex %d",
- format_ip4_address, addr, sw_if_index);
+ log_debug ("Sending GARP for IP4 address %U on sw_if_idex %d",
+ format_ip4_address, addr, sw_if_index);
/* Form GARP packet for output - Gratuitous ARP is an ARP request packet
where the interface IP/MAC pair is used for both source and request
diff --git a/src/vnet/ip-neighbor/ip6_neighbor.c b/src/vnet/ip-neighbor/ip6_neighbor.c
index 478eca7fa27..ec323543e32 100644
--- a/src/vnet/ip-neighbor/ip6_neighbor.c
+++ b/src/vnet/ip-neighbor/ip6_neighbor.c
@@ -22,6 +22,13 @@
/** ND throttling */
static throttle_t nd_throttle;
+VLIB_REGISTER_LOG_CLASS (ip6_neighbor_log, static) = {
+ .class_name = "ip6",
+ .subclass_name = "neighbor",
+};
+
+#define log_debug(fmt, ...) \
+ vlib_log_debug (ip6_neighbor_log.class, fmt, __VA_ARGS__)
void
ip6_neighbor_probe_dst (u32 sw_if_index, const ip6_address_t * dst)
{
@@ -47,9 +54,8 @@ ip6_neighbor_advertise (vlib_main_t * vm,
if (addr)
{
- clib_warning
- ("Sending unsolicitated NA IP6 address %U on sw_if_idex %d",
- format_ip6_address, addr, sw_if_index);
+ log_debug ("Sending unsolicitated NA IP6 address %U on sw_if_idex %d",
+ format_ip6_address, addr, sw_if_index);
/* Form unsolicited neighbor advertisement packet from NS pkt template */
int bogus_length;
href='#n239'>239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357