• netmasks

    From Sergey Anohin@2:5034/10.1 to All on Wed Oct 4 11:40:06 2023
    Hello!

    Подскажите плз:

    For compatibility with BSD-based operating systems, the file /etc/netmasks
    is a symbolic link to /etc/inet/netmasks.

    https://docs.oracle.com/cd/E19455-01/806-0916/ipconfig-33/index.html

    а сколько я понял в FreeBSD нет ни того ни другого? То есть уже нет совместимости?

    С наилучшими пожеланиями, Sergey Anohin.

    --- wfido
    * Origin: https://5034.ru/wfido (2:5034/10.1)
  • From Alex Korchmar@2:5020/400 to Sergey Anohin on Wed Oct 4 19:19:46 2023
    From: Alex Korchmar <noreply@linux.e-moe.ru>

    Sergey Anohin <Sergey.Anohin@p1.f10.n5034.z2.fidonet.org> wrote:

    For compatibility with BSD-based operating systems, the file /etc/netmasks
    вероятно речь идет о 386/bsd ?

    Hа сколько я понял в FreeBSD нет ни того ни другого? То есть уже нет
    и не было никогда

    Alex
    P.S. хрен знает что вообще это за выкидыш динозавра.

    --- ifmail v.2.15dev5.4
    * Origin: Demos online service (2:5020/400)
  • From Eugene Grosbein@2:5006/1 to Sergey Anohin on Thu Oct 5 12:01:39 2023
    04 окт. 2023, среда, в 11:40 NOVT, Sergey Anohin написал(а):

    Подскажите плз:
    For compatibility with BSD-based operating systems, the file /etc/netmasks
    is a symbolic link to /etc/inet/netmasks. https://docs.oracle.com/cd/E19455-01/806-0916/ipconfig-33/index.html
    Hа сколько я понял в FreeBSD нет ни того ни другого? То есть уже нет совместимости?

    Ты в курсе, что именно читаешь? :-)

    System Administration Guide, Volume 3

    This book is for anyone responsible for administering one or more systems running the Solaris 8 release. It covers a broad range of Solaris
    network administration topics such as managing TCP/IP networks,
    modems, remote file systems, mail and DHCP.

    Так что это про SunOS 4 и ранее, которые были BSD-based.

    Eugene
    --
    Поэты - страшные люди. У них все святое.
    --- slrn/1.0.3 (FreeBSD)
    * Origin: RDTC JSC (2:5006/1@fidonet)
  • From Sergey Anohin@2:5034/10.1 to Eugene Grosbein on Fri Oct 6 18:19:17 2023
    Hello, Eugene!

    This book is for anyone responsible for administering one or more systems running the Solaris 8 release. It covers a broad range of Solaris
    network administration topics such as managing TCP/IP networks,
    modems, remote file systems, mail and DHCP.
    Так что это про SunOS 4 и ранее, которые были BSD-based.

    Да, я просто хотел уточнить нет ли чего-то похожего в FreeBSD. Ковыряю одну утилитку, ее портировали из Sun, с товарищами ее пробуем допилить, подебажить,
    можно будет и порт оформить.

    Програмулька использует код типа:

    void
    set_inet_addr(const char *name, struct route_info *route_info_p)
    {
    int status;
    struct addrinfo *res;
    struct sockaddr *sa = &route_info_p->ifr.ifr_addr;

    status = getaddrinfo(name, NULL, NULL, &res);
    if (status < 0)
    err(1, "getaddrinfo status = %d %s\n", status, strerror(errno) );
    sa_family = AF_INET;
    sa_len = sizeof(res->ai_addr);
    bcopy(res->ai_addr, sa, sizeof(*sa));
    freeaddrinfo(res);
    status = ioctl(route_info_p->sock, SIOCAIFADDR, &route_info_p->ifr);
    if (status < 0)
    err(1, "SIOCAIFADDR status = %d %s\n", status, strerror(errno) );
    }

    Програмулька заточена на файл /etc/netmasks, который где-то видимо прописан в хедерах Sun, если собрать в gcc12 или в clang10,
    прога работает и запускается с ворнингом:

    tap0: set address: WARNING: network mask should be specified; using historical default
    при этом маска устанавливается как 255.0.0.0

    А если собрано clang14 то не запускается:
    ethernet devname is tap0
    ax25tap: SIOCAIFADDR status = -1 Invalid argument
    : Invalid argument

    -std=c99 не помог


    С наилучшими пожеланиями, Sergey Anohin.

    --- wfido
    * Origin: https://5034.ru/wfido (2:5034/10.1)
  • From Sergey Anohin@2:5034/10.1 to Alex Korchmar on Fri Oct 6 18:30:38 2023
    Hello, Alex!

    Sergey Anohin <Sergey.Anohin@p1.f10.n5034.z2.fidonet.org> wrote:
    For compatibility with BSD-based operating systems, the file /etc/netmasks
    вероятно речь идет о 386/bsd ?

    Про Sun

    Hа сколько я понял в FreeBSD нет ни того ни другого? То есть уже нет
    и не было никогда

    Понял, спасибо!


    С наилучшими пожеланиями, Sergey Anohin.

    --- wfido
    * Origin: https://5034.ru/wfido (2:5034/10.1)