Re: How to get the MAC address?
Shiro Kawai <[email protected]> Sun, 31 Jul 2022 22:36:52 -1000
| Newsgroups | gmane.lisp.scheme.gauche |
|---|---|
| Message-ID | <CALN0JNEw8s-94zF+sauEpRwEZrFGehU1jy7GTMHhmbUtP7f_SQ@mail.gmail.com> |
Currently we have limited support of socket ioctl. See Scm_SocketIoctl. We don't support SIOCGIFHWADDR (yet). Also, we don't have a general FFI yet. If there's a use case I can add the support. However, if you're on Linux, Jens' suggestion on /sys/class... would be simpler. --shiro On Sun, Jul 31, 2022 at 10:22 PM Jens Thiele <[email protected]> wrote: > Nanbu Nanbu <[email protected]> writes: > > > This is nanbuwks@nanbu works inc. > > Nice to meet you. > > > > I am comparing several programming languages to see if they can be used > for > > low-level programming. > > As an example, I am looking into how to get the MAC address of an > Ethernet > > adapter, preferably using Linux's ioctl. > > > > How do I get the MAC address of the Ethernet adapter in Gauche? Also, is > > there a way to call ioctl? > > not what you asked for but maybe it is simpler to look at: > /sys/class/net/*/address > > greetings > jens > > > _______________________________________________ > Gauche-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gauche-devel > _______________________________________________ Gauche-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gauche-devel