[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openss7] Questions



Chuck,

The transport protocol is notified by IP of incoming packets for
IPPROTO_SCTP (protocol number 132) and ICMP packets (errors) for
IPPROTO_SCTP (protocol number 132) via the sctp_v4_rcv and sctp_v4_err
hooks.  The actual registration is performed using the Linux
inet_add_protocol and inet_del_protocol registration and deregistration
functions.  SCTP does this at the bottom of linux/net/ipv4/sctp_prot.c.
This is the only hooks upwards from IP that are necessary.

I use __skb_pull instead of skb_pull because I am sure that the
test len <= skb->len is going to succeed and don't want skb_pull
to waste time checking it.  Similar for skb_trim.

-- 
Brian F. G. Bidulock    ¦ The reasonable man adapts himself to the ¦
bidulock@openss7.org    ¦ world; the unreasonable one persists in  ¦
http://www.openss7.org/ ¦ trying  to adapt the  world  to himself. ¦
                        ¦ Therefore  all  progress  depends on the ¦
                        ¦ unreasonable man. -- George Bernard Shaw ¦