print-ip.c (19954) | print-ip.c (19961) |
---|---|
1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 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 --- 431 unchanged lines hidden (view full) --- 440 441#ifndef IPPROTO_IGMP 442#define IPPROTO_IGMP 2 443#endif 444 case IPPROTO_IGMP: 445 igmp_print(cp, len, (const u_char *)ip); 446 break; 447 | 1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 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 --- 431 unchanged lines hidden (view full) --- 440 441#ifndef IPPROTO_IGMP 442#define IPPROTO_IGMP 2 443#endif 444 case IPPROTO_IGMP: 445 igmp_print(cp, len, (const u_char *)ip); 446 break; 447 |
448#ifndef IPPROTO_ENCAP 449#define IPPROTO_ENCAP 4 | 448#ifndef IPPROTO_IPIP 449#define IPPROTO_IPIP 4 |
450#endif | 450#endif |
451 case IPPROTO_ENCAP: | 451 case IPPROTO_IPIP: |
452 /* ip-in-ip encapsulation */ 453 if (vflag) 454 (void)printf("%s > %s: ", 455 ipaddr_string(&ip->ip_src), 456 ipaddr_string(&ip->ip_dst)); 457 ip_print(cp, len); 458 if (! vflag) { 459 printf(" (encap)"); --- 63 unchanged lines hidden --- | 452 /* ip-in-ip encapsulation */ 453 if (vflag) 454 (void)printf("%s > %s: ", 455 ipaddr_string(&ip->ip_src), 456 ipaddr_string(&ip->ip_dst)); 457 ip_print(cp, len); 458 if (! vflag) { 459 printf(" (encap)"); --- 63 unchanged lines hidden --- |