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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 7 Jun 2007 16:00:33 +0530
From:	"kalash nainwal" <kalash.nainwal@...il.com>
To:	"Tej Parkash" <tejparkash.d@...il.com>
Cc:	netdev@...r.kernel.org
Subject: Re: extra layer below inet layer.

On 6/7/07, Tej Parkash <tejparkash.d@...il.com> wrote:
> hi
>
> i just want to have something like tcp layer sitting below inet layer.
> so that i can directly offload everything to NIC
> and i want it to be placed dynamically. so depending on the nic i can
> offload the feature or can make it normal flow.
> i.e. both layer should exist and normal functionality should not break.
>
> this code is in af_inet.c
>
> static struct inet_protosw inetsw_array[] =
> {
>        {
>                .type =       SOCK_STREAM,
>                .protocol =   IPPROTO_TCP,
>                .prot =       &tcp_prot,
>                .ops =        &inet_stream_ops,
>                .capability = -1,
>                .no_check =   0,
>                .flags =      INET_PROTOSW_PERMANENT |
>                              INET_PROTOSW_ICSK,
>        },
>
>        {
>                .type =       SOCK_DGRAM,
>                .protocol =   IPPROTO_UDP,
>                .prot =       &udp_prot,
>                .ops =        &inet_dgram_ops,
>                .capability = -1,
>                .no_check =   UDP_CSUM_DEFAULT,
>                .flags =      INET_PROTOSW_PERMANENT,
>       },
>
>
>       {
>               .type =       SOCK_RAW,
>               .protocol =   IPPROTO_IP,        /* wild card */
>               .prot =       &raw_prot,
>               .ops =        &inet_sockraw_ops,
>               .capability = CAP_NET_RAW,
>               .no_check =   UDP_CSUM_DEFAULT,
>               .flags =      INET_PROTOSW_REUSE,
>       }
> };
>
> i was just going through the code i found that if i can regsiter above
> kind of registration dynamically i will be able to do that.
> i have tried to do that but since normal tcp registered this at boot
> up time i am not able to unregister this dynamically
>
> so is it possible to unregister tcp and register my protocol dynamically.

inet_unregister_protosw()/inet_register_protosw().

-Kalash
-
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