tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MPLS patches




To: Christos Zoulas <christos%astron.com@localhost>

Subject: Re: MPLS patches

From: Mihai Chelaru <kefren%netbsd.org@localhost>

Date: Thu, 10 Jan 2008 10:12:14 +0200


Christos Zoulas wrote:

- some ints should be size_t's [clen for example]
- KNF:
    void foo(void)
should be:
    void
    foo(void)
- You should not add MBUFTRACE to GENERIC
- a define<space> should be define<tab>
- Is there a way to avoid all the #ifdefs or abstract them better?
- Missing kernel RCSID's and /* $NetBSD$ */ header lines.
- #ifdef TAGS for protecting header files, don't follow convention.
- __attribute__((foo)) -> __attribute__((__foo__))
- casts to void* in the first argument of memset are not needed.
- some lines wrap > 80 chars.
- the third argument of memcpy() should be sizeof(arg1) not sizeof(type1).
- the copyright/license in ldpd files is BSD but formatted strangely. I'd
  replace it with the standard formatting.
- ldpd should use syslog to print errors, and not homegrown error routine
  that prints to stdout or perror.

I did not look at ldpd in detail, but I can after you fix the above...



I fixed most of them.

--
Thanks,
Mihai



References:

MPLS patches
From: Mihai Chelaru

Re: MPLS patches
From: Christos Zoulas




Prev by Date: Re: arp(8) and proxy only entries.

Next by Date: please test: ethernet media-handling patch

Previous by Thread: Re: MPLS patches

Next by Thread: Re: MPLS patches

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index