From owner-freebsd-net@FreeBSD.ORG Tue Jan 14 09:53:06 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 91418CCB for ; Tue, 14 Jan 2014 09:53:06 +0000 (UTC) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3C429132F for ; Tue, 14 Jan 2014 09:53:05 +0000 (UTC) Received: by people.fsn.hu (Postfix, from userid 1001) id 5ADA21295D27; Tue, 14 Jan 2014 10:53:03 +0100 (CET) X-Bogosity: Ham, tests=bogofilter, spamicity=0.003660, version=1.2.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MF-ACE0E1EA [pR: 15.0867] X-CRM114-CacheID: sfid-20140114_10530_9F24C211 X-CRM114-Status: Good ( pR: 15.0867 ) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Tue Jan 14 10:53:03 2014 X-DSPAM-Confidence: 0.9944 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 52d508ff275659298181027 X-DSPAM-Factors: 27, From*Attila Nagy , 0.00010, >+On, 0.00049, wrote+>, 0.00189, wrote+>, 0.00189, >+>>, 0.00255, >>+>>, 0.00362, Otherwise, 0.00375, From*Attila, 0.00438, daemon, 0.00477, >>+Hi, 0.00477, wrote, 0.00520, wrote, 0.00520, update+the, 0.00525, 09+16, 0.00583, References*fsn.hu>, 0.00583, squid, 0.00655, >+I'm, 0.00655, at+09, 0.00748, Hi+>>, 0.00748, Received*online.co.hu+[195.228.243.99]), 0.00872, Received*[195.228.243.99]), 0.00872, Received*online.co.hu, 0.00872, From*Attila+Nagy, 0.00872, parse, 0.00872, Received*(japan.t, 0.00872, From*Nagy+ Date: Tue, 14 Jan 2014 10:53:01 +0100 From: Attila Nagy MIME-Version: 1.0 To: "Bjoern A. Zeeb" Subject: Re: Showing CDP info in ifconfig? References: <52D50065.8060907@fsn.hu> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jan 2014 09:53:06 -0000 On 01/14/14 10:31, Bjoern A. Zeeb wrote: > On 14 Jan 2014, at 09:16 , Attila Nagy wrote: > >> Hi, >> >> Anybody thought about how useful would be showing CDP info in ifconfig output? > No. Neither would lldp or other protocols. That’s what a higher level management user interface is for. I’d be happy to finally see someone do this in an abstracted way so it could be a cli, a Web interface, or some xml-rpc thingy or whatever is the standard of the day. > ifconfig is not the place, especially since it would have to query a daemon running somewhere else anyway. Otherwise we’ll end up with ndp, ospf, isis, bgp, ipsec, and the apache, varnish, and squid status there as well. > I'm not sure how this could be done efficiently, without any ill effects, but yes, it's likely that doing it in userspace is a safer way. With CDP you have to capture just one packet, parse it and update the values, with some of the examples, this is not the case. :) But I got the point.