print-gre.c (214478) | print-gre.c (235530) |
---|---|
1/* $OpenBSD: print-gre.c,v 1.6 2002/10/30 03:04:04 fgsch Exp $ */ 2 3/* 4 * Copyright (c) 2002 Jason L. Wright (jason@thought.net) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 196 unchanged lines hidden (view full) --- 205 printf("\n\t"); /* if verbose go multiline */ 206 207 switch (prot) { 208 case ETHERTYPE_IP: 209 ip_print(gndo, bp, len); 210 break; 211#ifdef INET6 212 case ETHERTYPE_IPV6: | 1/* $OpenBSD: print-gre.c,v 1.6 2002/10/30 03:04:04 fgsch Exp $ */ 2 3/* 4 * Copyright (c) 2002 Jason L. Wright (jason@thought.net) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 196 unchanged lines hidden (view full) --- 205 printf("\n\t"); /* if verbose go multiline */ 206 207 switch (prot) { 208 case ETHERTYPE_IP: 209 ip_print(gndo, bp, len); 210 break; 211#ifdef INET6 212 case ETHERTYPE_IPV6: |
213 ip6_print(bp, len); | 213 ip6_print(gndo, bp, len); |
214 break; 215#endif 216 case ETHERTYPE_MPLS: 217 mpls_print(bp, len); 218 break; 219 case ETHERTYPE_IPX: 220 ipx_print(bp, len); 221 break; 222 case ETHERTYPE_ATALK: 223 atalk_print(bp, len); 224 break; 225 case ETHERTYPE_GRE_ISO: 226 isoclns_print(bp, len, len); 227 break; 228 case ETHERTYPE_TEB: | 214 break; 215#endif 216 case ETHERTYPE_MPLS: 217 mpls_print(bp, len); 218 break; 219 case ETHERTYPE_IPX: 220 ipx_print(bp, len); 221 break; 222 case ETHERTYPE_ATALK: 223 atalk_print(bp, len); 224 break; 225 case ETHERTYPE_GRE_ISO: 226 isoclns_print(bp, len, len); 227 break; 228 case ETHERTYPE_TEB: |
229 ether_print(bp, len, len, NULL, NULL); | 229 ether_print(gndo, bp, len, len, NULL, NULL); |
230 break; 231 default: 232 printf("gre-proto-0x%x", prot); 233 } 234 return; 235 236trunc: 237 printf("[|gre]"); --- 166 unchanged lines hidden --- | 230 break; 231 default: 232 printf("gre-proto-0x%x", prot); 233 } 234 return; 235 236trunc: 237 printf("[|gre]"); --- 166 unchanged lines hidden --- |