3030
3131/*
3232 ETSI EN 302 636-5-1 V2.2.1 (2019-05)
33- Intelligent Transport Systems (ITS);
34- Vehicular Communications;
35- GeoNetworking;
36- Part 5: Transport Protocols;
33+ Intelligent Transport Systems (ITS);
34+ Vehicular Communications;
35+ GeoNetworking;
36+ Part 5: Transport Protocols;
3737 Sub-part 1: Basic Transport Protocol
3838
39- ETSI EN 302 636-4-1 V1.4.1 (2020-01)
39+ ETSI EN 302 636-4-1 V1.4.1 (2020-01)
4040 Intelligent Transport Systems (ITS);
41- Vehicular Communications;
42- GeoNetworking;
43- Part 4: Geographical addressing and forwarding for point-to-point and point-to-multipoint communications;
44- Sub-part 1: Media-Independent Functionality;
41+ Vehicular Communications;
42+ GeoNetworking;
43+ Part 4: Geographical addressing and forwarding for point-to-point and point-to-multipoint communications;
44+ Sub-part 1: Media-Independent Functionality;
4545 Release 2
4646*/
4747
@@ -62,7 +62,6 @@ static const u_int implemented_gn_header_types[IMPLEMENTED_GN_HEADER_TYPES_NUM]
6262 HT_TSB
6363};
6464
65-
6665/* BasicTransportProtocol Definitions*/
6766#define BTP_A 1
6867#define BTP_B 2
@@ -313,9 +312,9 @@ static const char* process_gn_addr(netdissect_options *ndo, u_int64_t gn_addr){
313312 u_int64_t mib = gn_addr & 0xFFFFFFFFFFFF ; // 48 bits
314313 static char buffer [128 ];
315314 if (ndo -> ndo_vflag >= 1 ){
316- sprintf (buffer , "[m:%u st:%s reserved:%u mib:0x%lx ]" , m , st_text_from_bytes (st ), reserved , mib );
315+ sprintf (buffer , "[m:%u st:%s reserved:%u mib:0x%llx ]" , m , st_text_from_bytes (st ), reserved , mib );
317316 }else {
318- sprintf (buffer , "0x%lx " , mib );
317+ sprintf (buffer , "0x%llx " , mib );
319318 }
320319
321320 return buffer ;
0 commit comments