diff options
author | Guy Harris <gharris@steve.local> | 2009-05-21 10:14:22 -0700 |
---|---|---|
committer | Guy Harris <gharris@steve.local> | 2009-05-21 10:14:22 -0700 |
commit | b0dc4a55ea132db840991708e8dc1986c7adaf68 (patch) | |
tree | c0d50afae82a5bbf735d1452ad2b0dca3b765ead /print-olsr.c | |
parent | efb465c5a81245351bb374184b9217c06b66cc44 (diff) | |
download | tcpdump-b0dc4a55ea132db840991708e8dc1986c7adaf68.tar.gz |
Get rid of trailing whitespace.
Diffstat (limited to 'print-olsr.c')
-rw-r--r-- | print-olsr.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/print-olsr.c b/print-olsr.c index 41476195..599fb1f7 100644 --- a/print-olsr.c +++ b/print-olsr.c @@ -28,7 +28,7 @@ #include "interface.h" #include "addrtoname.h" -#include "extract.h" +#include "extract.h" #include "ip.h" /* @@ -219,7 +219,7 @@ olsr_print (const u_char *pptr, u_int length) u_int8_t link_type, neighbor_type; const u_char *tptr, *msg_data; - tptr = pptr; + tptr = pptr; if (length < sizeof(struct olsr_common)) { goto trunc; @@ -247,7 +247,7 @@ olsr_print (const u_char *pptr, u_int length) while (tptr < (pptr+length)) { - if (!TTEST2(*tptr, sizeof(struct olsr_msg))) + if (!TTEST2(*tptr, sizeof(struct olsr_msg))) goto trunc; ptr.msg = (struct olsr_msg *)tptr; @@ -276,7 +276,7 @@ olsr_print (const u_char *pptr, u_int length) switch (msg_type) { case OLSR_HELLO_MSG: case OLSR_HELLO_LQ_MSG: - if (!TTEST2(*msg_data, sizeof(struct olsr_hello))) + if (!TTEST2(*msg_data, sizeof(struct olsr_hello))) goto trunc; ptr.hello = (struct olsr_hello *)msg_data; @@ -291,7 +291,7 @@ olsr_print (const u_char *pptr, u_int length) /* * link-type. */ - if (!TTEST2(*msg_data, sizeof(struct olsr_hello_link))) + if (!TTEST2(*msg_data, sizeof(struct olsr_hello_link))) goto trunc; ptr.hello_link = (struct olsr_hello_link *)msg_data; @@ -330,7 +330,7 @@ olsr_print (const u_char *pptr, u_int length) case OLSR_TC_MSG: case OLSR_TC_LQ_MSG: - if (!TTEST2(*msg_data, sizeof(struct olsr_tc))) + if (!TTEST2(*msg_data, sizeof(struct olsr_tc))) goto trunc; ptr.tc = (struct olsr_tc *)msg_data; @@ -347,7 +347,7 @@ olsr_print (const u_char *pptr, u_int length) break; case OLSR_MID_MSG: - if (!TTEST2(*msg_data, sizeof(struct in_addr))) + if (!TTEST2(*msg_data, sizeof(struct in_addr))) goto trunc; while (msg_tlen >= sizeof(struct in_addr)) { @@ -361,7 +361,7 @@ olsr_print (const u_char *pptr, u_int length) prefix = 1; printf("\n\t advertised networks\n\t "); while (msg_tlen >= sizeof(struct olsr_hna)) { - if (!TTEST2(*msg_data, sizeof(struct olsr_hna))) + if (!TTEST2(*msg_data, sizeof(struct olsr_hna))) goto trunc; ptr.hna = (struct olsr_hna *)msg_data; @@ -370,7 +370,7 @@ olsr_print (const u_char *pptr, u_int length) printf("%s/%u%s", ipaddr_string(ptr.hna->network), - mask2plen(EXTRACT_32BITS(ptr.hna->mask)), + mask2plen(EXTRACT_32BITS(ptr.hna->mask)), prefix % 4 == 0 ? "\n\t " : " "); msg_data += sizeof(struct olsr_hna); @@ -419,7 +419,7 @@ olsr_print (const u_char *pptr, u_int length) default: print_unknown_data(msg_data, "\n\t ", msg_tlen); break; - } + } tptr += msg_len; } |