print-igmp.c (235530) | print-igmp.c (241235) |
---|---|
1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that: (1) source code distributions 7 * retain the above copyright notice and this paragraph in its entirety, (2) 8 * distributions including binary code include the above copyright notice and --- 213 unchanged lines hidden (view full) --- 222 mrc = bp[1]; 223 if (mrc < 128) { 224 mrt = mrc; 225 } else { 226 mrt = ((mrc & 0x0f) | 0x10) << (((mrc & 0x70) >> 4) + 3); 227 } 228 if (mrc != 100) { 229 (void)printf(" [max resp time "); | 1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that: (1) source code distributions 7 * retain the above copyright notice and this paragraph in its entirety, (2) 8 * distributions including binary code include the above copyright notice and --- 213 unchanged lines hidden (view full) --- 222 mrc = bp[1]; 223 if (mrc < 128) { 224 mrt = mrc; 225 } else { 226 mrt = ((mrc & 0x0f) | 0x10) << (((mrc & 0x70) >> 4) + 3); 227 } 228 if (mrc != 100) { 229 (void)printf(" [max resp time "); |
230 relts_print(mrt); | 230 if (mrt < 600) { 231 (void)printf("%.1fs", mrt * 0.1); 232 } else { 233 relts_print(mrt / 10); 234 } |
231 (void)printf("]"); 232 } 233 TCHECK2(bp[4], 4); 234 if (EXTRACT_32BITS(&bp[4]) == 0) 235 return; 236 (void)printf(" [gaddr %s", ipaddr_string(&bp[4])); 237 TCHECK2(bp[10], 2); 238 nsrcs = EXTRACT_16BITS(&bp[10]); --- 102 unchanged lines hidden --- | 235 (void)printf("]"); 236 } 237 TCHECK2(bp[4], 4); 238 if (EXTRACT_32BITS(&bp[4]) == 0) 239 return; 240 (void)printf(" [gaddr %s", ipaddr_string(&bp[4])); 241 TCHECK2(bp[10], 2); 242 nsrcs = EXTRACT_16BITS(&bp[10]); --- 102 unchanged lines hidden --- |