From: Cedric Velandres <cedric.velandres@eee.upd.edu.ph>
To: kernelnewbies@kernelnewbies.org
Subject: Adding a custom layer 3 protocol driver
Date: Fri, 25 Jun 2021 18:59:53 +0800 [thread overview]
Message-ID: <CANyLa3UscE_xm+mbLMyP2WarnA8jku8Y3Gi8UP+a1rseMXU02Q@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 800 bytes --]
Hi everyone,
We're currently developing a new communication using custom layer 2 and 3
that we'll be using in a cubesat and I'm looking on how to create the layer
3 driver for linux (similar to af_inet.c but the headers are completely
different). I've read something similar in a thread about a previously
asked question here, but it didn't really answer my questions. And so, my
questions are:
1. Will it suffice to patch linux/socket.h and insert the PF_xxxx before
PF_MAX then use the added PF_xxxx as family in struct net_proto_family?
2. Is there another way to do the above without patching and only in an
out-of-tree module?
3. How do I expose the new AF_xxxx to userspace? It seems like macros for
AF_xxxx are placed in bits/socket.h, but I haven't found a way to patch it.
Thanks,
Cedric
[-- Attachment #1.2: Type: text/html, Size: 980 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
reply other threads:[~2021-06-25 11:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANyLa3UscE_xm+mbLMyP2WarnA8jku8Y3Gi8UP+a1rseMXU02Q@mail.gmail.com \
--to=cedric.velandres@eee.upd.edu.ph \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).