tree c92b15c165366a6d5c616305cb4b68349882cb61 parent 3a6fd752a50af92765853879f4a11cc0cfcd0320 author Karsten Keil <[EMAIL PROTECTED]> Thu, 21 Apr 2005 22:30:30 -0700 committer Linus Torvalds <[EMAIL PROTECTED]> Thu, 21 Apr 2005 22:30:30 -0700
[PATCH] fix for ISDN ippp filtering We do not longer use DLT_LINUX_SLL for activ/pass filters but DLT_PPP_WITHDIRECTION witch need 1 as outbound flag. Signed-off-by: Karsten Keil <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> isdn/i4l/isdn_ppp.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) Index: drivers/isdn/i4l/isdn_ppp.c =================================================================== --- dc79d50fb8d8c74259945b8a044f93982a9289bd/drivers/isdn/i4l/isdn_ppp.c (mode:100644 sha1:3c092117a8eae4a7916967b065ac447f999946e9) +++ c92b15c165366a6d5c616305cb4b68349882cb61/drivers/isdn/i4l/isdn_ppp.c (mode:100644 sha1:260a323a96d38c07003f80b92c2b3dad5c2c025a) @@ -1151,7 +1151,7 @@ isdn_ppp_push_higher(isdn_net_dev * net_ { u_int16_t *p = (u_int16_t *) skb->data; - *p = 0; /* indicate inbound in DLT_LINUX_SLL */ + *p = 0; /* indicate inbound */ } if (is->pass_filter @@ -1293,12 +1293,12 @@ isdn_ppp_xmit(struct sk_buff *skb, struc /* check if we should pass this packet * the filter instructions are constructed assuming * a four-byte PPP header on each packet */ - skb_push(skb, 4); + *skb_push(skb, 4) = 1; /* indicate outbound */ { u_int16_t *p = (u_int16_t *) skb->data; - *p++ = htons(4); /* indicate outbound in DLT_LINUX_SLL */ + p++; *p = htons(proto); } @@ -1491,12 +1491,12 @@ int isdn_ppp_autodial_filter(struct sk_b * temporarily remove part of the fake header stuck on * earlier. */ - skb_pull(skb, IPPP_MAX_HEADER - 4); + *skb_pull(skb, IPPP_MAX_HEADER - 4) = 1; /* indicate outbound */ { u_int16_t *p = (u_int16_t *) skb->data; - *p++ = htons(4); /* indicate outbound in DLT_LINUX_SLL */ + p++; *p = htons(proto); } - To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html