search for: siocsifdstaddr

Displaying 1 result from an estimated 1 matches for "siocsifdstaddr".

2013 Apr 10
1
What about port 2048 for GRE(47) packaged in ip protocol
...ying with Gre Tunnel programming in centos 6. ? ? ? ?? ? ? ? ? I wrote my program in these steps:? ? ? ? ? a, open /dev/net/tun ?device and ioctl with?TUNSETIFF, get fd to tun device, say "tun0"; ? ? ? ? b, create one socket and use it to set tun0's ?ip address, namyly?SIOCSIFADDR and?SIOCSIFDSTADDR; and then turn it up; ? ? ? ? c, create one raw socket to send things which got from the tun0 device to other machine, and to receive packages which should be?feeded into the tun0 device; ? ? ? ? Finally, I ran the program in two machines, say MA and MB, synchronously, and set route info in MA and...