diff options
author | brian <brian@FreeBSD.org> | 1999-06-23 16:48:24 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-06-23 16:48:24 +0000 |
commit | f32906f4850984e002004d359ebc9dbf5d9d68c3 (patch) | |
tree | afdaf207c3a90a551246c2814f7618cac59b36c5 /usr.sbin/ppp/ip.c | |
parent | 5924813a9fe9b7766494b9b8baab4cb1e8e0c667 (diff) | |
download | FreeBSD-src-f32906f4850984e002004d359ebc9dbf5d9d68c3.zip FreeBSD-src-f32906f4850984e002004d359ebc9dbf5d9d68c3.tar.gz |
Support `igmp' filters.
Mostly submitted by: Timo Geusch <freebsd@sleepycat.ukpeople.net>
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r-- | usr.sbin/ppp/ip.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 9336b9b..a674e43 100644 --- a/usr.sbin/ppp/ip.c +++ b/usr.sbin/ppp/ip.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ip.c,v 1.62 1999/05/31 23:57:39 brian Exp $ + * $Id: ip.c,v 1.63 1999/06/02 15:59:00 brian Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -139,8 +139,12 @@ FilterCheck(struct ip *pip, struct filter *filter) if (log_IsKept(LogDEBUG)) snprintf(dbuff, sizeof dbuff, "sport = %d", sport); break; - case IPPROTO_UDP: case IPPROTO_IGMP: + cproto = P_IGMP; + estab = syn = finrst = -1; + sport = ntohs(0); + break; + case IPPROTO_UDP: case IPPROTO_IPIP: cproto = P_UDP; uh = (struct udphdr *) ptop; |