STRUCT GSM_NETCONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct gsm_netconfig β€” the network configuration parameters for n_gsm, bestie. That's the whole vibe. It's a struct. It holds your network setup. Slay.


✨ SYNOPSIS ✨

okay so here's literally the exact shape of it, no cap:

struct gsm_netconfig {
    unsigned int adaption;
    unsigned short protocol;
    unsigned short unused2;
    char if_name[IFNAMSIZ];
    __u8 unused[28];
 };

πŸŽ€ Members πŸŽ€

  • adaption β€” which adaption you wanna use in network mode. That's the one. Pick your adaption, live your truth πŸ’…
  • protocol β€” the protocol to use, and listen: only ETH_P_IP is supported. That's it, that's the whole list. Don't come at it with anything else πŸ™ˆ
  • unused2 β€” can not be used. Not "maybe", not "if you're brave". Can not. Leave it alone 🫢
  • if_name β€” interface name format string. It's a char array sized IFNAMSIZ, so that's the budget for your naming fantasy ✨
  • unused β€” can not be used. Twenty-eight (28) __u8s of pure hands-off energy. Do not touch, do not pass go πŸ’€

πŸ¦‹ Description πŸ¦‹

So this struct is the bestie that rides along with GSMIOC_ENABLE_NET and GSMIOC_DISABLE_NET β€” together they enable or disable a network data connection over a mux virtual tty channel πŸ”₯

And who is this for? For modems that support data connections with raw IP frames instead of PPP. Raw IP frames, periodt. iykyk 🌸


🌈 SEE ALSO 🌈

Go touch some kernel files, king:

  • Kernel file ./include/uapi/linux/gsmmux.h β€” struct gsm_config(9), struct gsm_config_ext(9), struct gsm_dlci_config(9) πŸ¦‹

sign-off era 🌈 β€” this lil page lives in ./include/uapi/linux, dated October 2026. Bye bestie, go configure something iconic πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from