home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,827 of 14,669   
   Jorgen Grahn to adirtymindisajoyforever   
   Re: udp socket question   
   29 Nov 11 13:27:37   
   
   746719ab   
   From: grahn+nntp@snipabacken.se   
      
   On Tue, 2011-11-29, adirtymindisajoyforever wrote:   
   > hi,   
   >   
   > moved from the solaris newsgroup to here hoping for more success.   
   >   
   > I have a solaris box with two nic cards: iprb0 and e1000g0.   
   >   
   > In the routing table the first entry is the e1000g0.   
   >   
   > On this machine I have a udp socket listening process that echoes all   
   > incoming messsages.   
   >   
   > I have another machine from which i send upd messages and receive   
   > answers   
   > on the same socket.   
      
   ... using an application we can call Foo.   
      
   > I use as destination ip address the one associated with iprb0.   
   >   
   > Snoop tells me the incoming messages are on iprb0 and outgoing on   
   > e1000g0, i.e. the reply don not have the ip address configured for   
   > iprb0   
   > (as the messages sent), but the address configures on e1000g0.   
   >   
   > When the sending machine is a linux the messages echoed are NOT   
   > received.   
   > When the sending machine is a solaris, messages are received.   
      
   I assume "sending machine" refers to "another machine from which i   
   send upd messages and receive answers"?  (It's often a good idea to   
   name the machines in questions like this one, e.g. A, B and C.)   
      
   > Which behaviour is correct? According to me it is the linux one.   
      
   It depends on how Foo is documented to work, doesn't it?   
      
   And on what "received" means.  In the general case, an UDP socket (at   
   least an one you haven't called connect() on) will swallow datagrams   
   from any source. Surely that's the case on both OSes.   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca