print-ip.c (235530) | print-ip.c (241221) |
---|---|
1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 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 --- 4 unchanged lines hidden (view full) --- 13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14 * the University nor the names of its contributors may be used to endorse 15 * or promote products derived from this software without specific prior 16 * written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 * | 1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 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 --- 4 unchanged lines hidden (view full) --- 13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14 * the University nor the names of its contributors may be used to endorse 15 * or promote products derived from this software without specific prior 16 * written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 * |
21 * $FreeBSD: head/contrib/tcpdump/print-ip.c 235530 2012-05-17 05:11:57Z delphij $ | 21 * $FreeBSD: head/contrib/tcpdump/print-ip.c 241221 2012-10-05 07:51:21Z glebius $ |
22 */ 23 24#ifndef lint 25static const char rcsid[] _U_ = 26 "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.159 2007-09-14 01:29:28 guy Exp $ (LBL)"; 27#endif 28 29#ifdef HAVE_CONFIG_H --- 448 unchanged lines hidden (view full) --- 478 vrrp_print(ipds->cp, ipds->len, ipds->ip->ip_ttl); 479 } 480 break; 481 482 case IPPROTO_PGM: 483 pgm_print(ipds->cp, ipds->len, (const u_char *)ipds->ip); 484 break; 485 | 22 */ 23 24#ifndef lint 25static const char rcsid[] _U_ = 26 "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.159 2007-09-14 01:29:28 guy Exp $ (LBL)"; 27#endif 28 29#ifdef HAVE_CONFIG_H --- 448 unchanged lines hidden (view full) --- 478 vrrp_print(ipds->cp, ipds->len, ipds->ip->ip_ttl); 479 } 480 break; 481 482 case IPPROTO_PGM: 483 pgm_print(ipds->cp, ipds->len, (const u_char *)ipds->ip); 484 break; 485 |
486 case IPPROTO_PFSYNC: 487 pfsync_ip_print(ipds->cp, ipds->len); 488 break; 489 |
|
486 default: 487 if ((proto = getprotobynumber(ipds->nh)) != NULL) 488 ND_PRINT((ndo, " %s", proto->p_name)); 489 else 490 ND_PRINT((ndo, " ip-proto-%d", ipds->nh)); 491 ND_PRINT((ndo, " %d", ipds->len)); 492 break; 493 } --- 214 unchanged lines hidden --- | 490 default: 491 if ((proto = getprotobynumber(ipds->nh)) != NULL) 492 ND_PRINT((ndo, " %s", proto->p_name)); 493 else 494 ND_PRINT((ndo, " ip-proto-%d", ipds->nh)); 495 ND_PRINT((ndo, " %d", ipds->len)); 496 break; 497 } --- 214 unchanged lines hidden --- |