What is “inet prefix”?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















$ ss 'state = established'
Error: an inet prefix is expected rather than "state".
Cannot parse dst/src address.


What is "inet prefix"? What is valid "inet prefix"? Thanks.










share|improve this question






















  • The syntax is ss state established rather than ss 'state = established' I think (take a look at the USAGE EXAMPLES section of the man page)

    – steeldriver
    Feb 7 at 1:36











  • I can only guess that. So I ask What is "inet prefix"? What is valid "inet prefix"?

    – Tim
    Feb 7 at 1:38















0















$ ss 'state = established'
Error: an inet prefix is expected rather than "state".
Cannot parse dst/src address.


What is "inet prefix"? What is valid "inet prefix"? Thanks.










share|improve this question






















  • The syntax is ss state established rather than ss 'state = established' I think (take a look at the USAGE EXAMPLES section of the man page)

    – steeldriver
    Feb 7 at 1:36











  • I can only guess that. So I ask What is "inet prefix"? What is valid "inet prefix"?

    – Tim
    Feb 7 at 1:38













0












0








0








$ ss 'state = established'
Error: an inet prefix is expected rather than "state".
Cannot parse dst/src address.


What is "inet prefix"? What is valid "inet prefix"? Thanks.










share|improve this question














$ ss 'state = established'
Error: an inet prefix is expected rather than "state".
Cannot parse dst/src address.


What is "inet prefix"? What is valid "inet prefix"? Thanks.







iproute ss






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 7 at 1:23









TimTim

27.4k78264474




27.4k78264474












  • The syntax is ss state established rather than ss 'state = established' I think (take a look at the USAGE EXAMPLES section of the man page)

    – steeldriver
    Feb 7 at 1:36











  • I can only guess that. So I ask What is "inet prefix"? What is valid "inet prefix"?

    – Tim
    Feb 7 at 1:38

















  • The syntax is ss state established rather than ss 'state = established' I think (take a look at the USAGE EXAMPLES section of the man page)

    – steeldriver
    Feb 7 at 1:36











  • I can only guess that. So I ask What is "inet prefix"? What is valid "inet prefix"?

    – Tim
    Feb 7 at 1:38
















The syntax is ss state established rather than ss 'state = established' I think (take a look at the USAGE EXAMPLES section of the man page)

– steeldriver
Feb 7 at 1:36





The syntax is ss state established rather than ss 'state = established' I think (take a look at the USAGE EXAMPLES section of the man page)

– steeldriver
Feb 7 at 1:36













I can only guess that. So I ask What is "inet prefix"? What is valid "inet prefix"?

– Tim
Feb 7 at 1:38





I can only guess that. So I ask What is "inet prefix"? What is valid "inet prefix"?

– Tim
Feb 7 at 1:38










2 Answers
2






active

oldest

votes


















2














By inet they mean a "network socket address" (inet4 or inet6 vs unix)
By prefix they mean the IP (1.2.3.4) of the IP:port pair required for a socket.



The manual written by the application author is more clear than the Debian maintainers version and lists examples like



dst prefix:port
dst 10.0.0.0/24:22


The IP may include a mask (/24) making prefix a reasonable abstraction.
Notably you did not ask how to fix your syntax and there is already a comment on that so I'll just keep on point with this answer.






share|improve this answer

























  • There is no "Debian maintainers" manual. The manual in the Debian package is the one in the original software maintained by Stephen Hemminger, unaltered.

    – JdeBP
    Feb 7 at 8:49












  • Thanks. How can I find all the manuals written by the application author for all the commands in lprouter2?

    – Tim
    Feb 7 at 12:04











  • @JdeBP "AUTHOR ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others)."

    – user1133275
    Feb 8 at 11:29











  • @Tim search the www

    – user1133275
    Feb 8 at 11:42











  • It is the manual page in the original software, as I showed you by pointing right to it, that has been modified by a fair number of people in the decade and a bit since it was first written, and Debian takes it from the original software as-is.

    – JdeBP
    Feb 8 at 12:10


















1














The IP prefix, is the "192.168.1.0" part of 192.168.1.0/24, 24 being the suffix tells how many bits are in the entire address. A valid inet prefix is any prefix that matches the network you are attempting to communicate on that also aligns with the subnet. Whether that is a 10. or a 192. or other. network for example.



