@@ -294,17 +294,17 @@ struct icmp_multipart_ext_object_header_t {
294
294
};
295
295
296
296
static const struct tok icmp_multipart_ext_obj_values [] = {
297
- { 1 , "MPLS Stack Entry" },
298
- { 2 , "Interface Identification " },
297
+ { 1 , "MPLS Stack Entry Object " },
298
+ { 2 , "Interface Information Object " },
299
299
{ 0 , NULL }
300
300
};
301
301
302
302
/* rfc5837 */
303
- static const struct tok icmp_interface_identification_role_values [] = {
304
- { 0 , "the IP interface upon which a datagram arrived " },
305
- { 1 , "the sub -IP component of an IP interface upon which a datagram arrived " },
306
- { 2 , "the IP interface through which the datagram would have been forwarded had it been forwardable " },
307
- { 3 , "the IP next hop to which the datagram would have been forwarded " },
303
+ static const struct tok icmp_interface_information_role_values [] = {
304
+ { 0 , "Incoming IP Interface " },
305
+ { 1 , "Sub -IP Component of Incoming IP Interface " },
306
+ { 2 , "Outgoing IP Interface " },
307
+ { 3 , "IP Next hop" },
308
308
{ 0 , NULL }
309
309
};
310
310
@@ -316,7 +316,7 @@ Interface IP Address Sub-Object
316
316
+-------+-------+-------+-------+
317
317
| IP Address ....
318
318
*/
319
- struct icmp_interface_identification_ipaddr_subobject_t {
319
+ struct icmp_interface_information_ipaddr_subobject_t {
320
320
nd_uint16_t afi ;
321
321
nd_uint16_t reserved ;
322
322
nd_uint32_t ip_addr ;
@@ -329,7 +329,7 @@ octet 0 1 63
329
329
| length | interface name octets 1-63 |
330
330
+--------+-----------................-----------------+
331
331
*/
332
- struct icmp_interface_identification_ifname_subobject_t {
332
+ struct icmp_interface_information_ifname_subobject_t {
333
333
nd_uint8_t length ;
334
334
nd_byte if_name [63 ];
335
335
};
@@ -791,7 +791,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen,
791
791
obj_ctype = GET_U_1 (icmp_multipart_ext_object_header -> ctype );
792
792
obj_tptr += sizeof (struct icmp_multipart_ext_object_header_t );
793
793
794
- ND_PRINT ("\n\t %s Object (%u), Class-Type: %u, length %u" ,
794
+ ND_PRINT ("\n\t %s (%u), Class-Type: %u, length %u" ,
795
795
tok2str (icmp_multipart_ext_obj_values ,"unknown" ,obj_class_num ),
796
796
obj_class_num ,
797
797
obj_ctype ,
@@ -844,21 +844,21 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen,
844
844
name_flag = (obj_ctype & 0x2 ) >> 1 ;
845
845
mtu_flag = (obj_ctype & 0x1 );
846
846
847
- ND_PRINT ("\n\t\t This object describes %s" ,
848
- tok2str (icmp_interface_identification_role_values ,
847
+ ND_PRINT ("\n\t Interface Role: %s" ,
848
+ tok2str (icmp_interface_information_role_values ,
849
849
"an unknown interface role" ,interface_role ));
850
850
851
851
offset = obj_tptr ;
852
852
853
853
if (if_index_flag ) {
854
- ND_PRINT ("\n\t\t Interface Index: %u" , GET_BE_U_4 (offset ));
854
+ ND_PRINT ("\n\t Interface Index: %u" , GET_BE_U_4 (offset ));
855
855
offset += 4 ;
856
856
}
857
857
if (ipaddr_flag ) {
858
- const struct icmp_interface_identification_ipaddr_subobject_t * ipaddr_subobj ;
858
+ const struct icmp_interface_information_ipaddr_subobject_t * ipaddr_subobj ;
859
859
860
- ND_PRINT ("\n\t\t IP Address sub-object: " );
861
- ipaddr_subobj = (const struct icmp_interface_identification_ipaddr_subobject_t * ) offset ;
860
+ ND_PRINT ("\n\t IP Address sub-object: " );
861
+ ipaddr_subobj = (const struct icmp_interface_information_ipaddr_subobject_t * ) offset ;
862
862
switch (GET_BE_U_2 (ipaddr_subobj -> afi )) {
863
863
case 1 :
864
864
ND_PRINT ("%s" , GET_IPADDR_STRING (ipaddr_subobj -> ip_addr ));
@@ -876,11 +876,11 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen,
876
876
}
877
877
if (name_flag ) {
878
878
uint8_t inft_name_length_field ;
879
- const struct icmp_interface_identification_ifname_subobject_t * ifname_subobj ;
879
+ const struct icmp_interface_information_ifname_subobject_t * ifname_subobj ;
880
880
881
- ifname_subobj = (const struct icmp_interface_identification_ifname_subobject_t * ) offset ;
881
+ ifname_subobj = (const struct icmp_interface_information_ifname_subobject_t * ) offset ;
882
882
inft_name_length_field = GET_U_1 (ifname_subobj -> length );
883
- ND_PRINT ("\n\t\t Interface Name" );
883
+ ND_PRINT ("\n\t Interface Name" );
884
884
if (inft_name_length_field == 0 ) {
885
885
ND_PRINT (" [length %u]" , inft_name_length_field );
886
886
nd_print_invalid (ndo );
@@ -904,7 +904,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen,
904
904
offset += inft_name_length_field ;
905
905
}
906
906
if (mtu_flag ) {
907
- ND_PRINT ("\n\t\t MTU: %u" , GET_BE_U_4 (offset ));
907
+ ND_PRINT ("\n\t MTU: %u" , GET_BE_U_4 (offset ));
908
908
offset += 4 ;
909
909
}
910
910
break ;
0 commit comments