• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
writev fails on tun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

writev fails on tun


  • Subject: writev fails on tun
  • From: anil kumar dahiya <email@hidden>
  • Date: Tue, 4 Apr 2006 03:21:02 -0700 (PDT)

HI
 
ifconfig on my system shows that :
tun0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.13.76 --> 192.168.11.76 netmask 0xffffff00
        open (pid 583)
I am writting data to tun device as :
 
        u_int32_t type;
        struct iovec iv[2];
        struct ip *iph;
        iph = (struct ip *) buf;
        printf(" write tun IN");
        type = htonl (AF_INET);
        iv[0].iov_base = &type;
        iv[0].iov_len = sizeof (type);
        iv[0].iov_base = buf;
        iv[0].iov_len = len;
        openbsd_modify_read_write_return (writev (fd, iv, 2));
 
But when i do dmesg:
it shows that  :
    tun: could not determine the ip version
 
 
Can anyone suggest where thinges are going wrong.
 
--- Anil


New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: writev fails on tun
      • From: anil kumar dahiya <email@hidden>
  • Prev by Date: Re: PowerPC assembly jump table
  • Next by Date: Re: writev fails on tun
  • Previous by thread: Re: PowerPC assembly jump table
  • Next by thread: Re: writev fails on tun
  • Index(es):
    • Date
    • Thread