++ sniff-host command
This commit is contained in:
		
					parent
					
						
							
								42c68b1808
							
						
					
				
			
			
				commit
				
					
						ece52e4915
					
				
			
		
					 2 changed files with 17 additions and 2 deletions
				
			
		| 
						 | 
					@ -111,10 +111,11 @@
 | 
				
			||||||
|            | - Create p4lang/p4-spec bug                                                |       |
 | 
					|            | - Create p4lang/p4-spec bug                                                |       |
 | 
				
			||||||
|            | https://github.com/p4lang/p4-spec/issues/745                               |       |
 | 
					|            | https://github.com/p4lang/p4-spec/issues/745                               |       |
 | 
				
			||||||
|            |                                                                            |       |
 | 
					|            |                                                                            |       |
 | 
				
			||||||
| 2019-03-21 | Meet Laurent #3                                                            |       |
 | 
					| 2019-03-21 | Meet Laurent #4                                                            |       |
 | 
				
			||||||
|            | - My dog ate my homework                                                   |       |
 | 
					|            | - My dog ate my homework                                                   |       |
 | 
				
			||||||
|            | - Router solicitation for finding router on startup!                       |       |
 | 
					|            | - Router solicitation for finding router on startup!                       |       |
 | 
				
			||||||
|            | - test.py for TDD                                                          |       |
 | 
					|            | - test.py for TDD                                                          |       |
 | 
				
			||||||
 | 
					|            | - Parsing icmp6 is not enough - one layer deeper                           |       |
 | 
				
			||||||
|            |                                                                            |       |
 | 
					|            |                                                                            |       |
 | 
				
			||||||
|            |                                                                            |       |
 | 
					|            |                                                                            |       |
 | 
				
			||||||
| 2019-03-30 | NAT64 1:1 table ICMP, ICMPv6 working                                       |       |
 | 
					| 2019-03-30 | NAT64 1:1 table ICMP, ICMPv6 working                                       |       |
 | 
				
			||||||
| 
						 | 
					@ -754,7 +755,7 @@ DEBUG:main:INCOMING: <Ether  dst=00:00:0a:00:00:42 src=00:00:0a:00:00:01 type=0x
 | 
				
			||||||
DEBUG:main:cpu = <CpuHeader  task=ICMP6_GENERAL ingress_port=1 type=0x86dd |<Raw  load='`\x00\x00\x00\x00 :\xff\xfe\x80\x00\x00\x00\x00\x00\x00\x02\x00\n\xff\xfe\x00\x00\x01 \x01\r\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00B\x87\x00\x08+\x00\x00\x00\x00 \x01\r\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00B\x01\x01\x00\x00\n\x00\x00\x01' |>>
 | 
					DEBUG:main:cpu = <CpuHeader  task=ICMP6_GENERAL ingress_port=1 type=0x86dd |<Raw  load='`\x00\x00\x00\x00 :\xff\xfe\x80\x00\x00\x00\x00\x00\x00\x02\x00\n\xff\xfe\x00\x00\x01 \x01\r\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00B\x87\x00\x08+\x00\x00\x00\x00 \x01\r\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00B\x01\x01\x00\x00\n\x00\x00\x01' |>>
 | 
				
			||||||
DEBUG:main:reassambled=<Ether  dst=00:00:0a:00:00:42 src=00:00:0a:00:00:01 type=0x86dd |<IPv6  version=6 tc=0 fl=0 plen=32 nh=ICMPv6 hlim=255 src=fe80::200:aff:fe00:1 dst=2001:db8::42 |<ICMPv6ND_NS  type=Neighbor Solicitation code=0 cksum=0x82b res=0 tgt=2001:db8::42 |<ICMPv6NDOptSrcLLAddr  type=1 len=1 lladdr=00:00:0a:00:00:01 |>>>>
 | 
					DEBUG:main:reassambled=<Ether  dst=00:00:0a:00:00:42 src=00:00:0a:00:00:01 type=0x86dd |<IPv6  version=6 tc=0 fl=0 plen=32 nh=ICMPv6 hlim=255 src=fe80::200:aff:fe00:1 dst=2001:db8::42 |<ICMPv6ND_NS  type=Neighbor Solicitation code=0 cksum=0x82b res=0 tgt=2001:db8::42 |<ICMPv6NDOptSrcLLAddr  type=1 len=1 lladdr=00:00:0a:00:00:01 |>>>>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
***** TODO Debug why neighbor discover does not work anymore
 | 
					***** DONE Debug why neighbor discover does not work anymore
 | 
				
			||||||
****** log
 | 
					****** log
 | 
				
			||||||
 p4@ubuntu:~$ mx h1 tcpdump -lni any
 | 
					 p4@ubuntu:~$ mx h1 tcpdump -lni any
 | 
				
			||||||
 sudo: unable to resolve host ubuntu
 | 
					 sudo: unable to resolve host ubuntu
 | 
				
			||||||
| 
						 | 
					@ -788,6 +789,9 @@ DEBUG:main:reassambled=<Ether  dst=00:00:0a:00:00:42 src=00:00:0a:00:00:01 type=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
****** Do we have routing for fe80::/10? Probably not. Shouldn't we see it in the controller then?
 | 
					****** Do we have routing for fe80::/10? Probably not. Shouldn't we see it in the controller then?
 | 
				
			||||||
****** NDP is controller only!
 | 
					****** NDP is controller only!
 | 
				
			||||||
 | 
					***** TODO Finish NDP in switch
 | 
				
			||||||
 | 
					****** TODO Need to set R/S/O bits
 | 
				
			||||||
 | 
					****** TODO Need to parse R/S/O bits
 | 
				
			||||||
***** TODO Maybe merge v6_address and v6_networks - /128 is the same
 | 
					***** TODO Maybe merge v6_address and v6_networks - /128 is the same
 | 
				
			||||||
***** TODO Implement address learning?
 | 
					***** TODO Implement address learning?
 | 
				
			||||||
***** TODO Not sure whether we should react on router solicitation
 | 
					***** TODO Not sure whether we should react on router solicitation
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										11
									
								
								p4app/sniff-host
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								p4app/sniff-host
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,11 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -x
 | 
				
			||||||
 | 
					host=$1
 | 
				
			||||||
 | 
					name=$2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					now=$(date +%F-%H%M)
 | 
				
			||||||
 | 
					filename=${now}-${name}-${host}.pcap
 | 
				
			||||||
 | 
					intf=${host}-eth0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					mx "$host" tcpdump -ni ${intf} -w "${filename}"
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue