[packet] -------> [NIC(promiscuous)] When a application read packets from this NIC, it receives the SAME packet which was sent to NIC. [application]<---receive--[packet] <------- [NIC(promiscuous)] To ignore this "LOOPBACK" packet, how to write code in STREAMS module (or how to control NIC)? My environment is as follows. CPU: SPARC OS : Solaris 2.6, 8 Thanks!!! [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <6fb062e2.0402292342.2dc87a73@posting.google.com> [ref] => [htmlstate] => on_nl2br [postusername] => Tsuyoshi [ip] => bz800k@hotmail. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) -->[my STREAMS module]<---->[NetworkInterface(hme0)] [application] can send and receive packets through [my STREAMS modue] and [hme0]. However, if I set hme0 in promiscuous mode, it seems that packet loopback happened in hme0. I wrote sample application to test my STREAMS module in promiscuous mode. The code is as follows. while (1) { SND(packet); /* send packet to my STREAMS module */ RCV(packet); /* receive packet from my STREAMS module */ } I found that received packets(by calling RCV()) are the same packets which were sent by SND(). I'd like to ignore these LOOPBACK packets in RCV(). Please help me. Thanks !!! [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <6fb062e2.0403020134.f15a03e@posting.google.com> [ref] => <6fb062e2.0402292342.2dc87a73@posting.google.com> [htmlstate] => on_nl2br [postusername] => Tsuyoshi [ip] => bz800k@hotmail. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->[my STREAMS module]<---->[NetworkInterface(hme0)][/ref] [ref] >[application] can send and receive packets through [my STREAMS >modue] >and [hme0]. >However, if I set hme0 in promiscuous mode, it seems that packet >loopback happened in hme0.[/ref] Yes, a promiscuous streams interface will loopback all packets send out. [ref] >I wrote sample application to test my STREAMS module in promiscuous >mode. >The code is as follows.[/ref] [ref] >while (1) { > SND(packet); /* send packet to my STREAMS module */ > RCV(packet); /* receive packet from my STREAMS module */ >}[/ref] [ref] >I found that received packets(by calling RCV()) are the same packets >which were sent by >SND().[/ref] [ref] >I'd like to ignore these LOOPBACK packets in RCV(). >Please help me.[/ref] You will need to check for these packets and filter them out; there's no other way. Casper [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <40446817$0$570$e4fe514c@news.xs4all.nl> [ref] => <6fb062e2.0402292342.2dc87a73@posting.google.com> <6fb062e2.0403020134.f15a03e@posting.google.com> [htmlstate] => on_nl2br [postusername] => Casper [ip] => Casper.Dik@Sun. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 4 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> [Q] send packet in PROMISCUOUS mode(Solaris) - UNIX Programming

[Q] send packet in PROMISCUOUS mode(Solaris) - UNIX Programming

Hello A packet could be sent to a NIC in promiscuous mode. [application]---send-->[packet] -------> [NIC(promiscuous)] When a application read packets from this NIC, it receives the SAME packet which was sent to NIC. [application]<---receive--[packet] <------- [NIC(promiscuous)] To ignore this "LOOPBACK" packet, how to write code in STREAMS module (or how to control NIC)? My environment is as follows. CPU: SPARC OS : Solaris 2.6, 8 Thanks!!!...

  1. #1

    Default [Q] send packet in PROMISCUOUS mode(Solaris)

    Hello

    A packet could be sent to a NIC in promiscuous mode.

    [application]---send-->[packet] -------> [NIC(promiscuous)]

    When a application read packets from this NIC,
    it receives the SAME packet which was sent to NIC.

    [application]<---receive--[packet] <------- [NIC(promiscuous)]

    To ignore this "LOOPBACK" packet, how to write code in STREAMS module
    (or how to control NIC)?

    My environment is as follows.

    CPU: SPARC
    OS : Solaris 2.6, 8

    Thanks!!!
    Tsuyoshi Guest

  2. #2

    Default Re: [Q] send packet in PROMISCUOUS mode(Solaris)

    I don't understand your question. I suspect others also don't
    understand, which is why they didn't answer when you posted it a few
    days ago. Instead of posting the EXACT SAME message, try explaining it
    better.

    --
    Barry Margolin, mit.edu
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    Barry Guest

  3. #3

    Default Re: [Q] send packet in PROMISCUOUS mode(Solaris)

    Barry Margolin <mit.edu> wrote in message news:<ash.giganews.com>... 

    Sorry.

    I'm writing a STREAMS module in Solaris.
    This STREAMS module is bound to network interface (such as hme0)

    [application] <--->[my STREAMS module]<---->[NetworkInterface(hme0)]

    [application] can send and receive packets through [my STREAMS
    modue]
    and [hme0].
    However, if I set hme0 in promiscuous mode, it seems that packet
    loopback
    happened in hme0.

    I wrote sample application to test my STREAMS module in promiscuous
    mode.
    The code is as follows.

    while (1) {
    SND(packet); /* send packet to my STREAMS module */
    RCV(packet); /* receive packet from my STREAMS module */
    }

    I found that received packets(by calling RCV()) are the same packets
    which were sent by
    SND().

    I'd like to ignore these LOOPBACK packets in RCV().
    Please help me.
    Thanks !!!
    Tsuyoshi Guest

  4. #4

    Default Re: [Q] send packet in PROMISCUOUS mode(Solaris)

    com (Tsuyoshi) writes:
     
     
     

    Yes, a promiscuous streams interface will loopback all packets
    send out.
     
     
     
     


    You will need to check for these packets and filter them out; there's
    no other way.

    Casper
    Casper Guest

Similar Threads

  1. Replies: 4
    Last Post: August 12th, 02:44 PM
  2. Installing Solaris patches in single user mode
    By BillyA in forum Linux / Unix Administration
    Replies: 10
    Last Post: February 8th, 11:02 PM
  3. Menu in text mode Solaris 8
    By Bengali in forum Sun Solaris
    Replies: 6
    Last Post: September 18th, 07:58 AM
  4. Packet mode pseudo terminals
    By Rich Teer in forum UNIX Programming
    Replies: 1
    Last Post: July 23rd, 12:13 AM
  5. Replies: 2
    Last Post: July 10th, 12:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •