Its a point-to-point connection, no need to address something on Layer 2 in the OSI Modell where Mac belongs to. Also not every computer must have a 'default network interface', what if you are not connected to the internet and thus not have a default route? Or you are part of the backbone? Usb driver for mac. (unlikely but possible:-) I wonder what the usecase is that warrents wanting to know 'mac of the default network interface'?
Would prbably dev in a plain c library than wrap in lua to make it the most useful tool. On 2/13/11, Leo Razoumov wrote. > On Sun, Feb 13, 2011 at 05:37, Axel Kittenberger wrote: >> MAC is someting ethernet specific, not every network interface has to >> have one. Correct me if I'm wrong, but why should a PPP-connection >> have a mac adress anyway? Its a point-to-point connection, no need to >> address something on Layer 2 in the OSI Modell where Mac belongs to. >> >> Also not every computer must have a 'default network interface', what >> if you are not connected to the internet and thus not have a default >> route? Or you are part of the backbone?
However, what if you want to install the very latest HAProxy version from source? Installing HAProxy from source with Lua support. To install HAProxy from source on a Mac, we need to follow some steps. Enable-systemlua ensures that it tries to find Lua at the prefix you specify, and will make configure fail rather than fall back on the Lua bundled with wxLua. You'll also need to replace the two instances of luaI_openlib in wxlbind.cpp and wxlstate.cpp with luaL_openlib, as this is deprecated in 5.1 and not present in LuaJIT2.
Testing Lua Test if your installation is OK by printing “Hello World!”. Lua Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print ('Hello World!' ) Hello World! Type Control+ D to exit.
> >> The one which is associated with a default route is a default interface. >> On Linux one can get it via 'route -n'. From Lua one can use >> os.popen('route -n') and then parse the line with 0.0.0.0 destination >> (default route) and extract the corresponding interface name. > > I am using pppoe on my machine and 'route' tells me 0.0.0.0 > is ppp0, but that still doesn't tell me which NIC is ppp0 > associated with. > > - Jeff >Ulq 902 driver for mac. for that you need 'ifconfig ppp0' - Andrew. MAC is someting ethernet specific, not every network interface has to have one. Correct me if I'm wrong, but why should a PPP-connection have a mac adress anyway?