rtnl: support isimodem GPRS connections
authorPekka Pessi <Pekka.Pessi@nokia.com>
Thu, 23 Sep 2010 19:44:09 +0000 (22:44 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Oct 2010 15:45:47 +0000 (17:45 +0200)
The isimodem GPRS connections (PHONET_PIPEs) have ARP header type 821.

src/rtnl.c

index 83f7952..ec9a5a7 100644 (file)
 
 #include "connman.h"
 
+#ifndef ARPHDR_PHONET_PIPE
+#define ARPHDR_PHONET_PIPE (821)
+#endif
+
 #define print(arg...) do { } while (0)
 //#define print(arg...) connman_info(arg)
 
@@ -398,6 +402,7 @@ static void process_newlink(unsigned short type, int index, unsigned flags,
        switch (type) {
        case ARPHRD_ETHER:
        case ARPHRD_LOOPBACK:
+       case ARPHDR_PHONET_PIPE:
        case ARPHRD_NONE:
                __connman_ipconfig_newlink(index, type, flags,
                                                        str, mtu, &stats);