lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4A5F6742.6050309@candelatech.com>
Date:	Thu, 16 Jul 2009 10:45:38 -0700
From:	Ben Greear <greearb@...delatech.com>
To:	NetDev <netdev@...r.kernel.org>
Subject: Re: Determine veth peer device?

On 07/15/2009 04:55 PM, Ben Greear wrote:
> Is there a way to determine the peer device for a
> veth interface in user-space?
>
> I didn't see anything obvious printed in 'ip link show'
>
> [root@...1qc-1 ~]# ip link show dev veth0
> 7: veth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP qlen 1000
> link/ether 72:2e:4d:74:5b:a6 brd ff:ff:ff:ff:ff:ff

For the record, can get it via ethtool ioctl:

[root@...1qc-1 ~]# ethtool -S veth1
NIC statistics:
      peer_ifindex: 7

Take it easy,
Ben

-- 
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc  http://www.candelatech.com

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