Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/rump_dhcpclient Work with the new routing.



details:   https://anonhg.NetBSD.org/src/rev/4eceefe633ca
branches:  trunk
changeset: 761662:4eceefe633ca
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Feb 04 15:09:22 2011 +0000

description:
Work with the new routing.

diffstat:

 usr.bin/rump_dhcpclient/if-bsd.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r d92e54fce082 -r 4eceefe633ca usr.bin/rump_dhcpclient/if-bsd.c
--- a/usr.bin/rump_dhcpclient/if-bsd.c  Fri Feb 04 15:03:14 2011 +0000
+++ b/usr.bin/rump_dhcpclient/if-bsd.c  Fri Feb 04 15:09:22 2011 +0000
@@ -62,10 +62,6 @@
 #include "if-options.h"
 #include "net.h"
 
-#define ROUNDUP(a)                                                           \
-       ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
-#define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len))
-
 /* FIXME: Why do we need to check for sa_family 255 */
 #define COPYOUT(sin, sa)                                                     \
        sin.s_addr = ((sa) != NULL) ?                                         \
@@ -196,7 +192,7 @@
        int retval = 0;
 
 #define ADDSU(_su) {                                                         \
-               l = ROUNDUP(_su.sa.sa_len);                                   \
+               l = RT_ROUNDUP(_su.sa.sa_len);                                \
                memcpy(bp, &(_su), l);                                        \
                bp += l;                                                      \
        }



Home | Main Index | Thread Index | Old Index