In your use case the error message you received was erroneous, as it was just ss's best guess as to what you were asking it to accomplish. Do to the fact that the syntax was off.






share|improve this answer
























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499199%2fwhat-is-inet-prefix%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    By inet they mean a "network socket address" (inet4 or inet6 vs unix)
    By prefix they mean the IP (1.2.3.4) of the IP:port pair required for a socket.



    The manual written by the application author is more clear than the Debian maintainers version and lists examples like



    dst prefix:port
    dst 10.0.0.0/24:22


    The IP may include a mask (/24) making prefix a reasonable abstraction.
    Notably you did not ask how to fix your syntax and there is already a comment on that so I'll just keep on point with this answer.






    share|improve this answer

























    • There is no "Debian maintainers" manual. The manual in the Debian package is the one in the original software maintained by Stephen Hemminger, unaltered.

      – JdeBP
      Feb 7 at 8:49












    • Thanks. How can I find all the manuals written by the application author for all the commands in lprouter2?

      – Tim
      Feb 7 at 12:04











    • @JdeBP "AUTHOR ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others)."

      – user1133275
      Feb 8 at 11:29











    • @Tim search the www

      – user1133275
      Feb 8 at 11:42











    • It is the manual page in the original software, as I showed you by pointing right to it, that has been modified by a fair number of people in the decade and a bit since it was first written, and Debian takes it from the original software as-is.

      – JdeBP
      Feb 8 at 12:10















    2














    By inet they mean a "network socket address" (inet4 or inet6 vs unix)
    By prefix they mean the IP (1.2.3.4) of the IP:port pair required for a socket.



    The manual written by the application author is more clear than the Debian maintainers version and lists examples like



    dst prefix:port
    dst 10.0.0.0/24:22


    The IP may include a mask (/24) making prefix a reasonable abstraction.
    Notably you did not ask how to fix your syntax and there is already a comment on that so I'll just keep on point with this answer.






    share|improve this answer

























    • There is no "Debian maintainers" manual. The manual in the Debian package is the one in the original software maintained by Stephen Hemminger, unaltered.

      – JdeBP
      Feb 7 at 8:49












    • Thanks. How can I find all the manuals written by the application author for all the commands in lprouter2?

      – Tim
      Feb 7 at 12:04











    • @JdeBP "AUTHOR ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others)."

      – user1133275
      Feb 8 at 11:29











    • @Tim search the www

      – user1133275
      Feb 8 at 11:42











    • It is the manual page in the original software, as I showed you by pointing right to it, that has been modified by a fair number of people in the decade and a bit since it was first written, and Debian takes it from the original software as-is.

      – JdeBP
      Feb 8 at 12:10













    2












    2








    2







    By inet they mean a "network socket address" (inet4 or inet6 vs unix)
    By prefix they mean the IP (1.2.3.4) of the IP:port pair required for a socket.



    The manual written by the application author is more clear than the Debian maintainers version and lists examples like



    dst prefix:port
    dst 10.0.0.0/24:22


    The IP may include a mask (/24) making prefix a reasonable abstraction.
    Notably you did not ask how to fix your syntax and there is already a comment on that so I'll just keep on point with this answer.






    share|improve this answer















    By inet they mean a "network socket address" (inet4 or inet6 vs unix)
    By prefix they mean the IP (1.2.3.4) of the IP:port pair required for a socket.



    The manual written by the application author is more clear than the Debian maintainers version and lists examples like



    dst prefix:port
    dst 10.0.0.0/24:22


    The IP may include a mask (/24) making prefix a reasonable abstraction.
    Notably you did not ask how to fix your syntax and there is already a comment on that so I'll just keep on point with this answer.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 8 at 11:37

























    answered Feb 7 at 4:03









    user1133275user1133275

    3,517723




    3,517723












    • There is no "Debian maintainers" manual. The manual in the Debian package is the one in the original software maintained by Stephen Hemminger, unaltered.

      – JdeBP
      Feb 7 at 8:49












    • Thanks. How can I find all the manuals written by the application author for all the commands in lprouter2?

      – Tim
      Feb 7 at 12:04











    • @JdeBP "AUTHOR ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others)."

      – user1133275
      Feb 8 at 11:29











    • @Tim search the www

      – user1133275
      Feb 8 at 11:42











    • It is the manual page in the original software, as I showed you by pointing right to it, that has been modified by a fair number of people in the decade and a bit since it was first written, and Debian takes it from the original software as-is.

      – JdeBP
      Feb 8 at 12:10

















    • There is no "Debian maintainers" manual. The manual in the Debian package is the one in the original software maintained by Stephen Hemminger, unaltered.

      – JdeBP
      Feb 7 at 8:49












    • Thanks. How can I find all the manuals written by the application author for all the commands in lprouter2?

      – Tim
      Feb 7 at 12:04











    • @JdeBP "AUTHOR ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others)."

      – user1133275
      Feb 8 at 11:29











    • @Tim search the www

      – user1133275
      Feb 8 at 11:42











    • It is the manual page in the original software, as I showed you by pointing right to it, that has been modified by a fair number of people in the decade and a bit since it was first written, and Debian takes it from the original software as-is.

      – JdeBP
      Feb 8 at 12:10
















    There is no "Debian maintainers" manual. The manual in the Debian package is the one in the original software maintained by Stephen Hemminger, unaltered.

    – JdeBP
    Feb 7 at 8:49






    There is no "Debian maintainers" manual. The manual in the Debian package is the one in the original software maintained by Stephen Hemminger, unaltered.

    – JdeBP
    Feb 7 at 8:49














    Thanks. How can I find all the manuals written by the application author for all the commands in lprouter2?

    – Tim
    Feb 7 at 12:04





    Thanks. How can I find all the manuals written by the application author for all the commands in lprouter2?

    – Tim
    Feb 7 at 12:04













    @JdeBP "AUTHOR ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others)."

    – user1133275
    Feb 8 at 11:29





    @JdeBP "AUTHOR ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others)."

    – user1133275
    Feb 8 at 11:29













    @Tim search the www

    – user1133275
    Feb 8 at 11:42





    @Tim search the www

    – user1133275
    Feb 8 at 11:42













    It is the manual page in the original software, as I showed you by pointing right to it, that has been modified by a fair number of people in the decade and a bit since it was first written, and Debian takes it from the original software as-is.

    – JdeBP
    Feb 8 at 12:10





    It is the manual page in the original software, as I showed you by pointing right to it, that has been modified by a fair number of people in the decade and a bit since it was first written, and Debian takes it from the original software as-is.

    – JdeBP
    Feb 8 at 12:10













    1














    The IP prefix, is the "192.168.1.0" part of 192.168.1.0/24, 24 being the suffix tells how many bits are in the entire address. A valid inet prefix is any prefix that matches the network you are attempting to communicate on that also aligns with the subnet. Whether that is a 10. or a 192. or other. network for example.



    In your use case the error message you received was erroneous, as it was just ss's best guess as to what you were asking it to accomplish. Do to the fact that the syntax was off.






    share|improve this answer





























      1














      The IP prefix, is the "192.168.1.0" part of 192.168.1.0/24, 24 being the suffix tells how many bits are in the entire address. A valid inet prefix is any prefix that matches the network you are attempting to communicate on that also aligns with the subnet. Whether that is a 10. or a 192. or other. network for example.



      In your use case the error message you received was erroneous, as it was just ss's best guess as to what you were asking it to accomplish. Do to the fact that the syntax was off.






      share|improve this answer



























        1












        1








        1







        The IP prefix, is the "192.168.1.0" part of 192.168.1.0/24, 24 being the suffix tells how many bits are in the entire address. A valid inet prefix is any prefix that matches the network you are attempting to communicate on that also aligns with the subnet. Whether that is a 10. or a 192. or other. network for example.



        In your use case the error message you received was erroneous, as it was just ss's best guess as to what you were asking it to accomplish. Do to the fact that the syntax was off.






        share|improve this answer















        The IP prefix, is the "192.168.1.0" part of 192.168.1.0/24, 24 being the suffix tells how many bits are in the entire address. A valid inet prefix is any prefix that matches the network you are attempting to communicate on that also aligns with the subnet. Whether that is a 10. or a 192. or other. network for example.



        In your use case the error message you received was erroneous, as it was just ss's best guess as to what you were asking it to accomplish. Do to the fact that the syntax was off.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 7 at 6:37

























        answered Feb 7 at 6:10









        Michael ProkopecMichael Prokopec

        1,532218




        1,532218



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f499199%2fwhat-is-inet-prefix%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?