[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [openss7] Questions
Brian,
Thanks for the info. I am tearing into the kernel sources trying to
figure out how all this works. Maybe I can even be of some help in 20 or
30 years!!
Later,
Chuck
"Brian F. G. Bidulock" wrote:
>
> 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 ¦
--
Chuck Winters | Email: cwinters@atl.lmco.com
Distributed Processing Laboratory | Phone: 856-338-3987
Lockheed Martin Advanced Technology Labs |
1 Federal St - A&E-3W |
Camden, NJ 08102 |