finished PTR parser
This commit is contained in:
		
							parent
							
								
									e8edc20080
								
							
						
					
					
						commit
						88e6779641
					
				| @ -10,8 +10,9 @@ | ||||
| // ame ttl  class   rr     name
 | ||||
| // 15         IN     PTR    www.example.com.
 | ||||
| 
 | ||||
| exports.DNS_TYPE_PTR = function (rdata) { | ||||
| 
 | ||||
| var unpackLabels = exports.DNS_UNPACK_LABELS || require('./dns.unpack-labels.js').DNS_UNPACK_LABELS; | ||||
| exports.DNS_TYPE_PTR = function (ab, pack, record) { | ||||
| 
 | ||||
|       return unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name; | ||||
| }; | ||||
| }('undefined' !== typeof window ? window : exports)); | ||||
|  | ||||
							
								
								
									
										
											BIN
										
									
								
								samples/aaaa-0.mdns.bin
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								samples/aaaa-0.mdns.bin
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								samples/aaaa-1.mdns.bin
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								samples/aaaa-1.mdns.bin
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user