STRUCT IP6T_SRH1(9)
π struct ip6t_srh1(9)
okay so this is a page from the Kernel API Manual and bestie, it's literally all about struct ip6t_srh1 β the SRH match options, revision 1. that's the vibe. let's get into it π
β¨ NAME β¨
struct ip6t_srh1 β SRH match options (revision 1). that's it, that's the whole name section, she's concise π
πΈ SYNOPSIS πΈ
here's the struct in all her glory β copy it exactly, don't be weird about it:
struct ip6t_srh1 {
__u8 next_hdr;
__u8 hdr_len;
__u8 segs_left;
__u8 last_entry;
__u16 tag;
struct in6_addr psid_addr;
struct in6_addr nsid_addr;
struct in6_addr lsid_addr;
struct in6_addr psid_msk;
struct in6_addr nsid_msk;
struct in6_addr lsid_msk;
__u16 mt_flags;
__u16 mt_invflags;
};
like, look at her. six struct in6_addr fields in a row. main character energy fr fr π
π¦ Members π¦
okay this is the part where we go member by member, no skipping, we respect every single field in this struct:
next_hdrβ the Next header field of SRH π«Άhdr_lenβ the Extension header length field of SRHsegs_leftβ the Segments left field of SRHlast_entryβ the Last entry field of SRHtagβ the Tag field of SRH β¨psid_addrβ address of the previous SID in the SRH SID listnsid_addrβ address of the NEXT SID in the SRH SID list (yes, NEXT is shouting, she's excited, let her live)lsid_addrβ address of the LAST SID in the SRH SID listpsid_mskβ mask of the previous SID in the SRH SID listnsid_mskβ mask of the next SID in the SRH SID listlsid_mskβ MAsk of the last SID in the SRH SID list (yes the original capitalisation isMAsk, we are NOT fixing it, that's canon π)mt_flagsβ match optionsmt_invflagsβ invert the sense of match options π₯
ngl the three*sid_addr/*sid_mskpairs are giving previous / next / last and i'm obsessed β psid, nsid, lsid, one little family π§
π SEE ALSO π
go look at these, bestie, they're right there:
- the kernel file
./include/uapi/linux/netfilter_ipv6/ip6t_srh.h struct ip6t_srh(9)β the original, the blueprint, the mother π
and that's the page!! π thanks for reading my whole essay about a netfilter struct, you're a real one π«Ά
sign-off time: this little number lives under ./include/uapi/linux/netfilter... and it's dated October 2026, page name struct ip6t_srh1(9) β mwah, slay, periodt πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms