Index: bnep.c =================================================================== RCS file: /cvsroot/src/usr.sbin/btpand/bnep.c,v retrieving revision 1.8 diff -u -r1.8 bnep.c --- bnep.c 12 May 2009 21:08:30 -0000 1.8 +++ bnep.c 10 Dec 2010 12:43:14 -0000 @@ -394,6 +394,7 @@ if (rsp == BNEP_SETUP_SUCCESS) { chan->state = CHANNEL_OPEN; channel_timeout(chan, 0); + bnep_send_control(chan, BNEP_FILTER_NET_TYPE_SET); } else { chan->down(chan); } @@ -614,6 +615,14 @@ break; case BNEP_FILTER_NET_TYPE_SET: /* TODO */ + be16enc(p, 4); /* 4 bytes */ + p += 2; + be16enc(p, ETHERTYPE_IP); /* from 0x0800 */ + p += 2; + be16enc(p, ETHERTYPE_IP); /* to 0x0800 */ + p += 2; + break; + case BNEP_FILTER_MULTI_ADDR_SET: /* TODO */ default: log_err("Can't send control type 0x%2.2x", type);